Hi Timo, when logging out like a001 logout the imap child dies from signal 11. The back trace looks like this: Program received signal SIGSEGV, Segmentation fault. 0xb7ed4991 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0xb7ed4991 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6 #1 0x0806ab6c in command_unregister (name=0x815b9ab "LOGOUT") at commands.c:83 #2 0x0806ac56 in command_unregister_array (cmdarr=0x815ba8c, count=25) at commands.c:101 #3 0x0806ae36 in commands_deinit () at commands.c:146 #4 0x08073a8f in main_deinit () at main.c:273 #5 0x08073b7b in main (argc=1, argv=0xbfacb884, envp=0xbfacb88c) at main.c:310 (gdb) up #1 0x0806ab6c in command_unregister (name=0x815b9ab "LOGOUT") at commands.c:83 83 if (strcasecmp(cmd[i].name, name) == 0) { (gdb) p cmd[i] $1 = {name = 0xb7e65ce7 <Address 0xb7e65ce7 out of bounds>, func = 0xb7e6432d, flags = 0} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ For some reasons this does _not_ happen when I simply close the connection (without explicitly logging out)... cheers sascha -- Sascha Wilde OpenPGP key: 4BB86568 http://www.intevation.de/~wilde/ http://www.intevation.de/ Intevation GmbH, Neuer Graben 17, 49074 Osnabr?ck; AG Osnabr?ck, HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20081015/e4391df0/attachment-0002.bin>
On Oct 15, 2008, at 5:57 PM, Sascha Wilde wrote:> #1 0x0806ab6c in command_unregister (name=0x815b9ab "LOGOUT") at > commands.c:83 > 83 if (strcasecmp(cmd[i].name, name) == 0) { > (gdb) p cmd[i] > $1 = {name = 0xb7e65ce7 <Address 0xb7e65ce7 out of bounds>, func = > 0xb7e6432d, flags = 0} > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > For some reasons this does _not_ happen when I simply close the > connection (without explicitly logging out)...Your plugin isn't probably unregistering some command it registered and the plugin is unloaded before commands_deinit() is called. valgrind might also show something. -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081015/4e5588d8/attachment-0002.bin>
Sascha Wilde <wilde at intevation.de> writes:> when logging out like > > a001 logout > > the imap child dies from signal 11. The back trace looks like this: > > Program received signal SIGSEGV, Segmentation fault. > 0xb7ed4991 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6 > (gdb) bt > #0 0xb7ed4991 in strcasecmp () from /lib/tls/i686/cmov/libc.so.6 > #1 0x0806ab6c in command_unregister (name=0x815b9ab "LOGOUT") at commands.c:83Could this be the same issue as the one in http://dovecot.org/list/dovecot/2008-October/034211.html ? If so, it appears to be a bug in the ACL plugin. I recall having a similar problem with the Annotation plugin. IIRC it had something to do with not unregistering commands properly when the plugin was unloaded. In that case the array of known commands retains dangling pointers to the names of the commands that point to the unloaded shared object file. Bernhard -- Bernhard Herzog | ++49-541-335 08 30 | http://www.intevation.de/ Intevation GmbH, Neuer Graben 17, 49074 Osnabr?ck | AG Osnabr?ck, HR B 18998 Gesch?ftsf?hrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part. URL: <http://dovecot.org/pipermail/dovecot/attachments/20081015/8a92e05d/attachment-0002.bin>