[Dovecot] 1.1.2: imap crash with SIGSEGV
GNU gdb 6.8-debian Copyright (C) 2008 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 "i486-linux-gnu"... Reading symbols from /lib/i686/cmov/libdl.so.2...Reading symbols from /usr/lib/debug/lib/i686/cmov/libdl-2.7.so...done. done. Loaded symbols for /lib/i686/cmov/libdl.so.2 Reading symbols from /lib/i686/cmov/libc.so.6...Reading symbols from /usr/lib/debug/lib/i686/cmov/libc-2.7.so...done. done. Loaded symbols for /lib/i686/cmov/libc.so.6 Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.7.so...done. done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib10_quota_plugin.so Reading symbols from /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so Reading symbols from /usr/local/lib/dovecot/imap/lib11_trash_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib11_trash_plugin.so Reading symbols from /usr/local/lib/dovecot/imap/lib20_fts_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib20_fts_plugin.so Reading symbols from /usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so Reading symbols from /usr/local/lib/dovecot/imap/lib21_fts_squat_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib21_fts_squat_plugin.so Core was generated by `/usr/local/libexec/dovecot/imap'. Program terminated with signal 11, Segmentation fault. [New process 23474] #0 mail_transaction_log_file_lock (file=0x0) at mail-transaction-log-file.c:257 257 if (file->locked) #0 mail_transaction_log_file_lock (file=0x0) at mail-transaction-log-file.c:257 #1 0x080ba2fd in mail_transaction_log_lock_head (log=0x91cfd68) at mail-transaction-log.c:419 #2 0x080ba36d in mail_transaction_log_sync_lock (log=0x91cfd68, file_seq_r=0xbff348a4, file_offset_r=0xbff34880) at mail-transaction-log.c:451 #3 0x080c44bb in mail_index_fsck (index=0x91cf828) at mail-index-fsck.c:424 #4 0x080b0296 in mail_index_map (index=0x91cf828, type=MAIL_INDEX_SYNC_HANDLER_HEAD) at mail-index-map.c:888 #5 0x080acde3 in mail_index_try_open (index=0x91cf828) at mail-index.c:290 #6 0x080ad0a7 in mail_index_open (index=0x91cf828, flags=49, lock_method=FILE_LOCK_METHOD_FCNTL) at mail-index.c:338 #7 0x080a1112 in index_storage_mailbox_open (ibox=0x91d02b0) at index-storage.c:383 #8 0x0807094b in maildir_open (storage=0x91bacc0, name=0x91bf6ee "Drafts", flags=0) at maildir-storage.c:448 #9 0x08070ab4 in maildir_mailbox_open (_storage=0x91bacc0, name=0x91bf6ee "Drafts", input=0x0, flags=0) at maildir-storage.c:512 #10 0xb7ea61ca in mail_log_mailbox_open (storage=0x91bacc0, name=0x91bf6ee "Drafts", input=0x0, flags=0) at mail-log-plugin.c:450 #11 0xb7eb761a in quota_mailbox_open (storage=0x91bacc0, name=0x91bf6ee "Drafts", input=0x0, flags=0) at quota-storage.c:366 #12 0x080a51d9 in mailbox_open (storage=0x91bacc0, name=0x91bf6ee "Drafts", input=0x0, flags=0) at mail-storage.c:459 #13 0x08060c89 in cmd_select_full (cmd=0x91bb5f0, readonly=false) at cmd-select.c:32 #14 0x08060e69 in cmd_select (cmd=0x91bb5f0) at cmd-select.c:87 #15 0x0806271c in client_command_input (cmd=0x91bb5f0) at client.c:580 #16 0x080627b3 in client_command_input (cmd=0x91bb5f0) at client.c:629 #17 0x08062d6d in client_handle_input (client=<value optimized out>) at client.c:670 #18 0x080631ee in client_input (client=0x91bb3a8) at client.c:725 #19 0x080dd730 in io_loop_handler_run (ioloop=0x91b79b0) at ioloop-epoll.c:201 #20 0x080dcc10 in io_loop_run (ioloop=0x91b79b0) at ioloop.c:308 #21 0x0806b35a in main (argc=152894696, argv=0xbff34f34, envp=0xbff34f3c) at main.c:293
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de "FOOT-AND-MOUTH BELIEVED TO BE FIRST VIRUS UNABLE TO SPREAD THROUGH MICROSOFT OUTLOOK Researchers Shocked to Finally Find Virus That Email App Doesn't Like".
On Aug 1, 2008, at 4:36 PM, Ralf Hildebrandt wrote:
#1 0x080ba2fd in mail_transaction_log_lock_head (log=0x91cfd68) at mail-transaction-log.c:419 #2 0x080ba36d in mail_transaction_log_sync_lock (log=0x91cfd68, file_seq_r=0xbff348a4, file_offset_r=0xbff34880) at mail-transaction-log.c:451 #3 0x080c44bb in mail_index_fsck (index=0x91cf828) at mail-index- fsck.c:424
What were the error messages for this user? What happened here is that
dovecot.index was broken (why?) and dovecot.index.log file didn't
exist (why?) which caused the crash when trying to open the index.
Fixed the crash itself anyway: http://hg.dovecot.org/dovecot-1.1/rev/1c010fadc9c9
- Timo Sirainen tss@iki.fi:
On Aug 1, 2008, at 4:36 PM, Ralf Hildebrandt wrote:
#1 0x080ba2fd in mail_transaction_log_lock_head (log=0x91cfd68) at mail-transaction-log.c:419 #2 0x080ba36d in mail_transaction_log_sync_lock (log=0x91cfd68, file_seq_r=0xbff348a4, file_offset_r=0xbff34880) at mail-transaction-log.c:451 #3 0x080c44bb in mail_index_fsck (index=0x91cf828) at mail-index- fsck.c:424
What were the error messages for this user? What happened here is that
dovecot.index was broken (why?) and dovecot.index.log file didn't exist (why?) which caused the crash when trying to open the index. Fixed the crash itself anyway: http://hg.dovecot.org/dovecot-1.1/rev/1c010fadc9c9
From the logs:
Aug 1 15:01:09 postamt dovecot: imap-login: Login: user=<loginname>, method=PLAIN, rip=141.42.4.251, lip=141.42.4.250 Aug 1 15:02:16 postamt dovecot: IMAP(loginname): copy: uid=118, dest=Administrator, msgid=mailman.9757.1217560680.10595.mailman@charite.de, size=2940 Aug 1 15:02:16 postamt dovecot: IMAP(loginname): delete: uid=118, msgid=mailman.9757.1217560680.10595.mailman@charite.de Aug 1 15:02:16 postamt dovecot: IMAP(loginname): expunge: uid=118, msgid=mailman.9757.1217560680.10595.mailman@charite.de, size=2940 Aug 1 15:02:27 postamt dovecot: IMAP(loginname): delete: uid=54, box=Trash, msgid=607b88f3ed74c30e75c82536d9c750ce.squirrel@webmail.charite.de Aug 1 15:02:27 postamt dovecot: IMAP(loginname): expunge: uid=54, box=Trash, msgid=607b88f3ed74c30e75c82536d9c750ce.squirrel@webmail.charite.de, size=4116 Aug 1 15:02:48 postamt dovecot: IMAP(loginname): fscking index file /home/g/z/loginname/Maildir/.Drafts/dovecot.index Aug 1 15:02:51 postamt dovecot: imap-login: Login: user=<loginname>, method=PLAIN, rip=141.42.4.251, lip=141.42.4.250 Aug 1 15:08:52 postamt dovecot: IMAP(loginname): Disconnected: Logged out bytes=1356/18528
The core file was written: 2008-08-01 15:02
-- Ralf Hildebrandt (Ralf.Hildebrandt@charite.de) snickebo@charite.de Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de A good rule of thumb to keep in mind is that any field of study which has "science" in its name is not a science.
participants (2)
-
Ralf Hildebrandt
-
Timo Sirainen