Segmentation fault with doveadm search
Hi,
We have a Ubuntu 14.04 server with dovecot 2.2.9
If I try to run
/usr/bin/doveadm search -u email@exmaple.com mailbox Junk savedbefore 30d
It will dump a core file.
We have a similar config on an other server and there is no problem there.
Any ideas how to prevent the core dump?
root@triws2:~# gdb --args doveadm search -u email@example.com mailbox Junk savedbefore 30d
Reading symbols from doveadm...Reading symbols from /usr/lib/debug//usr/bin/doveadm...done. done. (gdb) run Starting program: /usr/bin/doveadm search -u email@example.com mailbox Junk savedbefore 30d
Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) where #0 0x0000000000000000 in ?? () #1 0x00007ffff76ef1b5 in mailbox_get_metadata (box=box@entry=0x5555557e1c70, items=items@entry=MAILBOX_METADATA_GUID, metadata_r=metadata_r@entry=0x7fffffffe2f0) at mail-storage.c:1544 #2 0x0000555555570918 in cmd_search_box (info=<optimized out>, ctx=0x5555557c8230) at doveadm-mail-search.c:28 #3 cmd_search_run (ctx=0x5555557c8230, user=<optimized out>) at doveadm-mail-search.c:58 #4 0x0000555555569b5b in doveadm_mail_next_user (ctx=0x5555557c8230, input=<optimized out>, error_r=0x7fffffffe3f8) at doveadm-mail.c:314 #5 0x000055555556a8ac in doveadm_mail_cmd (argv=0x5555557c33b0, argc=7, cmd=0x5555557c7408) at doveadm-mail.c:525 #6 doveadm_mail_try_run (cmd_name=<optimized out>, argc=7, argv=0x5555557c3398) at doveadm-mail.c:617 #7 0x00005555555696d4 in main (argc=7, argv=0x5555557c3398) at doveadm.c:398
Üdvözlettel
Stefán Tamás --------------------------------- domain > email > web >>> siker Numex Informatika Kft. Mobil: +36 20 956 0233, Tel: +36 1 205 3915 http://numex.hu
On 30.08.2017 09:13, Stefán Tamás wrote:
Hi,
We have a Ubuntu 14.04 server with dovecot 2.2.9
If I try to run
/usr/bin/doveadm search -u email@exmaple.com mailbox Junk savedbefore 30d
It will dump a core file.
We have a similar config on an other server and there is no problem there.
Any ideas how to prevent the core dump?
root@triws2:~# gdb --args doveadm search -u email@example.com mailbox Junk savedbefore 30d
Reading symbols from doveadm...Reading symbols from /usr/lib/debug//usr/bin/doveadm...done. done. (gdb) run Starting program: /usr/bin/doveadm search -u email@example.com mailbox Junk savedbefore 30d
Program received signal SIGSEGV, Segmentation fault. 0x0000000000000000 in ?? () (gdb) where #0 0x0000000000000000 in ?? () #1 0x00007ffff76ef1b5 in mailbox_get_metadata (box=box@entry=0x5555557e1c70, items=items@entry=MAILBOX_METADATA_GUID, metadata_r=metadata_r@entry=0x7fffffffe2f0) at mail-storage.c:1544 #2 0x0000555555570918 in cmd_search_box (info=<optimized out>, ctx=0x5555557c8230) at doveadm-mail-search.c:28 #3 cmd_search_run (ctx=0x5555557c8230, user=<optimized out>) at doveadm-mail-search.c:58 #4 0x0000555555569b5b in doveadm_mail_next_user (ctx=0x5555557c8230, input=<optimized out>, error_r=0x7fffffffe3f8) at doveadm-mail.c:314 #5 0x000055555556a8ac in doveadm_mail_cmd (argv=0x5555557c33b0, argc=7, cmd=0x5555557c7408) at doveadm-mail.c:525 #6 doveadm_mail_try_run (cmd_name=<optimized out>, argc=7, argv=0x5555557c3398) at doveadm-mail.c:617 #7 0x00005555555696d4 in main (argc=7, argv=0x5555557c3398) at doveadm.c:398
Üdvözlettel
Stefán Tamás --------------------------------- domain > email > web >>> siker Numex Informatika Kft. Mobil: +36 20 956 0233, Tel: +36 1 205 3915 http://numex.hu
Hi!
Can you do
p *box
Aki
Can you do
p *box
$1 = {name = 0x5555557e1f18 "Junk", vname = 0x5555557e1f10 "Junk",
storage = 0x5555557e1860, list = 0x5555557e1050, v = {
is_readonly = 0x7ffff76e5a50
Üdvözlettel
Stefán Tamás
On 30.08.2017 12:55, Stefán Tamás wrote:
Can you do
p *box $1 = {name = 0x5555557e1f18 "Junk", vname = 0x5555557e1f10 "Junk", storage = 0x5555557e1860, list = 0x5555557e1050, v = { is_readonly = 0x7ffff76e5a50
,
Something goes wrong when opening "Junk" mailbox. Are you sure it exists? Can you doveadm with
doveadm -Dv search -u email@example.com mailbox Junk savedbefore 30d
Aki
- aug. 30. dátummal, 12:02 időpontban Aki Tuomi aki.tuomi@dovecot.fi írta:
Something goes wrong when opening "Junk" mailbox. Are you sure it exists? Can you doveadm with
doveadm -Dv search -u email@example.com mailbox Junk savedbefore 30d
There is public namespace defined. Maybe that is the problem?
doveadm(root): Debug: Loading modules from directory: /usr/lib/dovecot/modules doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so doveadm(root): Debug: Loading modules from directory: /usr/lib/dovecot/modules/doveadm doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so doveadm(root): Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so: undefined symbol: expire_set_deinit (this is usually intentional, so just ignore this message) doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so doveadm(root): Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so: undefined symbol: fts_backend_rescan (this is usually intentional, so just ignore this message) doveadm(kiss.gitta@europrofil.hu): Debug: Added userdb setting: mail=maildir:/var/vmail/europrofil.hu/kiss.gitta/Maildir doveadm(kiss.gitta@europrofil.hu): Debug: Added userdb setting: plugin/quota=dict:user::file:/var/vmail/europrofil.hu/kiss.gitta/.quotausage doveadm(kiss.gitta@europrofil.hu): Debug: Added userdb setting: plugin/quota_rule=*:storage=3670016000B doveadm(kiss.gitta@europrofil.hu): Debug: Added userdb setting: plugin/sieve=/var/vmail/europrofil.hu/kiss.gitta/.sieve doveadm(kiss.gitta@europrofil.hu): Debug: Added userdb setting: plugin/sieve_before=/var/vmail/europrofil.hu/kiss.gitta/sieve/roundcube.sieve doveadm(kiss.gitta@europrofil.hu): Debug: Effective uid=5000, gid=5000, home=/var/vmail/europrofil.hu/kiss.gitta doveadm(kiss.gitta@europrofil.hu): Debug: acl: No acl setting - ACLs are disabled doveadm(kiss.gitta@europrofil.hu): Debug: Quota root: name=user backend=dict args=:file:/var/vmail/europrofil.hu/kiss.gitta/.quotausage doveadm(kiss.gitta@europrofil.hu): Debug: Quota rule: root=user mailbox=* bytes=3670016000 messages=0 doveadm(kiss.gitta@europrofil.hu): Debug: Quota grace: root=user bytes=367001600 (10%) doveadm(kiss.gitta@europrofil.hu): Debug: dict quota: user=kiss.gitta@europrofil.hu, uri=file:/var/vmail/europrofil.hu/kiss.gitta/.quotausage, noenforcing=0 doveadm(kiss.gitta@europrofil.hu): Debug: Namespace : type=private, prefix=INBOX., sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/europrofil.hu/kiss.gitta/Maildir doveadm(kiss.gitta@europrofil.hu): Debug: maildir++: root=/var/vmail/europrofil.hu/kiss.gitta/Maildir, index=, indexpvt=, control=, inbox=/var/vmail/europrofil.hu/kiss.gitta/Maildir, alt= doveadm(kiss.gitta@europrofil.hu): Debug: Namespace : type=public, prefix=Public., sep=., inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:/var/vmail/europrofil.hu/public/:CONTROL=/var/vmail/europrofil.hu/public/:INDEX=~/Maildir/public doveadm(kiss.gitta@europrofil.hu): Debug: maildir++: root=/var/vmail/europrofil.hu/public, index=/var/vmail/europrofil.hu/kiss.gitta/Maildir/public, indexpvt=, control=, inbox=, alt= doveadm(kiss.gitta@europrofil.hu): Debug: Namespace : type=private, prefix=, sep=, inbox=no, hidden=yes, list=no, subscriptions=no location=fail::LAYOUT=none doveadm(kiss.gitta@europrofil.hu): Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
Üdvözlettel
Stefán Tamás --------------------------------- domain > email > web >>> siker Numex Informatika Kft. Mobil: +36 20 956 0233, Tel: +36 1 205 3915 http://numex.hu
On 30.08.2017 13:55, Stefán Tamás wrote:
- aug. 30. dátummal, 12:02 időpontban Aki Tuomi aki.tuomi@dovecot.fi írta:
Something goes wrong when opening "Junk" mailbox. Are you sure it exists? Can you doveadm with
doveadm -Dv search -u email@example.com mailbox Junk savedbefore 30d There is public namespace defined. Maybe that is the problem?
doveadm(root): Debug: Loading modules from directory: /usr/lib/dovecot/modules doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/lib01_acl_plugin.so doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/lib10_quota_plugin.so doveadm(root): Debug: Loading modules from directory: /usr/lib/dovecot/modules/doveadm doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_acl_plugin.so doveadm(root): Debug: Skipping module doveadm_expire_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_expire_plugin.so: undefined symbol: expire_set_deinit (this is usually intentional, so just ignore this message) doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_quota_plugin.so doveadm(root): Debug: Module loaded: /usr/lib/dovecot/modules/doveadm/lib10_doveadm_sieve_plugin.so doveadm(root): Debug: Skipping module doveadm_fts_plugin, because dlopen() failed: /usr/lib/dovecot/modules/doveadm/lib20_doveadm_fts_plugin.so: undefined symbol: fts_backend_rescan (this is usually intentional, so just ignore this message) doveadm(kiss.gitta@europrofil.hu): Debug: Added userdb setting: mail=maildir:/var/vmail/europrofil.hu/kiss.gitta/Maildir doveadm(kiss.gitta@europrofil.hu): Debug: Added userdb setting: plugin/quota=dict:user::file:/var/vmail/europrofil.hu/kiss.gitta/.quotausage doveadm(kiss.gitta@europrofil.hu): Debug: Added userdb setting: plugin/quota_rule=*:storage=3670016000B doveadm(kiss.gitta@europrofil.hu): Debug: Added userdb setting: plugin/sieve=/var/vmail/europrofil.hu/kiss.gitta/.sieve doveadm(kiss.gitta@europrofil.hu): Debug: Added userdb setting: plugin/sieve_before=/var/vmail/europrofil.hu/kiss.gitta/sieve/roundcube.sieve doveadm(kiss.gitta@europrofil.hu): Debug: Effective uid=5000, gid=5000, home=/var/vmail/europrofil.hu/kiss.gitta doveadm(kiss.gitta@europrofil.hu): Debug: acl: No acl setting - ACLs are disabled doveadm(kiss.gitta@europrofil.hu): Debug: Quota root: name=user backend=dict args=:file:/var/vmail/europrofil.hu/kiss.gitta/.quotausage doveadm(kiss.gitta@europrofil.hu): Debug: Quota rule: root=user mailbox=* bytes=3670016000 messages=0 doveadm(kiss.gitta@europrofil.hu): Debug: Quota grace: root=user bytes=367001600 (10%) doveadm(kiss.gitta@europrofil.hu): Debug: dict quota: user=kiss.gitta@europrofil.hu, uri=file:/var/vmail/europrofil.hu/kiss.gitta/.quotausage, noenforcing=0 doveadm(kiss.gitta@europrofil.hu): Debug: Namespace : type=private, prefix=INBOX., sep=., inbox=yes, hidden=no, list=yes, subscriptions=yes location=maildir:/var/vmail/europrofil.hu/kiss.gitta/Maildir doveadm(kiss.gitta@europrofil.hu): Debug: maildir++: root=/var/vmail/europrofil.hu/kiss.gitta/Maildir, index=, indexpvt=, control=, inbox=/var/vmail/europrofil.hu/kiss.gitta/Maildir, alt= doveadm(kiss.gitta@europrofil.hu): Debug: Namespace : type=public, prefix=Public., sep=., inbox=no, hidden=no, list=children, subscriptions=yes location=maildir:/var/vmail/europrofil.hu/public/:CONTROL=/var/vmail/europrofil.hu/public/:INDEX=~/Maildir/public doveadm(kiss.gitta@europrofil.hu): Debug: maildir++: root=/var/vmail/europrofil.hu/public, index=/var/vmail/europrofil.hu/kiss.gitta/Maildir/public, indexpvt=, control=, inbox=, alt= doveadm(kiss.gitta@europrofil.hu): Debug: Namespace : type=private, prefix=, sep=, inbox=no, hidden=yes, list=no, subscriptions=no location=fail::LAYOUT=none doveadm(kiss.gitta@europrofil.hu): Debug: none: root=, index=, indexpvt=, control=, inbox=, alt=
Üdvözlettel
Stefán Tamás --------------------------------- domain > email > web >>> siker Numex Informatika Kft. Mobil: +36 20 956 0233, Tel: +36 1 205 3915 http://numex.hu I think the problem is that you should be using INBOX.Junk instead of Junk.
Aki
- aug. 30. dátummal, 12:56 időpontban Aki Tuomi aki.tuomi@dovecot.fi írta:
I think the problem is that you should be using INBOX.Junk instead of Junk.
You are right! It is OK that way.
Thanks Aki!
Üdvözlettel
Stefán Tamás
participants (2)
-
Aki Tuomi
-
Stefán Tamás