[Dovecot] Dovecot deliver Segmentation fault when arrive the first message

Alessio Cecchi alessio at skye.it
Mon Sep 24 18:40:52 EEST 2012


Il 19/09/2012 15:07, Alessio Cecchi ha scritto:
> Il 19/09/2012 15:03, Alessio Cecchi ha scritto:
>> Il 19/09/2012 14:48, Timo Sirainen ha scritto:
>>> On 19.9.2012, at 13.54, Alessio Cecchi wrote:
>>>
>>>> LDA is configured and works fine but the problem is when the first 
>>>> message arrive "dovecot-lda" return a "Segmentation fault", the 
>>>> message is written to the user's Mailbox but the message remains, 
>>>> also, in the queue of qmail (deferral: Segmentation_fault/) and at 
>>>> the second attempt is delivered fine.
>>> gdb backtrace would be very helpful in figuring out the problem: 
>>> http://dovecot.org/bugreport.html
>>>
>>

Hi Timo,

had you occasion to see the problem? Can I provide more information?

Thanks

>
> This is the full bt:
>
> (gdb) bt full
> #0  acl_lookup_dict_rebuild (dict=0x0) at acl-lookup-dict.c:221
>         ns = <value optimized out>
>         ids_arr = {arr = {buffer = 0x0, element_size = 26492496}, v = 
> 0x0,
>           v_modifiable = 0x0}
>         ids = 0x1928658
>         i = <value optimized out>
>         dest = <value optimized out>
>         ret = -883075307
> #1  0x00007f2fc9fc41b4 in acl_backend_vfile_acllist_try_rebuild (
>     backend=0x1944240) at acl-backend-vfile-acllist.c:297
>         auser = 0x1949a08
>         iter = 0x0
>         acllist_path = 0x1928658 
> "/home/vpopmail/domains/qboxdns.it/cecchi10/Maildir/dovecot-acl-list"
>         ret = <value optimized out>
>         ns = 0x1943e50
>         output = 0x0
>         st = {st_dev = 2051, st_ino = 662103, st_nlink = 1, st_mode = 
> 33152,
>           st_uid = 89, st_gid = 89, __pad0 = 0, st_rdev = 0, st_size = 0,
>           st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 
> 1348059559,
>             tv_nsec = 0}, st_mtim = {tv_sec = 1348059559, tv_nsec = 0},
>           st_ctim = {tv_sec = 1348059559, tv_nsec = 0}, __unused = {0, 
> 0, 0}}
>         path = 0x1928210
>
>         file_mode = 384
>         dir_mode = 448
>         gid = 4294967295
>         list = <value optimized out>
>         info = <value optimized out>
>         rootdir = 0x1928610 "Sent"
>         origin = 0x194d178 
> "/home/vpopmail/domains/qboxdns.it/cecchi10/Maildir"
>         fd = 8
> #2  acl_backend_vfile_acllist_rebuild (backend=0x1944240)
>     at acl-backend-vfile-acllist.c:311
>         acllist_path = <value optimized out>
> #3  0x00007f2fc9fc4563 in acl_backend_vfile_acllist_refresh 
> (backend=0x1944240)
>     at acl-backend-vfile-acllist.c:153
>         __FUNCTION__ = "acl_backend_vfile_acllist_refresh"
> #4  0x00007f2fc9fc46d5 in acl_backend_vfile_acllist_verify (backend=0x0,
>     name=0x1944a60 "", mtime=0) at acl-backend-vfile-acllist.c:343
>         acllist = <value optimized out>
> #5  0x00007f2fc9fc30b8 in acl_backend_vfile_object_refresh_cache (
>     _aclobj=0x19444e0) at acl-backend-vfile.c:858
>         old_validity = <value optimized out>
>         validity = {global_validity = {last_check = 0,
>             last_read_time = 1348059559, last_mtime = 0, last_size = 0},
>           local_validity = {last_check = 0, last_read_time = 0,
>
>             last_mtime = 0, last_size = 0}, mailbox_validity = {
>             last_check = 0, last_read_time = 0, last_mtime = 0, 
> last_size = 0}}
>         mtime = 0
>         ret = 26515976
> #6  0x00007f2fc9fc125e in acl_backend_get_default_rights 
> (backend=0x1944240,
>     mask_r=0x28) at acl-backend.c:164
> No locals.
> #7  0x00007f2fc9fc75bd in acl_mailbox_try_list_fast (list=0x194cc00,
>     patterns=0x7fff362dff50, flags=MAILBOX_LIST_ITER_RETURN_NO_FLAGS)
>     at acl-mailbox-list.c:107
>         alist = <value optimized out>
>         nonowner_list_ctx = <value optimized out>
>         ret = <value optimized out>
>         backend = 0x1944240
>         acl_mask = 0x1
>         ns = 0x1943e50
>         update_ctx = {iter_ctx = 0x7f2fcb80d2c8, tree_ctx = 
> 0x7f2fcbf2ba88,
>           glob = 0x0, leaf_flags = 4294967295, parent_flags = 0,
>           update_only = 0, match_parents = 0}
>         name = <value optimized out>
> #8  acl_mailbox_list_iter_init (list=0x194cc00, patterns=0x7fff362dff50,
>     flags=MAILBOX_LIST_ITER_RETURN_NO_FLAGS) at acl-mailbox-list.c:194
>         _data_stack_cur_id = 2
>
>         ctx = 0x1946b20
>         pool = <value optimized out>
>         i = <value optimized out>
>         inboxcase = <value optimized out>
> #9  0x00007f2fcb886d33 in mailbox_list_iter_init_multiple 
> (list=0x194cc00,
>     patterns=0x7fff362dff50, flags=MAILBOX_LIST_ITER_RETURN_NO_FLAGS)
>     at mailbox-list-iter.c:158
>         ctx = <value optimized out>
>         ret = <value optimized out>
>         __FUNCTION__ = "mailbox_list_iter_init_multiple"
> #10 0x00007f2fcb887459 in mailbox_list_iter_init (list=0x0,
>     pattern=<value optimized out>, flags=1348059559) at 
> mailbox-list-iter.c:58
>         patterns = {0x7f2fc9db76dc "*", 0x0}
> #11 0x00007f2fc9db2370 in quota_count_namespace (root=0x1944950,
>     bytes_r=<value optimized out>, count_r=0x7fff362dfff0) at 
> quota-count.c:73
>         ctx = 0x7f2fcb5beef3
>         info = <value optimized out>
> #12 quota_count (root=0x1944950, bytes_r=<value optimized out>,
>     count_r=0x7fff362dfff0) at quota-count.c:111
>         i = 0
>         ret = 0
> #13 0x00007f2fc9db37ce in dict_quota_count (root=0x0, want_bytes=true,
>     value_r=0x7fff362e0038) at quota-dict.c:113
>
>         dt = <value optimized out>
>         bytes = 0
>         count = 0
> #14 0x00007f2fc9db395a in dict_quota_update_callback (
>     ret=<value optimized out>, context=0x1949a08) at quota-dict.c:178
>         value = 1
> #15 0x00007f2fcb592258 in client_dict_finish_transaction (dict=0x194c7f0,
>     line_r=<value optimized out>) at dict-client.c:265
>         ctx = 0x1984190
> #16 client_dict_read_one_line (dict=0x194c7f0, line_r=<value optimized 
> out>)
>     at dict-client.c:356
>         id = 1
>         line = <value optimized out>
>         ret = 0
>         __FUNCTION__ = "client_dict_read_one_line"
> #17 0x00007f2fcb592565 in client_dict_wait (_dict=<value optimized out>)
>     at dict-client.c:520
>         dict = 0x194c7f0
>         line = 0x0
>         ret = <value optimized out>
> #18 0x00007f2fc9db3ab5 in dict_quota_deinit (_root=<value optimized out>)
>     at quota-dict.c:90
>         root = 0x1944950
>
> #19 0x00007f2fc9dafc72 in quota_root_deinit (root=0x0) at quota.c:240
>         pool = 0x194c5c0
> #20 0x00007f2fc9db16e1 in quota_deinit (_quota=0x1949a38) at quota.c:335
>         quota = 0x1944720
>         i = 2
> #21 0x00007f2fc9db61dd in quota_user_deinit (user=0x19483c0)
>     at quota-storage.c:412
>         quser = 0x1949a30
>         quota_set = 0x1946f30
> #22 0x00007f2fcb88188e in mail_user_unref (_user=<value optimized out>)
>     at mail-user.c:153
>         user = 0x19483c0
>         __FUNCTION__ = "mail_user_unref"
> #23 0x0000000000402de2 in main (argc=3, argv=0x192d370) at main.c:481
>         set_roots = {0x604640, 0x0}
>         ctx = {pool = 0x192df60, set = 0x1930720, session = 0x192df80,
>           dup_ctx = 0x0, session_id = 0x0, src_mail = 0x0,
>           src_envelope_sender = 0x0, dest_user = 0x0,
>           dest_addr = 0x192d3c2 "cecchi10 at qboxdns.it",
>           final_dest_addr = 0x192d3c2 "cecchi10 at qboxdns.it",
>           dest_mailbox_name = 0x4034d9 "INBOX", dest_mail = 0x0,
>           var_expand_table = 0x192e050, tried_default_save = true,
>           saved_mail = true, save_dest_mail = false, mailbox_full = 
> false,
>
>           dsn = false}
>         service_flags = <value optimized out>
>         user = 0x192d3c2 "cecchi10 at qboxdns.it"
>         errstr = 0x0
>         path = 0x7fff362e0368 "\351\a"
>         storage_service = 0x192f3a0
>         service_user = 0x192fd48
>         service_input = {module = 0x4034d5 "lda", service = 0x4034d5 
> "lda",
>           username = 0x192d3c2 "cecchi10 at qboxdns.it", session_id = 0x0,
>           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}
>         storage = 0x1943f30
>         user_source = <value optimized out>
>         destaddr_source = 0x403594 "user at hostname"
>         process_euid = <value optimized out>
>         stderr_rejection = false
>
>         ret = <value optimized out>
>         c = <value optimized out>
>         error = MAIL_ERROR_NONE
> (gdb)
>
> Sorry
>


-- 
Alessio Cecchi is:
@ ILS -> http://www.linux.it/~alessice/
on LinkedIn -> http://www.linkedin.com/in/alessice
Assistenza Sistemi GNU/Linux -> http://www.cecchi.biz/
@ PLUG -> ex-Presidente, adesso senatore a vita, http://www.prato.linux.it




More information about the dovecot mailing list