Changeset c02f29ca104d badly breaks LMTP/mdbox

Thomas Leuxner tlx at leuxner.net
Sat Jan 17 09:51:27 UTC 2015


$ gdb /usr/lib/dovecot/lmtp core_lmtp.48883.nihlus.leuxner.net 
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 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-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/lib/dovecot/lmtp...Reading symbols from /usr/lib/debug/usr/lib/dovecot/lmtp...done.
done.
[New LWP 48883]

warning: Can't read pathname for load map: Input/output error.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `dovecot/lmtp'.
Program terminated with signal 6, Aborted.

#0  0x00007f0ca373b165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0  0x00007f0ca373b165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1  0x00007f0ca373e3e0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#2  0x00007f0ca3b0ef85 in default_fatal_finish (type=<optimized out>, status=status at entry=0) at failures.c:202
        backtrace = 0x1385320 "/usr/lib/dovecot/libdovecot.so.0(+0x79f8f) [0x7f0ca3b0ef8f] -> /usr/lib/dovecot/libdovecot.so.0(+0x79fee) [0x7f0ca3b0efee] -> /usr/lib/dovecot/libdovecot.so.0(i_fatal+0) [0x7f0ca3abebb5] -> /usr/lib/d"...
#3  0x00007f0ca3b0efee in i_internal_fatal_handler (ctx=0x7fffdfafecb0, format=<optimized out>, args=<optimized out>) at failures.c:666
        status = 0
#4  0x00007f0ca3abebb5 in i_panic (format=format at entry=0x7f0ca3e61438 "file %s: line %d (%s): assertion failed: (%s)") at failures.c:276
        ctx = {type = LOG_TYPE_PANIC, exit_status = 0, timestamp = 0x0, timestamp_usecs = 0}
        args = {{gp_offset = 40, fp_offset = 48, overflow_arg_area = 0x7fffdfafeda0, reg_save_area = 0x7fffdfafece0}}
#5  0x00007f0ca3dc1d7a in mdbox_map_append_finish (ctx=0x142ac90) at mdbox-map.c:1153
        appends = 0x0
        last = 0x142b1d0
        count = <optimized out>
        cur_offset = <optimized out>
        __FUNCTION__ = "mdbox_map_append_finish"
#6  0x00007f0ca3dc3d08 in mdbox_save_finish_write (_ctx=0x142ab50) at mdbox-save.c:205
        _data_stack_cur_id = 6
        ctx = 0x142ab50
        mail = 0x142c4a0
#7  mdbox_save_finish (ctx=0x142ab50) at mdbox-save.c:228
        ret = 21152928
#8  0x00007f0ca3e070e2 in mailbox_save_finish (_ctx=_ctx at entry=0x7fffdfafee88) at mail-storage.c:2145
        _data_stack_cur_id = 5
        ctx = 0x142ab50
        t = 0x1426a80
        keywords = 0x0
        pvt_flags = 0
        copying_via_save = true
        ret = <optimized out>
        __FUNCTION__ = "mailbox_save_finish"
#9  0x00007f0ca3dfec32 in mail_storage_copy (ctx=0x0, ctx at entry=0x142ab50, mail=mail at entry=0x13eaf20) at mail-copy.c:107
No locals.
#10 0x00007f0ca3dc42bf in mdbox_copy (_ctx=0x142ab50, mail=0x13eaf20) at mdbox-save.c:444
        ctx = 0x142ab50
        save_mail = 0x13eaf20
        src_mbox = <optimized out>
        rec = {map_uid = 21146464, save_date = 0}
        guid_data = 0x142ab68
        wanted_guid = "\360=B\001\000\000\000\000\340\357E\242\f\177\000"
#11 0x00007f0ca245f21b in acl_copy (ctx=0x142ab50, mail=0x13eaf20) at acl-mailbox.c:435
        t = <optimized out>
        abox = 0x1423df0
#12 0x00007f0ca3e0728d in mailbox_copy (_ctx=_ctx at entry=0x7fffdfafefa8, mail=mail at entry=0x13eaf20) at mail-storage.c:2215
        _data_stack_cur_id = 4
        ctx = 0x142ab50
        t = 0x1426a80
        keywords = 0x0
        pvt_flags = 0
        backend_mail = 0x13eaf20
        ret = <optimized out>
        __FUNCTION__ = "mailbox_copy"
#13 0x00007f0ca17ae91e in act_store_execute (action=<optimized out>, aenv=0x1421d60, tr_context=0x14220f8) at sieve-actions.c:584
        trans = 0x14220f8
        mail = 0x13eaf20
        save_ctx = 0x0
        keywords = 0x0
        backends_equal = <optimized out>
        status = 1
#14 0x00007f0ca17a5ca5 in sieve_result_transaction_execute (first=<optimized out>, result=<optimized out>) at sieve-result.c:1172
        act = 0x1422088
        rsef = <optimized out>
        sef = <optimized out>
        rac = 0x1422088
        status = <optimized out>
#15 sieve_result_execute (result=0x1421d30, keep=keep at entry=0x0) at sieve-result.c:1387
        status = <optimized out>
        result_status = <optimized out>
        first_action = 0x1422088
        last_action = 0x0
        implicit_keep = true
        ret = <optimized out>
#16 0x00007f0ca17b5e45 in sieve_execute (sbin=<optimized out>, msgdata=<optimized out>, senv=<optimized out>, ehandler=ehandler at entry=0x140cba0, flags=flags at entry=SIEVE_RUNTIME_FLAG_NOGLOBAL, keep=keep at entry=0x0) at sieve.c:560
        result = 0x1421d30
        ret = 1
#17 0x00007f0ca1a113f5 in lda_sieve_singlescript_execute (srctx=0x7fffdfaff170) at lda-sieve-plugin.c:491
        sbin = 0x14196a0
        rtflags = SIEVE_RUNTIME_FLAG_NOGLOBAL
        debug = false
        svinst = 0x14092e0
        script = 0x140d3c0
        user_script = <optimized out>
        cpflags = SIEVE_COMPILE_FLAG_NOGLOBAL
        ret = <optimized out>
        ehandler = 0x140cba0
        error = <optimized out>
#18 lda_sieve_execute (storage_r=0x7fffdfaff338, srctx=0x7fffdfaff170) at lda-sieve-plugin.c:927
        msgdata = {mail = 0x13eaf20, return_path = 0x13b63c8 "bounces+20150117-lists=leuxner.net at packages.qa.debian.org", orig_envelope_to = 0x13b6c40 "tlx at leuxner.net", final_envelope_to = 0x13b6c40 "tlx at leuxner.net", 
          auth_user = 0x13efc38 "tlx at leuxner.net", id = 0x13eb8a0 "<1421485513.5048.5.camel at kaspar.in>"}
        estatus = {last_storage = 0x13f9cb0, message_saved = 0, message_forwarded = 0, tried_default_save = 0, keep_original = 0, store_failed = 0}
        debug = <optimized out>
        ret = <optimized out>
        mdctx = 0x7fffdfaff360
        svinst = <optimized out>
        scriptenv = {action_log_format = 0x13d1c98 "msgid=%m: %$", user = 0x13efb50, default_mailbox = 0x4094dc "INBOX", postmaster_address = 0x13b5740 "postmaster at spectre.leuxner.net", mailbox_autocreate = false, 
          mailbox_autosubscribe = false, script_context = 0x7fffdfaff360, smtp_start = 0x7f0ca1a10190 <lda_sieve_smtp_start>, smtp_add_rcpt = 0x7f0ca1a10180 <lda_sieve_smtp_add_rcpt>, smtp_send = 0x7f0ca1a10170 <lda_sieve_smtp_send>, 
          smtp_finish = 0x7f0ca1a10160 <lda_sieve_smtp_finish>, duplicate_check = 0x7f0ca1a10110 <lda_sieve_duplicate_check>, duplicate_mark = 0x7f0ca1a10140 <lda_sieve_duplicate_mark>, 
          duplicate_flush = 0x7f0ca1a10100 <lda_sieve_duplicate_flush>, reject_mail = 0x7f0ca1a100f0 <lda_sieve_reject_mail>, exec_status = 0x7fffdfaff0f0, trace_stream = 0x0, trace_config = {level = SIEVE_TRLVL_NONE, flags = 0}}
#19 lda_sieve_deliver_mail (mdctx=<optimized out>, storage_r=0x7fffdfaff338) at lda-sieve-plugin.c:986
        _data_stack_cur_id = 3
        srctx = {svinst = 0x14092e0, mdctx = 0x7fffdfaff360, home_dir = 0x13f1708 "/var/vmail/domains/leuxner.net/tlx", scripts = 0x1384d28, script_count = 1, user_script = 0x140d3c0, main_script = 0x140d3c0, msgdata = 0x7fffdfaff100, 
          scriptenv = 0x7fffdfaff1d0, user_ehandler = 0x140cba0, master_ehandler = 0x140ca90, userlog = 0x1384da8 "/var/vmail/domains/leuxner.net/tlx/.dovecot.sieve.log"}
        debug = <optimized out>
        svenv = {hostname = 0x13d1c18 "spectre.leuxner.net", domainname = 0x0, base_dir = 0x13f0bd0 "/var/run/dovecot", username = 0x13efc38 "tlx at leuxner.net", home_dir = 0x13f1708 "/var/vmail/domains/leuxner.net/tlx", 
          temp_dir = 0x13f18d0 "/tmp", flags = SIEVE_FLAG_HOME_RELATIVE, location = SIEVE_ENV_LOCATION_MDA, delivery_phase = SIEVE_DELIVERY_PHASE_DURING}
        i = <optimized out>
        ret = 0
#20 0x00007f0ca40ad794 in mail_deliver (ctx=ctx at entry=0x7fffdfaff360, storage_r=storage_r at entry=0x7fffdfaff338) at mail-deliver.c:400
        ret = <optimized out>
#21 0x000000000040691c in client_deliver (session=0x13ef740, src_mail=0x13eaf20, rcpt=0x13b6440, client=0x13b5340) at commands.c:779
        set_parser = <optimized out>
        line = <optimized out>
        str = <optimized out>
        mail_error = MAIL_ERROR_NONE
        ret = <optimized out>
        input = <optimized out>
        ns = <optimized out>
        sets = <optimized out>
        storage = 0x0
        mail_set = <optimized out>
        username = <optimized out>
        dctx = {pool = 0x13ef720, set = 0x13d1ba8, session = 0x13ef740, dup_ctx = 0x1409210, session_id = 0x13b63b0 "pAQhD7wmulTzvgAAgUOSbA", src_mail = 0x13eaf20, 
          src_envelope_sender = 0x13b63c8 "bounces+20150117-lists=leuxner.net at packages.qa.debian.org", dest_user = 0x13efb50, dest_addr = 0x13b6c40 "tlx at leuxner.net", final_dest_addr = 0x13b6c40 "tlx at leuxner.net", 
          dest_mailbox_name = 0x4094dc "INBOX", dest_mail = 0x0, var_expand_table = 0x0, tempfail_error = 0x0, tried_default_save = false, saved_mail = false, save_dest_mail = false, mailbox_full = false, dsn = false}
        lda_set = 0x13d1ba8
        error = <optimized out>
#22 client_deliver_next (session=0x13ef740, src_mail=0x13eaf20, client=0x13b5340) at commands.c:822
        rcpts = 0x13b6440
        count = 1
#23 client_input_data_write_local (input=<optimized out>, client=0x13b5340) at commands.c:918
        src_mail = 0x13eaf20
        first_uid = 4294967295
        session = 0x13ef740
        old_uid = 0
#24 client_input_data_write (client=0x13b5340) at commands.c:1035
        input = 0x13d0020
        ret = true
#25 client_input_data_handle (client=0x13b5340) at commands.c:1130
        data = <optimized out>
        size = 543
        ret = <optimized out>
#26 0x00007f0ca3b2107b in io_loop_call_io (io=0x13b5b10) at ioloop.c:501
        ioloop = 0x138a730
        t_id = 2
        __FUNCTION__ = "io_loop_call_io"
#27 0x00007f0ca3b220fb in io_loop_handler_run_internal (ioloop=ioloop at entry=0x138a730) at ioloop-epoll.c:220
        ctx = 0x138f5e0
        events = 0xbef3
        event = 0x1390460
        list = 0x13b5b70
        io = <optimized out>
        tv = {tv_sec = 299, tv_usec = 992673}
        events_count = <optimized out>
        msecs = <optimized out>
        ret = 1
        i = <optimized out>
        call = <optimized out>
        __FUNCTION__ = "io_loop_handler_run_internal"
#28 0x00007f0ca3b21109 in io_loop_handler_run (ioloop=ioloop at entry=0x138a730) at ioloop.c:548
No locals.
#29 0x00007f0ca3b21188 in io_loop_run (ioloop=0x138a730) at ioloop.c:525
        __FUNCTION__ = "io_loop_run"
#30 0x00007f0ca3ac4083 in master_service_run (service=0x138a5c0, callback=callback at entry=0x405230 <client_connected>) at master-service.c:566
No locals.
#31 0x000000000040508c in main (argc=1, argv=0x138a390) at main.c:123
        set_roots = {0x60b700, 0x409fa0, 0x0}
        service_flags = <optimized out>
        storage_service_flags = 675
        c = <optimized out>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://dovecot.org/pipermail/dovecot/attachments/20150117/262237c5/attachment-0001.sig>


More information about the dovecot mailing list