[Dovecot] master: Error: service(imap): child 40100 killed with signal 11
Hello, I've just updated to 2.0.9 and I've got lots of these in the logs now.
Jan 13 18:57:13 master: Error: service(imap): child 40100 killed with signal 11 (core not dumped - set service imap { drop_priv_before_exec=yes })
Is there a configuration change or something else I should have done while updating?
I tried to get some information by loading the binary into gdb and got this:
(gdb) bt full #0 0x00000008007c71fc in kevent () from /lib/libc.so.7 No symbol table info available. #1 0x00000008005a8281 in io_loop_handler_run () from /usr/lib/dovecot/libdovecot.so.0 No symbol table info available. #2 0x0000000000000707 in ?? () No symbol table info available. #3 0x00000000000f4138 in ?? () No symbol table info available. #4 0x0000000000000707 in ?? () No symbol table info available. #5 0x000000003b96c2c0 in ?? () No symbol table info available. #6 0x0000000000000002 in ?? () No symbol table info available. #7 0x0000000800a1f040 in ?? () No symbol table info available. #8 0x0000000000000000 in ?? () No symbol table info available. #9 0x00007fffffffeccd in ?? () No symbol table info available. #10 0x00007fffffffe7c0 in ?? () No symbol table info available. #11 0x00000008005a83d8 in io_loop_run () from /usr/lib/dovecot/libdovecot.so.0 No symbol table info available. #12 0x0000000800a1a100 in ?? () No symbol table info available. #13 0x00000008005a8823 in master_service_run () from /usr/lib/dovecot/libdovecot.so.0 No symbol table info available. #14 0x0000000800a0f840 in ?? () No symbol table info available. #15 0x00000000004219d0 in main () No symbol table info available.
This is on FreeBSD 8.1 with the gold linker (which still can't be used to compile pop3-login) and gcc 4.5.2.
Cheers,
Olivier
On 13.1.2011, at 20.45, interfaSys sàrl wrote:
Hello, I've just updated to 2.0.9 and I've got lots of these in the logs now.
From 2.0.8?
Jan 13 18:57:13 master: Error: service(imap): child 40100 killed with signal 11 (core not dumped - set service imap { drop_priv_before_exec=yes })
Is there a configuration change or something else I should have done while updating?
No.
I tried to get some information by loading the binary into gdb and got this:
(gdb) bt full #0 0x00000008007c71fc in kevent () from /lib/libc.so.7
It's difficult to guess what the problem could be without a usable gdb backtrace, and you need a core file for that. In FreeBSD the easiest way would probably be to enable kern.sugid_coredump sysctl. http://dovecot.org/bugreport.html has more info.
On 13/01/2011 18:48, Timo Sirainen wrote:
On 13.1.2011, at 20.45, interfaSys sàrl wrote:
Hello, I've just updated to 2.0.9 and I've got lots of these in the logs now.
From 2.0.8?
Yes
Jan 13 18:57:13 master: Error: service(imap): child 40100 killed with signal 11 (core not dumped - set service imap { drop_priv_before_exec=yes })
Is there a configuration change or something else I should have done while updating?
No.
OK
I tried to get some information by loading the binary into gdb and got this:
(gdb) bt full #0 0x00000008007c71fc in kevent () from /lib/libc.so.7
It's difficult to guess what the problem could be without a usable gdb backtrace, and you need a core file for that. In FreeBSD the easiest way would probably be to enable kern.sugid_coredump sysctl. http://dovecot.org/bugreport.html has more info.
Here is the info from the core file:
Core was generated by `imap'. Program terminated with signal 11, Segmentation fault. Reading symbols from /usr/lib/dovecot/libdovecot-storage.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/libdovecot-storage.so.0 Reading symbols from /usr/lib/dovecot/libdovecot.so.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/libdovecot.so.0 Reading symbols from /usr/lib/librt.so.1...(no debugging symbols found)...done. Loaded symbols for /usr/lib/librt.so.1 Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /usr/lib/dovecot/lib01_acl_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib01_acl_plugin.so Reading symbols from /usr/lib/dovecot/lib02_imap_acl_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib02_imap_acl_plugin.so Reading symbols from /usr/lib/dovecot/lib10_quota_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib10_quota_plugin.so Reading symbols from /usr/lib/dovecot/lib11_imap_quota_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib11_imap_quota_plugin.so Reading symbols from /usr/lib/dovecot/lib11_trash_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib11_trash_plugin.so Reading symbols from /usr/lib/dovecot/lib20_autocreate_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib20_autocreate_plugin.so Reading symbols from /usr/lib/dovecot/lib20_fts_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib20_fts_plugin.so Reading symbols from /usr/lib/dovecot/lib20_zlib_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib20_zlib_plugin.so Reading symbols from /lib/libz.so.5...(no debugging symbols found)...done. Loaded symbols for /lib/libz.so.5 Reading symbols from /usr/lib/libbz2.so.4...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libbz2.so.4 Reading symbols from /usr/lib/dovecot/lib21_fts_squat_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib21_fts_squat_plugin.so Reading symbols from /usr/lib/dovecot/lib30_imap_zlib_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib30_imap_zlib_plugin.so Reading symbols from /usr/lib/dovecot/lib90_antispam_plugin.so...(no debugging symbols found)...done. Loaded symbols for /usr/lib/dovecot/lib90_antispam_plugin.so Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x0000000800430880 in dlsym () from /libexec/ld-elf.so.1 (gdb) bt full #0 0x0000000800430880 in dlsym () from /libexec/ld-elf.so.1 No symbol table info available. #1 0x00000008004309bd in dlclose () from /libexec/ld-elf.so.1 No symbol table info available. #2 0x0000000800597fd9 in module_dir_unload () from /usr/lib/dovecot/libdovecot.so.0 No symbol table info available. #3 0x0000000000000000 in ?? () No symbol table info available. #4 0x0000000800a37840 in ?? () No symbol table info available. #5 0x00007fffffffe6e0 in ?? () No symbol table info available. #6 0x00007fffffffecca in ?? () No symbol table info available. #7 0x0000000000424b40 in imap_ext_commands.12434 () No symbol table info available. #8 0x000000080049a281 in mail_storage_service_deinit () from /usr/lib/dovecot/libdovecot-storage.so.0 No symbol table info available. #9 0x0000000000000000 in ?? () No symbol table info available. #10 0x00000000004214eb in main () No symbol table info available.
On 13.1.2011, at 21.01, interfaSys sàrl wrote:
Here is the info from the core file:
That doesn't make much sense though.. Can you compile Dovecot without stripping debug symbols? Or you can you easily reproduce this? Can you try if you can crash without any plugins? It looks as the problem has to do with one the plugins..
Loaded symbols for /usr/lib/dovecot/lib90_antispam_plugin.so Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Did you recompile autospam plugin?
On 13/01/2011 19:37, Timo Sirainen wrote:
On 13.1.2011, at 21.01, interfaSys sàrl wrote:
Here is the info from the core file:
That doesn't make much sense though.. Can you compile Dovecot without stripping debug symbols? Or you can you easily reproduce this? Can you try if you can crash without any plugins? It looks as the problem has to do with one the plugins..
I'll remove all CFLAGS and see what happens. I'll see if I can compile just this module with a different config file so that I can remove plugins one by one.
It crashes when I quit # ./imap
PREAUTH [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT CH
TS=texk] Logged in as root
^C* BYE Server shutting down. imap: Info: Server shutting down. bytes=6/9938474 Segmentation fault: 11 (core dumped)
Loaded symbols for /usr/lib/dovecot/lib90_antispam_plugin.so Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Did you recompile autospam plugin?
I recompiled both pigeonhole and antispam. I had to use the old pigeonhole version as the current revision doesn't compile.
I may have found the problem...
# ldd /usr/lib/dovecot/lib90_antispam_plugin.so /usr/lib/dovecot/lib90_antispam_plugin.so: libdovecot.so.0 => not found (0x0) libdovecot-storage.so.0 => not found (0x0)
I'll recompile to see what happens
On 13/01/2011 19:37, Timo Sirainen wrote:
On 13.1.2011, at 21.01, interfaSys sàrl wrote:
Here is the info from the core file:
That doesn't make much sense though.. Can you compile Dovecot without stripping debug symbols? Or you can you easily reproduce this? Can you try if you can crash without any plugins? It looks as the problem has to do with one the plugins..
Loaded symbols for /usr/lib/dovecot/lib90_antispam_plugin.so Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Did you recompile autospam plugin?
Recompiling the plugin didn't help. It seems broken, but I have no idea why it stopped working...
On 13/01/2011 19:37, Timo Sirainen wrote:
On 13.1.2011, at 21.01, interfaSys sàrl wrote:
Here is the info from the core file:
That doesn't make much sense though.. Can you compile Dovecot without stripping debug symbols? Or you can you easily reproduce this? Can you try if you can crash without any plugins? It looks as the problem has to do with one the plugins..
Loaded symbols for /usr/lib/dovecot/lib90_antispam_plugin.so Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Did you recompile autospam plugin?
After having removed imap_acl, the crash is gone.
On 13/01/2011 19:37, Timo Sirainen wrote:
On 13.1.2011, at 21.01, interfaSys sàrl wrote:
Here is the info from the core file:
That doesn't make much sense though.. Can you compile Dovecot without stripping debug symbols? Or you can you easily reproduce this? Can you try if you can crash without any plugins? It looks as the problem has to do with one the plugins..
Loaded symbols for /usr/lib/dovecot/lib90_antispam_plugin.so Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Did you recompile autospam plugin?
On Thu, 2011-01-13 at 20:38 +0000, interfaSys sàrl wrote:
After having removed imap_acl, the crash is gone.
Weird. I can't reproduce it. I don't think I did any changes that could have caused this either.
On Sun, 2011-01-16 at 21:27 +0200, Timo Sirainen wrote:
On Thu, 2011-01-13 at 20:38 +0000, interfaSys sàrl wrote:
After having removed imap_acl, the crash is gone.
Weird. I can't reproduce it. I don't think I did any changes that could have caused this either.
I guess you could try what happens if (after configure) you comment out these lines:
lib02_imap_acl_plugin_la_LIBADD =
../acl/lib01_acl_plugin.la
in src/plugins/imap-acl/Makefile
and then make clean && make it. So that ldd lib02_imap_acl_plugin.so won't show the dependency to lib01_acl_plugin.so.
But I haven't done any changes related to that logic for a long time, so if that helps maybe it was something else than Dovecot that changes in your system (gcc/ld/etc.)
I've recompiled imap-acl only and manually placed the 3 files in the libs folder. After a restart, no more crashes. I have access to folders and permissions, so it seems to be working.
I've noticed that 2.0.8 has the same problem now, so it could be something in the system. Binutils 2.21 and gcc 4.5.2 have been released after 2.0.8.
I've tried to use a different linker and different cflags for imap_acl, but it didn't help, but maybe it's the acl plugin that has a problem then?
On 16/01/2011 19:32, Timo Sirainen wrote:
On Sun, 2011-01-16 at 21:27 +0200, Timo Sirainen wrote:
On Thu, 2011-01-13 at 20:38 +0000, interfaSys sàrl wrote:
After having removed imap_acl, the crash is gone.
Weird. I can't reproduce it. I don't think I did any changes that could have caused this either.
I guess you could try what happens if (after configure) you comment out these lines:
lib02_imap_acl_plugin_la_LIBADD =
../acl/lib01_acl_plugin.lain src/plugins/imap-acl/Makefile
and then make clean && make it. So that ldd lib02_imap_acl_plugin.so won't show the dependency to lib01_acl_plugin.so.
But I haven't done any changes related to that logic for a long time, so if that helps maybe it was something else than Dovecot that changes in your system (gcc/ld/etc.)
participants (3)
-
interfaSys sàrl
-
interfaSys sàrl
-
Timo Sirainen