[Dovecot] IMAP to Maildir Migration preserving UIDs?

Gedalya gedalya at gedalya.net
Fri Jan 27 02:00:44 EET 2012


On 01/26/2012 06:46 PM, Timo Sirainen wrote:
> On 27.1.2012, at 1.42, Gedalya wrote:
>
>>> doveadm -o imapc_user=USERNAME -o imapc_password=PASSWORD backup -R imapc:
>>>
>> Still working on it on my side, but for now:
>>
>> # doveadm -o imapc_user=gedalya at thisdomain.com -o imapc_password=***** backup -u gedalya at thisdomain.com -R imapc:
>> Segmentation fault
> gdb backtrace would be helpful. You should be able to get that by running (as root):
>
> gdb --args doveadm ...
> bt full
>
> (assuming you haven't changed base_dir, otherwise it might fail)
>
Does this help?

GNU gdb (GDB) 7.3-debian
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/doveadm...Reading symbols from 
/usr/lib/debug/usr/bin/doveadm...done.
done.
(gdb) run
Starting program: /usr/bin/doveadm -o imapc_user=jedi at example.com -o 
imapc_password=**** backup -u jedi at example.com -R imapc:
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
mailbox_log_iter_open_next (iter=0x80cbd90) at mailbox-log.c:213
213    mailbox-log.c: No such file or directory.
     in mailbox-log.c
(gdb) bt full
#0  mailbox_log_iter_open_next (iter=0x80cbd90) at mailbox-log.c:213
No locals.
#1  0xb7fa7dd4 in mailbox_log_iter_init (log=0x0) at mailbox-log.c:239
         iter = 0x80cbd90
#2  0x0806ffd3 in dsync_worker_get_list_mailbox_log (list=0x80b6180, 
worker=0x80c3138) at dsync-worker-local.c:316
         log = <optimized out>
         iter = 0x8
         rec = <optimized out>
#3  dsync_worker_get_mailbox_log (worker=0x80c3138) at 
dsync-worker-local.c:386
         ns = 0x80a5f90
         ret = <optimized out>
#4  0x0807032f in dsync_worker_get_mailbox_log (worker=0x80c3138) at 
dsync-worker-local.c:372
No locals.
#5  local_worker_mailbox_iter_init (_worker=0x80c3138) at 
dsync-worker-local.c:410
         worker = 0x80c3138
         iter = 0x80b6920
         patterns = {0x8076124 "*", 0x0}
#6  0x08065a2f in dsync_brain_mailbox_list_init (brain=0x80b68e8, 
worker=0x80c3138) at dsync-brain.c:141
         list = 0x80c5940
         pool = 0x80c5930
#7  0x0806680f in dsync_brain_sync (brain=0x80b68e8) at dsync-brain.c:827
No locals.
#8  dsync_brain_sync (brain=0x80b68e8) at dsync-brain.c:813
No locals.
#9  0x08067038 in dsync_brain_sync_all (brain=0x80b68e8) at 
dsync-brain.c:895
         old_state = DSYNC_STATE_GET_MAILBOXES
         __FUNCTION__ = "dsync_brain_sync_all"
#10 0x08064cfd in cmd_dsync_run (_ctx=0x8098ec0, user=0x80a9e98) at 
doveadm-dsync.c:237
         ctx = 0x8098ec0
         worker1 = 0x80c3138
         worker2 = 0x80aedb8
         workertmp = <optimized out>
         brain = 0x80b68e8
#11 0x0805371e in doveadm_mail_next_user (error_r=0xbffffa1c, 
ctx=0x8098ec0, input=<optimized out>) at doveadm-mail.c:221
         ret = <optimized out>
#12 doveadm_mail_next_user (ctx=0x8098ec0, input=<optimized out>, 
error_r=0xbffffa1c) at doveadm-mail.c:187
         error = <optimized out>
         ret = <optimized out>
#13 0x08053b2e in doveadm_mail_single_user (ctx=0x8098ec0, 
input=0xbffffa6c) at doveadm-mail.c:242
---Type <return> to continue, or q <return> to quit---
         error = 0x0
         ret = <optimized out>
         __FUNCTION__ = "doveadm_mail_single_user"
#14 0x08053f58 in doveadm_mail_cmd (cmd=0x8096f60, argc=<optimized out>, 
argv=0x80901e4) at doveadm-mail.c:425
         input = {module = 0x0, service = 0x8076b3a "doveadm", username 
= 0x8090242 "jedi at example.com", 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 = 0, 
flags_override_remove = 0, no_userdb_lookup = 0}
         ctx = 0x8098ec0
         getopt_args = <optimized out>
         wildcard_user = 0x0
         c = <optimized out>
#15 0x080543d9 in doveadm_mail_try_run (cmd_name=0x8090238 "backup", 
argc=5, argv=0x80901d4) at doveadm-mail.c:482
         cmd__foreach_end = 0x8096f9c
         cmd = 0x8096f60
         cmd_name_len = 6
         __FUNCTION__ = "doveadm_mail_try_run"
#16 0x08053347 in main (argc=5, argv=0x80901d4) at doveadm.c:352
         cmd_name = <optimized out>
         i = <optimized out>
         quick_init = false
         c = <optimized out>



More information about the dovecot mailing list