Hi, We have a Ubuntu 14.04 server with dovecot 2.2.9 If I try to run /usr/bin/doveadm search -u email at 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 at triws2:~# gdb --args doveadm search -u email at 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 at 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 at entry=0x5555557e1c70, items=items at entry=MAILBOX_METADATA_GUID, metadata_r=metadata_r at 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 at 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 at triws2:~# gdb --args doveadm search -u email at 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 at 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 at entry=0x5555557e1c70, > items=items at entry=MAILBOX_METADATA_GUID, > metadata_r=metadata_r at 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.huHi! 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 <fail_mailbox_is_readonly>, enable = 0x7ffff76e5a60 <fail_mailbox_enable>, exists = 0x7ffff76e5a70 <fail_mailbox_exists>, open = 0x7ffff76e5e60 <fail_mailbox_open>, close = 0x7ffff69cf800 <quota_mailbox_close>, free = 0x7ffff69d0370 <quota_mailbox_free>, create_box = 0x7ffff76e5e30 <fail_mailbox_create>, update_box = 0x7ffff76e5e00 <fail_mailbox_update>, delete_box = 0x7ffff76e5dd0 <fail_mailbox_delete>, rename_box = 0x7ffff76e5da0 <fail_mailbox_rename>, get_status = 0x7ffff69d0170 <quota_get_status>, get_metadata = 0x0, set_subscribed = 0x7ffff76e5d30 <fail_mailbox_set_subscribed>, attribute_set = 0x0, attribute_get = 0x0, attribute_iter_init = 0x0, attribute_iter_next = 0x0, attribute_iter_deinit = 0x0, list_index_has_changed = 0x0, list_index_update_sync = 0x0, sync_init = 0x7ffff76e5aa0 <fail_mailbox_sync_init>, sync_next = 0x7ffff76e5ac0 <fail_mailbox_sync_next>, sync_deinit = 0x7ffff69d0420 <quota_mailbox_sync_deinit>, sync_notify = 0x7ffff69cf9d0 <quota_mailbox_sync_notify>, notify_changes = 0x7ffff76e5ad0 <fail_mailbox_notify_changes>, transaction_begin = 0x7ffff69cf900 <quota_mailbox_transaction_begin>, transaction_commit = 0x7ffff69d00a0 <quota_mailbox_transaction_commit>, transaction_rollback = 0x7ffff69cfff0 <quota_mailbox_transaction_rollback>, get_private_flags_mask = 0x0, mail_alloc = 0x7ffff76e61b0 <fail_mailbox_mail_alloc>, search_init = 0x7ffff76e5c00 <fail_mailbox_search_init>, search_deinit = 0x7ffff76e5b80 <fail_mailbox_search_deinit>, search_next_nonblock = 0x7ffff76e5ae0 <fail_mailbox_search_next_nonblock>, search_next_update_seq = 0x7ffff76e5af0 <fail_mailbox_search_next_update_seq>, save_alloc = 0x7ffff76e5b00 <fail_mailbox_save_alloc>, save_begin = 0x7ffff69cfea0 <quota_save_begin>, save_continue = 0x7ffff76e5b30 <fail_mailbox_save_continue>, save_finish = 0x7ffff69cfe30 <quota_save_finish>, save_cancel = 0x7ffff76e5b50 <fail_mailbox_save_cancel>, copy = 0x7ffff69cfd30 <quota_copy>, transaction_save_commit_pre = 0x0, transaction_save_commit_post = 0x0, transaction_save_rollback = 0x0, is_inconsistent = 0x7ffff76e5b70 <fail_mailbox_is_inconsistent>}, vlast = 0x5555557e2038, pool = 0x5555557e1c50, metadata_pool = 0x0, prev = 0x0, next = 0x0, index = 0x0, view = 0x0, cache = 0x0, index_pvt = 0x0, view_pvt = 0x0, _perm = {file_uid = 0, file_gid = 0, file_create_mode = 0, dir_create_mode = 0, file_create_gid = 0, file_create_gid_origin = 0x0, gid_origin_is_mailbox_path = false, mail_index_permissions_set = false}, _path = 0x7ffff77450df "", mail_vfuncs = 0x0, set = 0x0, open_error = MAIL_ERROR_NONE, input = 0x0, index_prefix = 0x0, flags = MAILBOX_FLAG_IGNORE_ACLS, transaction_count = 0, enabled_features = (unknown: 0), partial_cache = {uid = 0, physical_start = 0, physical_pos = 0, virtual_pos = 0}, tmp_sync_view = 0x0, notify_callback = 0x0, notify_context = 0x0, generation_sequence = 0, search_results = {arr = {buffer = 0x5555557e1f20, element_size = 8}, v = 0x5555557e1f20, v_modifiable = 0x5555557e1f20}, module_contexts = {arr = {buffer = 0x5555557e1fd8, element_size = 8}, v = 0x5555557e1fd8, v_modifiable = 0x5555557e1fd8}, opened = 0, mailbox_deleted = 0, creating = 0, deleting = 0, deleting_must_be_empty = 0, delete_skip_empty_check = 0, marked_deleted = 0, inbox_user = 0, inbox_any = 0, disable_reflink_copy_to = 0, disallow_new_keywords = 0, synced = 0} ?dv?zlettel Stef?n Tam?s