Re: [Dovecot] occasional dovecot crash, core captured but no symbol table info?

2011-08-27 Thread John Clements

On Aug 26, 2011, at 10:30 PM, mail...@securitylabs.it wrote:

> Il 26/08/2011 20:38, John Clements ha scritto:
>> Dovecot is crashing occasionally for me.  Today it crashed six times in 
>> quick succession, as I fired up a computer (Mac) I hadn't used in a while, 
>> and my mail application (Apple Mail) tried to synchronize many large 
>> mailboxes.
>> 
>> The log entries look like this:
>> 
>> Aug 26 10:26:15 computer dovecot: dovecot: child 23223 (imap) killed with 
>> signal 6 (core dumped)
>> Aug 26 10:26:30 computer dovecot: IMAP(granitemon): Panic: file 
>> istream-raw-mbox.c: line 583 (istream_raw_mbox_get_body_size): assertion 
>> failed: (rstream->body_offset != (uoff_t)-1)
> 
> Hello,
> 
> http://www.dovecot.org/list/dovecot/2010-March/047426.html
> 
> dunno if it has been fixed in 1.2.16 or 1.2.17, you may try to upgrade to 
> 1.2.17 or apply the above patch.

Thanks for googling that for me... :)

The tone of that message suggests that this core dump is probably not 
associated with data loss; any idea if that's true?

Thanks and apologies for not doing enough homework,

John Clements



Re: [Dovecot] occasional dovecot crash, core captured but no symbol table info?

2011-08-26 Thread mail...@securitylabs.it

Il 26/08/2011 20:38, John Clements ha scritto:

Dovecot is crashing occasionally for me.  Today it crashed six times in quick 
succession, as I fired up a computer (Mac) I hadn't used in a while, and my 
mail application (Apple Mail) tried to synchronize many large mailboxes.

The log entries look like this:

Aug 26 10:26:15 computer dovecot: dovecot: child 23223 (imap) killed with 
signal 6 (core dumped)
Aug 26 10:26:30 computer dovecot: IMAP(granitemon): Panic: file 
istream-raw-mbox.c: line 583 (istream_raw_mbox_get_body_size): assertion failed: 
(rstream->body_offset != (uoff_t)-1)


Hello,

http://www.dovecot.org/list/dovecot/2010-March/047426.html

dunno if it has been fixed in 1.2.16 or 1.2.17, you may try to upgrade 
to 1.2.17 or apply the above patch.


[Dovecot] occasional dovecot crash, core captured but no symbol table info?

2011-08-26 Thread John Clements
Dovecot is crashing occasionally for me.  Today it crashed six times in quick 
succession, as I fired up a computer (Mac) I hadn't used in a while, and my 
mail application (Apple Mail) tried to synchronize many large mailboxes.

The log entries look like this:

Aug 26 10:26:15 computer dovecot: dovecot: child 23223 (imap) killed with 
signal 6 (core dumped)
Aug 26 10:26:30 computer dovecot: IMAP(granitemon): Panic: file 
istream-raw-mbox.c: line 583 (istream_raw_mbox_get_body_size): assertion 
failed: (rstream->body_offset != (uoff_t)-1)
Aug 26 10:26:30 computer dovecot: IMAP(granitemon): Raw backtrace: imap() 
[0x80f0e1e] -> imap() [0x80f0e82] -> imap() [0x80f0809] -> 
imap(istream_raw_mbox_get_body_size+0x407) [0x8092f47] -> 
imap(istream_raw_mbox_next+0x25) [0x8093025] -> 
imap(istream_raw_mbox_seek+0x1f3) [0x8093323] -> imap(mbox_file_seek+0x55) 
[0x8093745] -> imap() [0x8095852] -> imap() [0x8095c8d] -> 
imap(index_mail_set_seq+0x153) [0x80a35c3] -> imap() [0x8095fb9] -> 
imap(index_storage_search_next_nonblock+0x13b) [0x80a763b] -> 
imap(mailbox_search_next_nonblock+0x2a) [0x80b5c1a] -> 
imap(mailbox_search_next+0x28) [0x80b5c68] -> imap(imap_fetch_more+0x274) 
[0x806a4c4] -> imap() [0x8062665] -> imap() [0x806753f] -> 
imap(client_output+0xeb) [0x806862b] -> imap() [0x810007e] -> 
imap(io_loop_handler_run+0xd6) [0x80f9aa6] -> imap(io_loop_run+0x20) 
[0x80f8f20] -> imap(main+0x5b4) [0x8070f24] -> 
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xb75f3c76] -> imap() 
[0x80603a1]
Aug 26 10:26:30 computer dovecot: dovecot: child 23228 (imap) killed with 
signal 6 (core dumped)

Here's the output of dovecot -n:

clements@computer:/home/granitemon$ sudo dovecot -n
# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-686 i686 Debian 6.0.2 
log_timestamp: %Y-%m-%d %H:%M:%S 
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
mail_privileged_group: mail
mbox_write_locks: fcntl dotlock
lda:
  postmaster_address: postmas...@brinckerhoff.org
  mail_plugins: sieve
auth default:
  passdb:
driver: pam
  userdb:
driver: passwd

... this is the version associated with debian stable.

Finally, since I had coredumps enabled, I'm in a position to provide 'bt full', 
but it looks like my binaries are stripped, so I'm not getting source code line 
numbers.

granitemon@computer:~$ gdb /usr/lib/dovecot/imap ./core 
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
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".
For bug reporting instructions, please see:
...
Reading symbols from /usr/lib/dovecot/imap...(no debugging symbols 
found)...done.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /lib/i686/cmov/libdl.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/i686/cmov/libdl.so.2
Reading symbols from /usr/lib/libldap_r-2.4.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libldap_r-2.4.so.2
Reading symbols from /lib/i686/cmov/librt.so.1...(no debugging symbols 
found)...done.
Loaded symbols for /lib/i686/cmov/librt.so.1
Reading symbols from /lib/i686/cmov/libc.so.6...(no debugging symbols 
found)...done.
Loaded symbols for /lib/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/liblber-2.4.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/liblber-2.4.so.2
Reading symbols from /lib/i686/cmov/libresolv.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/i686/cmov/libresolv.so.2
Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /usr/lib/libgnutls.so.26...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libgnutls.so.26
Reading symbols from /lib/i686/cmov/libpthread.so.0...(no debugging symbols 
found)...done.
Loaded symbols for /lib/i686/cmov/libpthread.so.0
Reading symbols from /usr/lib/libtasn1.so.3...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libgcrypt.so.11...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libgcrypt.so.11
Reading symbols from /usr/lib/libgpg-error.so.0...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /lib/i686/cmov/libnss_compat.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/i686/cmo