[Dovecot] sdbox to mdbox

Joan Moreau jom at grosjo.net
Wed Jan 5 19:33:59 EET 2011



 this is what I get:

 # gdb --args dsync -f -D -v -u 'jom at grosjo.net' -o 
 mail_location=sdbox:/data/mail/grosjo.net/jom mirror 
 mdbox:/data/mail2/grosjo.net/jom
 GNU gdb (GDB) SUSE (7.1-3.12)
 Copyright (C) 2010 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 "x86_64-suse-linux".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>...
 Reading symbols from /usr/bin/dsync...done.
 (gdb) run
 Starting program: /usr/bin/dsync -f -D -v -u jom at grosjo.net -o 
 mail_location=sdbox:/data/mail/grosjo.net/jom mirror 
 mdbox:/data/mail2/grosjo.net/jom
 [Thread debugging using libthread_db enabled]
 dsync(jom at grosjo.net): Error: 
 open(/data/mail2/grosjo.net/jom/storage/.temp.1294246748.P26952Q8500M325824.server, 
 O_CREAT) failed: Too many open files
 dsync(jom at grosjo.net): Error: Can't save message to mailbox 
 Business/GJ-Pro/ParkingRoissy/Log: Internal error occurred. Refer to 
 server log for more information. [2011-01-05 17:59:08]

 Program received signal SIGSEGV, Segmentation fault.
 mailbox_save_cancel (_ctx=0x7fffffffdc78) at mail-storage.c:1419
 1419		struct mailbox *box = ctx->transaction->box;


 (gdb) bt full
 #0  mailbox_save_cancel (_ctx=0x7fffffffdc78) at mail-storage.c:1419
         ctx = 0x0
         box = <value optimized out>
         keywords = 0x7ffff7ffe148
 #1  0x000000000040fee7 in local_worker_msg_save (_worker=0x648d80, 
 msg=<value optimized out>, data=<value optimized out>, callback=0x40a400 
 <msg_save_callback>, context=0x8a6110) at dsync-worker-local.c:1719
         storage = <value optimized out>
         worker = 0x648d80
         dest_box = 0x8c0df0
         save_ctx = 0x0
         __FUNCTION__ = "local_worker_msg_save"
 #2  0x000000000040f289 in dsync_worker_msg_save (worker=0x648d80, 
 msg=<value optimized out>, data=0x7fffffffdd50, callback=0x40a400 
 <msg_save_callback>, context=0x8a6110) at dsync-worker.c:234
         _data_stack_cur_id = 3
 #3  0x000000000040a4cd in msg_get_callback (result=<value optimized 
 out>, data=0x7fffffffdd50, context=0x8a6110) at 
 dsync-brain-msgs-new.c:78
         ctx = 0x8a6110
         mailbox = <value optimized out>
         input = 0x4eb7d50
         __FUNCTION__ = "msg_get_callback"
 #4  0x000000000040f858 in local_worker_msg_get_next (worker=0x63ee20, 
 get=0x7fffffffdd90) at dsync-worker-local.c:1826
         data = {pop3_uidl = 0x619fd0 "", received_date = 1260352593, 
 input = 0x4eb7d50}
         trans = <value optimized out>
         box = 0x18
         __FUNCTION__ = "local_worker_msg_get_next"
 #5  0x000000000040fa38 in local_worker_msg_get (_worker=<value 
 optimized out>, mailbox=<value optimized out>, uid=<value optimized 
 out>, callback=<value optimized out>, context=<value optimized out>) at 
 dsync-worker-local.c:1847
         worker = <value optimized out>
         get = {mailbox = {guid = 
 "\rɚ\"\224\233\301L\277W\000\000֣\t-"}, uid = 9898, callback = 0x40a450 
 <msg_get_callback>, context = 0x8a6110}
 #6  0x000000000040f306 in dsync_worker_msg_get (worker=0x63ee20, 
 mailbox=0x704ec1, uid=9898, callback=0x40a450 <msg_get_callback>, 
 context=<value optimized out>) at dsync-worker.c:261
         _data_stack_cur_id = 2
         __FUNCTION__ = "dsync_worker_msg_get"
 #7  0x000000000040a371 in dsync_brain_msg_sync_add_new_msg 
 (iter=0x70b440) at dsync-brain-msgs-new.c:180
         inst = <value optimized out>
         inst_box = <value optimized out>
         save_ctx = <value optimized out>
         copy_ctx = <value optimized out>
         src_iter = 0x70b3b8
 #8  dsync_brain_mailbox_add_new_msgs (iter=0x70b440) at 
 dsync-brain-msgs-new.c:210
         msg = 0x7ffff3ef8330
         msgs = 0x7ffff3ed2010
         msg_count = 414226
         ret = true
 #9  dsync_brain_msg_sync_add_new_msgs (iter=0x70b440) at 
 dsync-brain-msgs-new.c:309
         mailbox = 0x704ea8
         mailbox_guid = 0x704ec1
 #10 0x0000000000409a3b in dsync_brain_msg_sync_more (sync=0x704870) at 
 dsync-brain-msgs.c:424
         mailboxes = 0x7048f8
         count = 244
         mailbox_idx = 244
 #11 0x0000000000408449 in dsync_brain_sync_msgs (brain=<value optimized 
 out>) at dsync-brain.c:726
         mailboxes = {arr = {buffer = 0x6d4050, element_size = 112}, v = 
 0x6d4050, v_modifiable = 0x6d4050}
         pool = 0x6d4030
         ret = <value optimized out>
 #12 dsync_brain_sync (brain=<value optimized out>) at dsync-brain.c:847
         __FUNCTION__ = "dsync_brain_sync"
 #13 0x0000000000409381 in dsync_brain_subs_list_finished 
 (context=0x663210) at dsync-brain.c:170
 No locals.
 #14 dsync_worker_subs_input (context=0x663210) at dsync-brain.c:223
         list = 0x663210
         subs = {vname = 0x0, storage_name = 0x0, ns_prefix = 0x0, 
 last_change = 0}
         unsubs = {name_sha1 = {guid = '\000' <repeats 15 times>}, 
 ns_prefix = 0x0, last_change = 0}
         ret = <value optimized out>
 #15 0x0000000000408820 in dsync_brain_sync (brain=0x64c990) at 
 dsync-brain.c:832
         __FUNCTION__ = "dsync_brain_sync"
 #16 0x000000000040921c in dsync_brain_mailbox_list_finished 
 (context=0x65a9e0) at dsync-brain.c:99
 No locals.
 #17 dsync_worker_mailbox_input (context=0x65a9e0) at dsync-brain.c:126
         list = 0x65a9e0
         dsync_box = {name = 0x0, name_sep = 0 '\000', name_sha1 = {guid 
 = '\000' <repeats 15 times>}, mailbox_guid = {guid = '\000' <repeats 15 
 times>}, uid_validity = 0, uid_next = 0, message_count = 0, 
 highest_modseq = 0,
           last_change = 0, flags = 0, cache_fields = {arr = {buffer = 
 0x0, element_size = 0}, v = 0x0, v_modifiable = 0x0}}
         dup_box = 0x672c58
         ret = <value optimized out>
 #18 0x0000000000408861 in dsync_brain_sync (brain=0x64c990) at 
 dsync-brain.c:823
         __FUNCTION__ = "dsync_brain_sync"
 #19 0x00000000004090e8 in dsync_brain_sync_all (brain=0x64c990) at 
 dsync-brain.c:887
         old_state = DSYNC_STATE_GET_MAILBOXES
         __FUNCTION__ = "dsync_brain_sync_all"
 #20 0x00000000004074d7 in main (argc=10, argv=0x621370) at dsync.c:303
         set_parser = <value optimized out>
         ssflags = <value optimized out>
         brain_flags = 3
         storage_service = 0x623140
         service_user = 0x623ab8
         input = {module = 0x41419f "mail", service = 0x4129eb "dsync", 
 username = 0x6213e3 "jom at grosjo.net", 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}}}, userdb_fields = 0x0, no_userdb_lookup = 
 0}
         mail_user = 0x63ae10
         mail_user2 = 0x642280
         worker1 = 0x63ee20
         worker2 = 0x648d80
         workertmp = <value optimized out>
         error = <value optimized out>
         username = 0x6213e3 "jom at grosjo.net"
         cmd_name = <value optimized out>
         mailbox = 0x0
         local_location = 0x619e40 "/data/mail/grosjo.net/jom/mailboxes"
         remote_cmd_args = 0x0
         path1 = 0x619e40 "/data/mail/grosjo.net/jom/mailboxes"
         path2 = <value optimized out>
         dsync_server = false
         unexpected_changes = false
         dsync_debug = <value optimized out>
         reverse_workers = false
         alt_char = 95 '_'
         c = <value optimized out>
         ret = <value optimized out>
         fd_in = 0
         fd_out = 1
         __FUNCTION__ = "main"

 On Wed, 05 Jan 2011 14:31:59 +0200, Timo Sirainen wrote:

> On Tue, 2011-01-04 at 11:01 -0500, Joan Moreau wrote:
>
>> Not sure how do I get the "core" (core dumped are disabled in my
>> kernel)
> ..
>
>> backtrace. ulimit -c unlimited dsync ... gdb dsync core bt full
> Well, you could probably run the whole thing in gdb, but in some
> situations it doesn't work: gdb --args dsync mirror etc run bt full


More information about the dovecot mailing list