Segfault using doveadm dsync

fabio.onorini at secoges.com fabio.onorini at secoges.com
Wed Feb 24 11:20:17 UTC 2016


I'm trying to migrate a imap mailbox from dovecot 1.2.15 to a new imap server with dovecot 2.2.13.

I would preserving the IMAP UIDs and POP3 UIDLs.

So I'm using doveadm backup command but after folders analyze, command return segmentation fault.

Any hint?

GDB result:

sync(easymail): Debug: brain S: Deleting mailbox 'Bozze' (GUID f0836f3222c335cfa383cb38ff0e3183): UIDNEXT is too high (9 > 1)
dsync(easymail): Debug: brain S: Deleting mailbox 'Cestino' (GUID cd0edec22e40323d878a39dc8e432e5a): UIDNEXT is too high (628 > 1)
dsync(easymail): Debug: brain S: Deleting mailbox 'INBOX' (GUID c92f64f79f0d1ed01e6d5b314f04886c): UIDVALIDITY changed (1456239585 -> 1456310264)
dsync(easymail): Debug: brain S: Deleting mailbox 'Modelli' (GUID f0933f8b90e6eaf3a00a0220b173f3b4): UIDNEXT is too high (2 > 1)
dsync(easymail): Debug: brain S: Deleting mailbox 'Sent' (GUID 7d3c7eaa71cdf47ee8a1192687cda8cd): UIDNEXT is too high (39 > 1)

Program received signal SIGSEGV, Segmentation fault.
imapc_client_mailbox_cmd (box=0x0, callback=callback at entry=0x7ffff76d7140 <imapc_simple_callback>, context=context at entry=0x7fffffffe2d0) at imapc-client.c:351
351    imapc-client.c: No such file or directory.
(gdb) bt full
#0  imapc_client_mailbox_cmd (box=0x0, callback=callback at entry=0x7ffff76d7140 <imapc_simple_callback>, context=context at entry=0x7fffffffe2d0) at imapc-client.c:351
        cmd = <optimized out>
        __FUNCTION__ = "imapc_client_mailbox_cmd"
#1  0x00007ffff76d7915 in imapc_mailbox_noop (mbox=mbox at entry=0x5555558049e0) at imapc-storage.c:154
        cmd = <optimized out>
        sctx = {client = 0x5555557e89b0, ret = -2}
#2  0x00007ffff76d5c18 in imapc_mailbox_sync_init (box=0x5555558049e0, flags=(MAILBOX_SYNC_FLAG_FULL_READ | MAILBOX_SYNC_FLAG_FIX_INCONSISTENT)) at imapc-sync.c:476
        mbox = 0x5555558049e0
        list = <optimized out>
        capabilities = <optimized out>
        changes = false
        ret = 0
#3  0x00007ffff76e9289 in mailbox_sync_init (box=0x5555558049e0, flags=(MAILBOX_SYNC_FLAG_FULL_READ | MAILBOX_SYNC_FLAG_FIX_INCONSISTENT)) at mail-storage.c:1677
        _data_stack_cur_id = 3
        ctx = <optimized out>
#4  0x00007ffff76e93d7 in mailbox_sync (box=box at entry=0x5555558049e0, flags=<optimized out>, flags at entry=MAILBOX_SYNC_FLAG_FULL_READ) at mail-storage.c:1725
        ctx = 0x555555804ea8
        status = {sync_delayed_expunges = 0}
#5  0x00007ffff7715bab in mailbox_expunge_all_data (box=0x5555558049e0) at index-storage.c:648
        ctx = 0x7ffff7714e57 <index_storage_mailbox_open+615>
        t = 0x5555558049e0
        mail = 0x7fffffffe4b4
        search_args = 0x7fffffffe558
#6  index_storage_mailbox_delete (box=0x5555558049e0) at index-storage.c:701
        metadata = {guid = "\264\344\377\377\377\177\000\000\000\000\000\000\000\000\000", virtual_size = 140737488348504, cache_fields = 0x555555807258, 
          precache_fields = (MAIL_FETCH_RECEIVED_DATE | MAIL_FETCH_SAVE_DATE | MAIL_FETCH_PHYSICAL_SIZE | MAIL_FETCH_VIRTUAL_SIZE | MAIL_FETCH_IMAP_ENVELOPE | MAIL_FETCH_REFCOUNT | unknown: 1426065408), backend_ns_prefix = 0x7ffff73b1e59 <t_pop_check+9> ";\003u\v\307\003", backend_ns_type = (unknown: 1434470880)}
        status = {messages = 4294960472, recent = 32767, unseen = 0, uidvalidity = 0, uidnext = 1434582544, first_unseen_seq = 0, first_recent_uid = 232594432, 
          last_cached_seq = 3612951791, highest_modseq = 93824995052000, highest_pvt_modseq = 93824992578308, keywords = 0x1, permanent_flags = 4151223616, 
          permanent_keywords = 1, allow_new_keywords = 1, nonpermanent_modseqs = 1, no_modseq_tracking = 1, have_guids = 1, have_save_guids = 1, have_only_guid128 = 1}
        ret_guid = <optimized out>
#7  0x00007ffff76ea737 in mailbox_delete (box=box at entry=0x5555558049e0) at mail-storage.c:1319
        ret = <optimized out>
#8  0x00005555555895d4 in dsync_brain_mailbox_tree_sync_change (brain=brain at entry=0x5555557fcd00, change=<optimized out>) at dsync-brain-mailbox-tree-sync.c:182
        box = 0x5555558049e0
        destbox = 0x5555558007c8
        errstr = 0x5555557ff750 "\030\366\177UUU"
        func_name = 0x0
---Type <return> to continue, or q <return> to quit---
        storage_name = <optimized out>
        error = 32767
        ret = <optimized out>
        __FUNCTION__ = "dsync_brain_mailbox_tree_sync_change"
#9  0x00005555555892db in dsync_brain_mailbox_trees_sync (brain=0x5555557fcd00) at dsync-brain-mailbox-tree.c:291
        ctx = 0x55555580ab40
        change = <optimized out>
        sync_type = <optimized out>
        sync_flags = <optimized out>
#10 dsync_brain_recv_mailbox_tree_deletes (brain=brain at entry=0x5555557fcd00) at dsync-brain-mailbox-tree.c:440
        deletes = 0x5555557fa0a0
        i = <optimized out>
        count = 0
        sep = 47 '/'
        __FUNCTION__ = "dsync_brain_recv_mailbox_tree_deletes"
#11 0x00005555555860e8 in dsync_brain_run_real (changed_r=0x7fffffffe74b, brain=0x5555557fcd00) at dsync-brain.c:565
        ret = true
        orig_state = DSYNC_STATE_RECV_MAILBOX_TREE_DELETES
        orig_box_recv_state = DSYNC_BOX_STATE_MAILBOX
        orig_box_send_state = DSYNC_BOX_STATE_MAILBOX
        changed = false
#12 dsync_brain_run (brain=0x5555557fcd00, changed_r=changed_r at entry=0x7fffffffe74b) at dsync-brain.c:610
        _data_stack_cur_id = 2
        changed_r = 0x7fffffffe74b
        brain = 0x5555557fcd00
#13 0x00005555555846f7 in cmd_dsync_run_local (changes_during_sync_r=<synthetic pointer>, ibc2=<optimized out>, brain=0x5555557e1860, user=<optimized out>, 
    ctx=0x5555557cd590) at doveadm-dsync.c:384
        brain2 = 0x5555557fcd00
        set_parser = <optimized out>
        location = <optimized out>
        user2 = 0x0
        brain1_running = true
        changed1 = true
        ret = <optimized out>
        set_line = <optimized out>
        brain2_running = true
        changed2 = false
#14 cmd_dsync_run (_ctx=0x5555557cd590, user=<optimized out>) at doveadm-dsync.c:596
---Type <return> to continue, or q <return> to quit---
        ctx = 0x5555557cd590
        ibc = 0x5555557d50d0
        ibc2 = 0x5555557e14d0
        brain = 0x5555557e1860
        set = {process_title_prefix = 0x0, sync_namespaces = {arr = {buffer = 0x5555557c0378, element_size = 8}, v = 0x5555557c0378, v_modifiable = 0x5555557c0378}, 
          sync_box = 0x0, sync_box_guid = '\000' <repeats 15 times>, exclude_mailboxes = 0x0, lock_timeout_secs = 0, state = 0x0}
        ns = 0x5555557cd670
        strp = <optimized out>
        brain_flags = <optimized out>
        remote_errors_logged = false
        changes_during_sync = false
        status = 0
        ret = 0
#15 0x0000555555569e4b in doveadm_mail_next_user (ctx=0x5555557cd590, input=<optimized out>, error_r=0x7fffffffe898) at doveadm-mail.c:314
        error = 0x5555557cd590 "p\325|UUU"
        ret = <optimized out>
        error_r = 0x7fffffffe898
        input = <optimized out>
        ctx = 0x5555557cd590
        ip = <optimized out>
        ret = 0
#16 0x000055555556ac2c in doveadm_mail_cmd (argv=0x5555557c73b8, argc=4, cmd=0x5555557cb140) at doveadm-mail.c:525
        input = {module = 0x0, service = 0x5555555a7367 "doveadm", username = 0x5555557c73e7 "easymail", session_id = 0x0, local_ip = {family = 0, u = {ip6 = {
                __in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 0}}}, ip4 = {s_addr = 0}}}, 
          remote_ip = {family = 0, u = {ip6 = {__in6_u = {__u6_addr8 = '\000' <repeats 15 times>, __u6_addr16 = {0, 0, 0, 0, 0, 0, 0, 0}, __u6_addr32 = {0, 0, 0, 
                    0}}}, ip4 = {s_addr = 0}}}, local_port = 0, remote_port = 0, userdb_fields = 0x0, flags_override_add = (unknown: 0), 
          flags_override_remove = (unknown: 0), no_userdb_lookup = 0}
        ctx = 0x5555557cd590
        getopt_args = 0x5555557bf660 "+1dEfg:l:m:n:NPr:Rs:Ux:RAS:u:"
        ret = <optimized out>
        c = <optimized out>
        wildcard_user = 0x0
        error = 0x7ffff73b7122 <master_service_init_finish+226> "H\213\204$\230"
#17 doveadm_mail_try_run (cmd_name=<optimized out>, argc=4, argv=0x5555557c73a0) at doveadm-mail.c:617
        cmd = 0x5555557cb140
#18 0x00005555555699a4 in main (argc=4, argv=0x5555557c73a0) at doveadm.c:398
        cmd_name = 0x5555557c73dd "backup"
        i = <optimized out>
---Type <return> to continue, or q <return> to quit---
        quick_init = false
        c = <optimized out>


-----------------------------------------------
Fabio Onorini
-----------------------------------------------
Gruppo SeCoGes srl
Via Enzo Ferrari, 4/6 - 25134 - Brescia - Italy
Tel. +39 030 23 06 877
Fax +39 030 23 15 512

Sito Web: http://www.secoges.com
Indirizzo EMail (assistenza): easymail at secoges.com
------------------------------------------------


More information about the dovecot mailing list