[Dovecot] Dovecot-2.1.8 process imap crashed

Marcin Mirosław marcin at mejor.pl
Tue Jul 17 17:15:05 EEST 2012


Hello!
I've just upgraded dovecot from 2.0.18 to 2.1.8 and configured impac. I
notice dovecot/imap throws segfault from time to time. I'm not sure i
know what steps are needed to reproduce problem.

I'm using gentoo, hardened-kernel-3.4.2. Namespaces (and settings for
imapc) are keept in database so i'm not sure doveconf would be useful.
If would be needed please let me know.
Thanks
Marcin


Core was generated by `dovecot/imap'.
Program terminated with signal 11, Segmentation fault.
#0  0x000002d0fbf908a2 in mail_storage_set_internal_error (storage=0x0)
at mail-storage.c:466
466     mail-storage.c: No such file or directory.
        in mail-storage.c
(gdb) bt
#0  0x000002d0fbf908a2 in mail_storage_set_internal_error (storage=0x0)
at mail-storage.c:466
#1  0x000002d0fbf5f025 in imapc_noop_callback (reply=<optimized out>,
context=<optimized out>) at imapc-storage.c:691
#2  0x000002d0fbf5f07a in imapc_idle_noop_callback (reply=<optimized
out>, context=0x2b466158c0) at imapc-storage.c:713
#3  0x000002d0fbf6208a in imapc_connection_abort_commands
(conn=0x2b46579c10, disconnected=<optimized out>,
keep_retriable=<optimized out>) at imapc-connection.c:271
#4  0x000002d0fbf624be in imapc_connection_disconnect
(conn=0x2b46579c10) at imapc-connection.c:371
#5  0x000002d0fbf636b9 in imapc_connection_deinit (_conn=0x2b46579b20)
at imapc-connection.c:178
#6  0x000002d0fbf60113 in imapc_client_deinit (_client=0x2b4655b6e8) at
imapc-client.c:111
#7  0x000002d0fbf5ea77 in imapc_storage_destroy (_storage=<optimized
out>) at imapc-storage.c:275
#8  0x000002d0fbf90600 in mail_storage_unref (_storage=0x2b46558910) at
mail-storage.c:417
#9  0x000002d0fbf8a259 in mail_namespace_free (ns=0x2b465588c0) at
mail-namespace.c:37
#10 0x000002d0fbf8a784 in mail_namespaces_deinit
(_namespaces=0x2b4654c9e8) at mail-namespace.c:437
#11 0x000002d0fbf95311 in mail_user_deinit_base (user=0x2b4654c970) at
mail-user.c:29
#12 0x000002d0f940f658 in stats_user_deinit (user=0x2b4654c970) at
stats-plugin.c:506
#13 0x000002d0fa86b619 in quota_user_deinit (user=0x2b4654c970) at
quota-storage.c:412
#14 0x000002d0fbf95597 in mail_user_unref (_user=<optimized out>) at
mail-user.c:153
#15 0x0000002b4461b58e in client_destroy (client=0x2b465891d0,
reason=0x0) at imap-client.c:219
#16 0x0000002b44615552 in idle_client_input (ctx=<optimized out>) at
cmd-idle.c:113
#17 0x000002d0fbce3767 in io_loop_call_io (io=0x2b46622ff0) at ioloop.c:379
#18 0x000002d0fbce469a in io_loop_handler_run (ioloop=<optimized out>)
at ioloop-epoll.c:213
#19 0x000002d0fbce3054 in io_loop_run (ioloop=0x2b46525aa0) at ioloop.c:398
#20 0x000002d0fbccc446 in master_service_run (service=0x2b46525950,
callback=<optimized out>) at master-service.c:543
#21 0x0000002b44624e76 in main (argc=1, argv=0x2b46525790) at main.c:389
(gdb) bt full
#0  0x000002d0fbf908a2 in mail_storage_set_internal_error (storage=0x0)
at mail-storage.c:466
        str = 0x2b4651e840 "Internal error occurred. Refer to server log
for more information. [2012-07-17 16:06:09]"
#1  0x000002d0fbf5f025 in imapc_noop_callback (reply=<optimized out>,
context=<optimized out>) at imapc-storage.c:691
        storage = <optimized out>
#2  0x000002d0fbf5f07a in imapc_idle_noop_callback (reply=<optimized
out>, context=0x2b466158c0) at imapc-storage.c:713
        mbox = 0x2b466158c0
#3  0x000002d0fbf6208a in imapc_connection_abort_commands
(conn=0x2b46579c10, disconnected=<optimized out>,
keep_retriable=<optimized out>) at imapc-connection.c:271
        cmdp = 0x2b4651e808
        cmd = 0x2b466116a0
        tmp_array = {arr = {buffer = 0x2b4651e7c8, element_size = 8}, v
= 0x2b4651e7c8, v_modifiable = 0x2b4651e7c8}
        reply = {state = IMAPC_COMMAND_STATE_DISCONNECTED, resp_text_key
= 0x0, resp_text_value = 0x0, text_full = 0x2d0fbfe768e "Disconnected
from server",
          text_without_resp = 0x2d0fbfe768e "Disconnected from server"}
#4  0x000002d0fbf624be in imapc_connection_disconnect
(conn=0x2b46579c10) at imapc-connection.c:371
        reconnecting = false
#5  0x000002d0fbf636b9 in imapc_connection_deinit (_conn=0x2b46579b20)
at imapc-connection.c:178
No locals.
#6  0x000002d0fbf60113 in imapc_client_deinit (_client=0x2b4655b6e8) at
imapc-client.c:111
        client = 0x2b4655c6e0
        connp = 0x2b4655c840
        __FUNCTION__ = "imapc_client_deinit"
#7  0x000002d0fbf5ea77 in imapc_storage_destroy (_storage=<optimized
out>) at imapc-storage.c:275
        storage = <optimized out>
#8  0x000002d0fbf90600 in mail_storage_unref (_storage=0x2b46558910) at
mail-storage.c:417
        storage = 0x2b4655b5e0
        __FUNCTION__ = "mail_storage_unref"
#9  0x000002d0fbf8a259 in mail_namespace_free (ns=0x2b465588c0) at
mail-namespace.c:37
No locals.
#10 0x000002d0fbf8a784 in mail_namespaces_deinit
(_namespaces=0x2b4654c9e8) at mail-namespace.c:437
        ns = <optimized out>
        next = 0x2b46550dd0
#11 0x000002d0fbf95311 in mail_user_deinit_base (user=0x2b4654c970) at
mail-user.c:29
No locals.
#12 0x000002d0f940f658 in stats_user_deinit (user=0x2b4654c970) at
stats-plugin.c:506
        suser = 0x2b4654e8c8
        stats_conn = 0x2b46552170
        __FUNCTION__ = "stats_user_deinit"
#13 0x000002d0fa86b619 in quota_user_deinit (user=0x2b4654c970) at
quota-storage.c:412
        quser = 0x2b4654e890
        quota_set = 0x2b46551190
#14 0x000002d0fbf95597 in mail_user_unref (_user=<optimized out>) at
mail-user.c:153
        user = 0x2b4654c970
        __FUNCTION__ = "mail_user_unref"
#15 0x0000002b4461b58e in client_destroy (client=0x2b465891d0,
reason=0x0) at imap-client.c:219
        cmd = <optimized out>
        __FUNCTION__ = "client_destroy"
#16 0x0000002b44615552 in idle_client_input (ctx=<optimized out>) at
cmd-idle.c:113
---Type <return> to continue, or q <return> to quit---
        client = 0x2b465891d0
#17 0x000002d0fbce3767 in io_loop_call_io (io=0x2b46622ff0) at ioloop.c:379
        ioloop = 0x2b46525aa0
        t_id = 2
#18 0x000002d0fbce469a in io_loop_handler_run (ioloop=<optimized out>)
at ioloop-epoll.c:213
        ctx = 0x2b46525e10
        events = <optimized out>
        event = 0x2b46525e80
        list = 0x2b465a80a0
        io = <optimized out>
        tv = {tv_sec = 5, tv_usec = 999824}
        msecs = <optimized out>
        ret = 1
        i = <optimized out>
        j = <optimized out>
        call = <optimized out>
#19 0x000002d0fbce3054 in io_loop_run (ioloop=0x2b46525aa0) at ioloop.c:398
No locals.
#20 0x000002d0fbccc446 in master_service_run (service=0x2b46525950,
callback=<optimized out>) at master-service.c:543
No locals.
#21 0x0000002b44624e76 in main (argc=1, argv=0x2b46525790) at main.c:389
        set_roots = {0x2b4482ad60, 0x0}
        login_set = {auth_socket_path = 0x2b4651d498
"/var/run/dovecot/auth-master", postlogin_socket_path = 0x0,
postlogin_timeout_secs = 60,
          callback = 0x2b44624804 <login_client_connected>,
failure_callback = 0x2b446244fd <login_client_failed>}
        service_flags = <optimized out>
        storage_service_flags = MAIL_STORAGE_SERVICE_FLAG_DISALLOW_ROOT
        username = 0x0
        c = <optimized out>








More information about the dovecot mailing list