[Dovecot] Dovecot-1.0.rc17 on Solaris10 = assert_error
Hi,
i have a problem with dovecot rc17 on Solaris10.
I have compiled Dovecot and openSSL in 32bit: CFLAGS="-I/opt/openssl-0.9.7l/include" LDFLAGS="-L/opt/openssl-0.9.7l/lib -R/opt/openssl-0.9.7l/lib" ./configure --prefix=/opt/dovecot-1.0.rc17 --with-ssl=openssl --with-ssldir=/opt/openssl-0.9.7l --enable-shared --disable-ipv6 --with-file-offset-size=32
make and make install ran without errors or warnings.
The /opt/dovecot-1.0.rc17/var/log says:
dovecot: Jan 16 11:20:05 Error: IMAP(kric0999): file lib.c: line 13 (nearest_power): assertion failed: (num <= ((size_t)1 << (BITS_IN_SIZE _T-1)))
The error occures whenever i start my mail client and the authorization is successful.
Cam anyone help me?
Regards,
Kevin Richter
On Tue, 2007-01-16 at 13:56 +0100, Kevin Richter wrote:
Hi,
i have a problem with dovecot rc17 on Solaris10.
I have compiled Dovecot and openSSL in 32bit: CFLAGS="-I/opt/openssl-0.9.7l/include" LDFLAGS="-L/opt/openssl-0.9.7l/lib -R/opt/openssl-0.9.7l/lib" ./configure --prefix=/opt/dovecot-1.0.rc17 --with-ssl=openssl --with-ssldir=/opt/openssl-0.9.7l --enable-shared --disable-ipv6 --with-file-offset-size=32
make and make install ran without errors or warnings.
The /opt/dovecot-1.0.rc17/var/log says:
dovecot: Jan 16 11:20:05 Error: IMAP(kric0999): file lib.c: line 13 (nearest_power): assertion failed: (num <= ((size_t)1 << (BITS_IN_SIZE _T-1)))
Something's really broken in there. I've never seen this assert happen before. Could you get gdb backtrace from it? See http://dovecot.org/bugreport.html
Hi,
there is your backtrace. If you have any ideas, what I can do next, please let me know them.
# gdb /opt/dovecot-1.0.rc17/libexec/dovecot/imap /home/kric0999/core GNU gdb 6.2.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-pc-solaris2.10"... Core was generated by `imap'. Program terminated with signal 6, Aborted. Reading symbols from /usr/lib/libiconv.so.2...done. Loaded symbols for /usr/lib//libiconv.so.2 Reading symbols from /usr/lib/libsocket.so.1...done. Loaded symbols for /usr/lib//libsocket.so.1 Reading symbols from /usr/lib/libnsl.so.1...done. Loaded symbols for /usr/lib//libnsl.so.1 Reading symbols from /usr/lib/librt.so.1...done. Loaded symbols for /usr/lib//librt.so.1 Reading symbols from /usr/lib/libsendfile.so.1...done. Loaded symbols for /usr/lib//libsendfile.so.1 Reading symbols from /usr/lib/libc.so.1...done. Loaded symbols for /usr/lib//libc.so.1 Reading symbols from /usr/sfw/lib/libgcc_s.so.1...done. Loaded symbols for /usr/sfw/lib/libgcc_s.so.1 Reading symbols from /lib/libaio.so.1...done. Loaded symbols for /lib/libaio.so.1 Reading symbols from /lib/libmd5.so.1...done. Loaded symbols for /lib/libmd5.so.1 #0 0xbfd80c57 in _lwp_kill () from /usr/lib//libc.so.1 (gdb) bt full #0 0xbfd80c57 in _lwp_kill () from /usr/lib//libc.so.1 No symbol table info available. #1 0xbfd7e40e in thr_kill () from /usr/lib//libc.so.1 No symbol table info available. #2 0xbfd2d083 in raise () from /usr/lib//libc.so.1 No symbol table info available. #3 0xbfd10b19 in abort () from /usr/lib//libc.so.1 No symbol table info available. #4 0x080c921d in i_internal_panic_handler () No symbol table info available. #5 0x080c8d19 in i_panic () No symbol table info available. #6 0x080cff5c in nearest_power () No symbol table info available. #7 0x080d1677 in pool_get_exp_grown_size () No symbol table info available. #8 0x080c7e20 in buffer_check_limits () No symbol table info available. #9 0x080c8128 in buffer_get_space_unsafe () No symbol table info available. #10 0x080c8150 in buffer_append_space_unsafe () No symbol table info available. #11 0x080a3516 in mail_index_read_map () No symbol table info available. #12 0x080a3c5f in mail_index_read_map_with_retry () No symbol table info available. #13 0x080a40c6 in mail_index_map () No symbol table info available. #14 0x080a4923 in mail_index_try_open () No symbol table info available. #15 0x080a4f2f in mail_index_open_files () No symbol table info available. #16 0x080a52ec in mail_index_open () No symbol table info available. #17 0x0809b7c2 in index_storage_mailbox_init () No symbol table info available. #18 0x0807aabe in mbox_alloc () No symbol table info available. #19 0x0807acab in mbox_open () No symbol table info available. #20 0x0807af83 in mbox_mailbox_open () No symbol table info available. #21 0x080b9479 in mailbox_open () No symbol table info available. #22 0x08061dda in _cmd_select_full () No symbol table info available. #23 0x08061fc4 in cmd_select () No symbol table info available. #24 0x08063e33 in client_handle_input () No symbol table info available. #25 0x08064028 in client_handle_input () ---Type <return> to continue, or q <return> to quit--- No symbol table info available. #26 0x0806410b in _client_input () No symbol table info available. #27 0x080cfef2 in io_loop_handler_run () No symbol table info available. #28 0x080cf52d in io_loop_run () No symbol table info available. #29 0x0806dd17 in main () No symbol table info available. (gdb)
Timo Sirainen schrieb:
On Tue, 2007-01-16 at 13:56 +0100, Kevin Richter wrote:
Hi,
i have a problem with dovecot rc17 on Solaris10.
I have compiled Dovecot and openSSL in 32bit: CFLAGS="-I/opt/openssl-0.9.7l/include" LDFLAGS="-L/opt/openssl-0.9.7l/lib -R/opt/openssl-0.9.7l/lib" ./configure --prefix=/opt/dovecot-1.0.rc17 --with-ssl=openssl --with-ssldir=/opt/openssl-0.9.7l --enable-shared --disable-ipv6 --with-file-offset-size=32
make and make install ran without errors or warnings.
The /opt/dovecot-1.0.rc17/var/log says:
dovecot: Jan 16 11:20:05 Error: IMAP(kric0999): file lib.c: line 13 (nearest_power): assertion failed: (num <= ((size_t)1 << (BITS_IN_SIZE _T-1)))
Something's really broken in there. I've never seen this assert happen before. Could you get gdb backtrace from it? See http://dovecot.org/bugreport.html
On Tue, 2007-01-23 at 10:46 +0100, Kevin Richter wrote:
#6 0x080cff5c in nearest_power () No symbol table info available. #7 0x080d1677 in pool_get_exp_grown_size () No symbol table info available. #8 0x080c7e20 in buffer_check_limits () No symbol table info available. #9 0x080c8128 in buffer_get_space_unsafe () No symbol table info available. #10 0x080c8150 in buffer_append_space_unsafe () No symbol table info available. #11 0x080a3516 in mail_index_read_map ()
I think this means your index file was corrupted. This patch should fix it by logging an error instead of crashing: http://dovecot.org/list/dovecot-cvs/2007-January/007496.html
You could also just try deleting dovecot.index* files.
Ok, thanks. I applied the patch and removed the index-Files. The error is gone and another occured. This time: Signal 8, "Arithmetic exception".
The logfile says:
dovecot: Jan 23 11:32:49 Info: IMAP(kric0999): mbox: data=/home/kric0999/mail/:INBOX=/var/mail/kric0999 dovecot: Jan 23 11:32:49 Info: IMAP(kric0999): mbox: root=/home/kric0999/mail, index=/home/kric0999/mail, inbox=/var/mail/kric0999 dovecot: Jan 23 11:32:49 Error: child 18342 (imap) killed with signal 8
Here my bt:
# gdb /opt/dovecot-1.0.rc17/libexec/dovecot/imap /home/kric0999/core GNU gdb 6.2.1 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-pc-solaris2.10"... Core was generated by `imap'. Program terminated with signal 8, Arithmetic exception. Reading symbols from /usr/lib/libiconv.so.2...done. Loaded symbols for /usr/lib//libiconv.so.2 [...] Reading symbols from /lib/libmd5.so.1...done. Loaded symbols for /lib/libmd5.so.1 #0 0x080a3621 in mail_index_read_map () (gdb) bt full #0 0x080a3621 in mail_index_read_map () No symbol table info available. #1 0x080a3d97 in mail_index_read_map_with_retry () No symbol table info available. #2 0x080a41fe in mail_index_map () No symbol table info available. #3 0x080a4e64 in mail_index_create () No symbol table info available. #4 0x080a5198 in mail_index_open_files () No symbol table info available. #5 0x080a5424 in mail_index_open () No symbol table info available. #6 0x0809b7c2 in index_storage_mailbox_init () No symbol table info available. #7 0x0807aabe in mbox_alloc () No symbol table info available. #8 0x0807acab in mbox_open () No symbol table info available. #9 0x0807af83 in mbox_mailbox_open () No symbol table info available. #10 0x080b95b1 in mailbox_open () No symbol table info available. #11 0x08061dda in _cmd_select_full () No symbol table info available. #12 0x08061fc4 in cmd_select () No symbol table info available. #13 0x08063e33 in client_handle_input () No symbol table info available. #14 0x08064028 in client_handle_input () No symbol table info available. #15 0x0806410b in _client_input () No symbol table info available. #16 0x080d002a in io_loop_handler_run () No symbol table info available. #17 0x080cf665 in io_loop_run () No symbol table info available. #18 0x0806dd17 in main () No symbol table info available.
Timo Sirainen schrieb:
On Tue, 2007-01-23 at 10:46 +0100, Kevin Richter wrote:
#6 0x080cff5c in nearest_power () No symbol table info available. #7 0x080d1677 in pool_get_exp_grown_size () No symbol table info available. #8 0x080c7e20 in buffer_check_limits () No symbol table info available. #9 0x080c8128 in buffer_get_space_unsafe () No symbol table info available. #10 0x080c8150 in buffer_append_space_unsafe () No symbol table info available. #11 0x080a3516 in mail_index_read_map ()
I think this means your index file was corrupted. This patch should fix it by logging an error instead of crashing: http://dovecot.org/list/dovecot-cvs/2007-January/007496.html
You could also just try deleting dovecot.index* files.
On Tue, 2007-01-23 at 11:47 +0100, Kevin Richter wrote:
Ok, thanks. I applied the patch and removed the index-Files. The error is gone and another occured. This time: Signal 8, "Arithmetic exception".
Yea, I noticed it myself too.. A few more patches on top of that:
http://dovecot.org/list/dovecot-cvs/2007-January/007498.html http://dovecot.org/list/dovecot-cvs/2007-January/007500.html
Works! Thanks :-)
But if I omit these 3 patches, it works, too. The deletion of the index files was the decisive factor.
Timo Sirainen schrieb:
On Tue, 2007-01-23 at 11:47 +0100, Kevin Richter wrote:
Ok, thanks. I applied the patch and removed the index-Files. The error is gone and another occured. This time: Signal 8, "Arithmetic exception".
Yea, I noticed it myself too.. A few more patches on top of that:
http://dovecot.org/list/dovecot-cvs/2007-January/007498.html http://dovecot.org/list/dovecot-cvs/2007-January/007500.html
participants (2)
-
Kevin Richter
-
Timo Sirainen