[Dovecot] expire-tool segmentation fault

LEVAI Daniel leva at ecentrum.hu
Tue May 19 22:53:24 EEST 2009


On Tuesday 19 May 2009 21.38.18 Timo Sirainen wrote:
> On Tue, 2009-05-19 at 21:32 +0200, LEVAI Daniel wrote:
> > I'm using Dovecot 1.1.15 on OpenBSD 4.4.
> > How can I debug this?
> >
> > # /usr/local/sbin/dovecot --exec-mail ext
> > /usr/local/libexec/dovecot/expire- tool
> > Segmentation fault (core dumped)
> > # gdb /usr/local/sbin/dovecot
> > (gdb) run --exec-mail ext /usr/local/libexec/dovecot/expire-tool
>
> This won't really work. Instead when you ran the expire-tool, it said it
> dumped core, so run:
>
> gdb /usr/local/libexec/dovecot/expire-tool core
> bt full
Okay thanks:)

So:

(gdb) bt full
#0  0x1c06d5d6 in vstrconcat (str1=0x4 "����\020", args=0xcfbbec58 "",
    ret_len=0x0) at strfuncs.c:165
        str = 0x4 "����\020"
        temp = 0x7c93f1d8 "RESTRICT_SETGID="
        bufsize = 512
        i = 16
        len = 16
#1  0x1c06d7df in t_strconcat (str1=0x3c000059 "RESTRICT_SETGID=")
    at strfuncs.c:265
        ret = 0x0
        len = 2200547424
#2  0x1c002482 in auth_parse_input (conn=0x7fd98140,
    args=0x81a1f01e 
"leva\tuid=xxxx\tgid=xxxx\thome=/maildirhome/leva\tquota_rule=*:storage=0\tquota_rule2=Trash:storage=0") 
at auth-client.c:142
        tmp = (const char * const *) 0x7c93f0d0
        key = 0x0
        uid = 8001
        gid = 8000
        home_found = 1
#3  0x1c002741 in auth_input (conn=0x7fd98140) at auth-client.c:202
        line = 0x81a1f00c "SPID\t31846"
#4  0x1c066204 in io_loop_handler_run (ioloop=0x81f7f0a0) at ioloop-kqueue.c:150
        ctx = (struct ioloop_handler_context *) 0x801fb0c0
        events = (struct kevent *) 0x81f7f080
        tv = {tv_sec = 2147483, tv_usec = 0}
        ts = {tv_sec = 2147483, tv_nsec = 0}
        io = (struct io_file *) 0x81f7f080
        t_id = 3
        ret = 1
        i = 0
#5  0x1c0657e5 in io_loop_run (ioloop=0x81f7f0a0) at ioloop.c:336
No locals.
#6  0x1c0027bf in auth_client_put_user_env (conn=0x7fd98140,
    user=0x7c93f028 "leva") at auth-client.c:229
No locals.
#7  0x1c002a32 in user_init (ctx=0xcfbbee60, user=0x7c93f028 "leva")
    at expire-tool.c:43
        ret = 0
#8  0x1c002ae2 in mailbox_delete_old_mails (ctx=0xcfbbee60,
    user=0x7c93f028 "leva", mailbox=0x8bf96634 "SA.SPAM", expunge_secs=86400,
    altmove_secs=0, oldest_r=0xcfbbee50) at expire-tool.c:86
        ns = (struct mail_namespace *) 0x8bf96634
        box = (struct mailbox *) 0xcfbbedc4
        search_ctx = (struct mail_search_context *) 0x1f96348
        t = (struct mailbox_transaction_context *) 0xcfbbedc8
        search_arg = {next = 0x7c93f028, type = SEARCH_OR, value = {
    subargs = 0x5, seqset = 0x1c054a12, str = 0x8bf96633 "/SA.SPAM",
    time = -1946589649, size = 2019534321689296900, flags = 2090070056,
    keywords = 0x8bf9662f}, context = 0x4,
  hdr_field_name = 0x5b0c996 "[\201ò\224�\037\213u\b\213\223t\f", not = 0,
  match_always = 0, result = 1242671458}
        mail = (struct mail *) 0x7c93f028
        ns_mailbox = 0x1c05e7e5 
"\215e�\211�[^��\211�U\211�\213M\fV\205�S~`\213\025��\001<�\200�\001<\213�\220\004\001"
        errstr = 0x0
        now = -1946589645
        save_time = 2090070056
        error = 2348377647
        flags = 0
        ret = -1946589644
#9  0x1c0030dd in expire_run (testrun=false) at expire-tool.c:295
        _data_stack_cur_id = 2
        ctx = {auth_conn = 0x7fd98140, user = 0x0, namespace_pool = 0x83a85010,
  ns = 0x0, testrun = false}
        dict = (struct dict *) 0x83a85c28
        trans = (struct dict_transaction_context *) 0x81f7f040
        iter = (struct dict_iterate_context *) 0x801fb010
        env = (struct expire_env *) 0x8bf96228
        oldest = 0
        expire_time = 1242671458
        expunge_secs = 86400
        altmove_secs = 0
        auth_socket = 0x10 "\020���(���\020"
        p = 0x8bf96633 "/SA.SPAM"
        key = 0x8bf96628 "shared/leva/SA.SPAM"
        value = 0x8bf96640 "1242671458"
        userp = 0x8bf9662f "leva/SA.SPAM"
        mailbox = 0x8bf96634 "SA.SPAM"
        ret = -1946589645
#10 0x1c003344 in main (argc=1, argv=0xcfbbef70) at expire-tool.c:360
        ioloop = (struct ioloop *) 0x81f7f0a0
        test = false

-- 
LÉVAI Dániel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1



More information about the dovecot mailing list