Hi When activating antispam plugin in imap protocol, when sending an email, Evolution/Thunderbirdkeeps infinitely "Sending authentication information", and Dovecor logs shows "dovecot: May 28 10:14:35 Error: child 6910 (imap) killed with signal 11"; lots of empty folders in /tmp are created with names like "antispam-mail-ZvyWeZ". I am using Dovecot1.1 rc15 compiled from Debian source repositories (http://xi.rename-it.nl/debian/) and last version of antispam plugin, obtained with git. Any idea or help to debug? Thanks.
On 5/28/2008, Juan Asensio S?nchez (okelet at gmail.com) wrote:> I am using Dovecot1.1 rc15 compiled from Debian source repositories > (http://xi.rename-it.nl/debian/) and last version of antispam plugin, > obtained with git. Any idea or help to debug?First... upgrade... this is a very old version. -- Best regards, Charles
> I am using Dovecot1.1 rc15 compiled from Debian source repositories > (http://xi.rename-it.nl/debian/) and last version of antispam plugin, > obtained with git. Any idea or help to debug?Well, compile with -g3 and attach gdb. It's known to not work, and I never said it work would, in fact, the defconfig file you edited clearly states: # Dovecot version to build against DOVECOT_VERSION=1.0 #DOVECOT_VERSION=1.1 # CURRENTLY BROKEN No further comments. johannes -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 828 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20080528/1abdcb16/attachment-0002.bin>
Juan Asensio S?nchez wrote:> I am using Dovecot1.1 rc15 compiled from Debian source repositories > (http://xi.rename-it.nl/debian/) and last version of antispam plugin, > obtained with git. Any idea or help to debug?I believe that antispam has not been announced working with 1.1 yet. Anders.
I compile Dovecot from the source packages of the Debian repository. I don't know if it has been correctly compiled with that flag, i have executed: # CFLAGS=-g3 dpkg-buildpackage -rfakeroot -b When running gdb again, i get diffrenet output but i think that this information is not relevant: (gdb) cont Continuing. Program received signal SIGSEGV, Segmentation fault. 0x080b294d in mail_get_physical_size () (gdb) bt full #0 0x080b294d in mail_get_physical_size () No symbol table info available. #1 0xb7df0200 in quota_try_alloc () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #2 0xb7df4b01 in quota_plugin_deinit () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #3 0xb7df4edc in quota_plugin_deinit () from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so No symbol table info available. #4 0xb7de8036 in antispam_save_finish () from /usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so No symbol table info available. #5 0x080b5aa6 in mailbox_save_finish () No symbol table info available. #6 0x0805ad8f in _start () No symbol table info available. (gdb) cont Continuing. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb) 2008/6/4 Juan Asensio S?nchez <okelet at gmail.com>:> I compile Dovecot from the source packages of the Debian repository. I > don't know if it has been correctly compiled with that flag, i have > executed: > > # CFLAGS=-g3 dpkg-buildpackage -rfakeroot -b > > When running gdb again, i get diffrenet output but i think that this > information is not relevant: > > (gdb) cont > Continuing. > > Program received signal SIGSEGV, Segmentation fault. > 0x080b294d in mail_get_physical_size () > (gdb) bt full > #0 0x080b294d in mail_get_physical_size () > No symbol table info available. > #1 0xb7df0200 in quota_try_alloc () from > /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so > No symbol table info available. > #2 0xb7df4b01 in quota_plugin_deinit () from > /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so > No symbol table info available. > #3 0xb7df4edc in quota_plugin_deinit () from > /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so > No symbol table info available. > #4 0xb7de8036 in antispam_save_finish () from > /usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so > No symbol table info available. > #5 0x080b5aa6 in mailbox_save_finish () > No symbol table info available. > #6 0x0805ad8f in _start () > No symbol table info available. > (gdb) cont > Continuing. > > Program terminated with signal SIGSEGV, Segmentation fault. > The program no longer exists. > (gdb) > > 2008/6/3 Johannes Berg <johannes at sipsolutions.net>: >> On Tue, 2008-06-03 at 22:16 +0300, Timo Sirainen wrote: >>> On Tue, 2008-06-03 at 21:11 +0200, Johannes Berg wrote: >>> > On Tue, 2008-06-03 at 21:06 +0200, Juan Asensio S?nchez wrote: >>> > > Wow. Thanks for your quick answer. I don't know much about compiling >>> > > or debugging. Could anyone say me how to do that or give some tips? >>> > >>> > well, add -g3 somewhere to the CFLAGS when building dovecot. >>> >>> -g is added by default. Does -g3 add anything useful compared to it? >> >> I think it only adds debug information for macros. >> >> johannes >> >
Well
Now i think i did it. This is the debug information:
====================================================================
pdc-server:~# ps aux | grep -i dove
root 9044 0.0 0.2 1940 616 ? Ss 20:13 0:00
/usr/sbin/dovecot
root 9045 0.0 1.1 9680 2948 ? S 20:13 0:00 dovecot-auth
dovecot 9046 0.0 0.5 3312 1512 ? S 20:13 0:00 imap-login
dovecot 9047 0.0 0.5 3312 1512 ? S 20:13 0:00 imap-login
dovecot 9070 0.0 0.5 3312 1512 ? S 20:15 0:00 imap-login
mailuser 9071 0.2 0.5 2572 1444 ? S 20:15 0:00
/usr/lib/dovecot/imap
root 9075 0.0 0.2 2876 752 pts/0 R+ 20:15 0:00 grep -i dove
pdc-server:~# gdb -p 9071
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "i486-linux-gnu".
Attaching to process 9071
Reading symbols from /usr/lib/dovecot/imap...done.
Using host libthread_db library
"/lib/tls/i686/cmov/libthread_db.so.1".
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so
Reading symbols from
/usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so
Reading symbols from
/usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so
Reading symbols from /usr/lib/dovecot/modules/imap/autocreate_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/modules/imap/autocreate_plugin.so
Failed to read a valid object file image from memory.
0xb7ef3410 in ?? ()
(gdb) cont
Continuing.
Program received signal SIGSEGV, Segmentation fault.
mail_get_physical_size (mail=0x8129ba8, size_r=0x0) at mail.c:100
100 return p->v.get_physical_size(mail, size_r);
(gdb) bt full
#0 mail_get_physical_size (mail=0x8129ba8, size_r=0x0) at mail.c:100
No locals.
#1 0xb7db25c5 in quota_check (t=0x8129ba8, mail=0x0) at quota-storage.c:148
qt = (struct quota_transaction_context *) 0x0
ret = <value optimized out>
too_large = 8
#2 0xb7da602d in antispam_save_finish (ctx=0x81417d8) at
antispam-storage-1.1.c:178
asbox = (struct antispam_mailbox *) 0x81262e0
ast = (struct antispam_internal_context *) 0x8129be0
dest_mail = (struct mail *) 0x812c578
ret = 135093999
#3 0x0805a1c8 in cmd_append_continue_message (cmd=0x810d4e0) at
cmd-append.c:405
client = (struct client *) 0x810bd48
ctx = (struct cmd_append_context *) 0x810d528
size = 135314760
ret = <value optimized out>
#4 0x0805a59a in cmd_append_continue_parsing (cmd=0x810d4e0) at
cmd-append.c:353
uid2 = <value optimized out>
msg = <value optimized out>
sync_flags = <value optimized out>
imap_flags = <value optimized out>
uid_validity = <value optimized out>
uid1 = <value optimized out>
client = (struct client *) 0x810bd48
ctx = (struct cmd_append_context *) 0x810d528
args = (const struct imap_arg *) 0x8129cb0
flags_list = (const struct imap_arg *) 0x8129d40
flags = MAIL_SEEN
keywords_list = (const char * const *) 0x0
keywords = (struct mail_keywords *) 0x0
internal_date_str = 0x0
internal_date = -1
ret = 0
timezone_offset = 0
nonsync = false
__PRETTY_FUNCTION__ = "cmd_append_continue_parsing"
#5 0x0805a7b5 in cmd_append (cmd=0x810d4e0) at cmd-append.c:499
storage = (struct mail_storage *) 0x810b660
box = <value optimized out>
client = (struct client *) 0x810bd48
ctx = (struct cmd_append_context *) 0x810d528
mailbox = 0x8110588 "Sent"
#6 0x0805fa6c in client_command_input (cmd=0x810d4e0) at client.c:580
---Type <return> to continue, or q <return> to quit---
client = (struct client *) 0x810bd48
command = <value optimized out>
__PRETTY_FUNCTION__ = "client_command_input"
#7 0x0805fb15 in client_command_input (cmd=0x810d4e0) at client.c:629
client = (struct client *) 0x810bd48
command = (struct command *) 0x8
__PRETTY_FUNCTION__ = "client_command_input"
#8 0x08060305 in client_handle_input (client=0x810bd48) at client.c:670
_data_stack_cur_id = 3
ret = <value optimized out>
remove_io = <value optimized out>
handled_commands = false
#9 0x0806050e in client_input (client=0x810bd48) at client.c:725
cmd = <value optimized out>
output = (struct ostream *) 0x810becc
bytes = 34
__PRETTY_FUNCTION__ = "client_input"
#10 0x080d9100 in io_loop_handler_run (ioloop=0x8108ab8) at ioloop-epoll.c:201
ctx = <value optimized out>
event = (const struct epoll_event *) 0x8108bf0
list = (struct io_list *) 0x810d118
io = (struct io_file *) 0x810bf28
tv = {tv_sec = 4, tv_usec = 999826}
t_id = 2
msecs = <value optimized out>
ret = 1
i = 0
j = 0
call = <value optimized out>
#11 0x080d8098 in io_loop_run (ioloop=0x8108ab8) at ioloop.c:308
No locals.
#12 0x080680db in main (argc=Cannot access memory at address 0x8
) at main.c:293
home = 0x0
(gdb)
====================================================================
I hope this could help. Attached is also my configuration file.
Regards.
2008/6/4 Johannes Berg <johannes at
sipsolutions.net>:>
>> # CFLAGS=-g3 dpkg-buildpackage -rfakeroot -b
>
> try
>
> DEB_BUILD_OPTIONS=nostrip dpkg-buildpackage ...
>
> johannes
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot.conf
Type: application/octet-stream
Size: 6592 bytes
Desc: not available
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20080604/32705ab2/attachment-0002.obj>
Compiling this way:
# export CFLAGS="-g3 -O2"
# DEB_BUILD_OPTIONS=nostrip dpkg-buildpackage -rfakeroot -b
I get this:
===============================================================
pdc-server:~# ps aux | grep dove
root 16954 0.0 0.2 1940 616 ? Ss 21:15 0:00
/usr/sbin/dovecot
root 16955 0.0 1.1 9680 2948 ? S 21:15 0:00 dovecot-auth
dovecot 16961 0.0 0.5 3308 1508 ? S 21:15 0:00 imap-login
dovecot 16962 0.0 0.5 3308 1508 ? S 21:15 0:00 imap-login
dovecot 16967 0.0 0.5 3312 1512 ? S 21:16 0:00 imap-login
mailuser 16968 0.5 0.5 2600 1348 ? S 21:16 0:00
/usr/lib/dovecot/imap
root 16971 0.0 0.2 2880 752 pts/0 R+ 21:16 0:00 grep dove
pdc-server:~# gdb -p 16968
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "i486-linux-gnu".
Attaching to process 16968
Reading symbols from /usr/lib/dovecot/imap...done.
Using host libthread_db library
"/lib/tls/i686/cmov/libthread_db.so.1".
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/modules/imap/lib10_quota_plugin.so
Reading symbols from
/usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/modules/imap/lib11_imap_quota_plugin.so
Reading symbols from
/usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/modules/imap/lib90_antispam_plugin.so
Reading symbols from /usr/lib/dovecot/modules/imap/autocreate_plugin.so...done.
Loaded symbols for /usr/lib/dovecot/modules/imap/autocreate_plugin.so
Failed to read a valid object file image from memory.
0xb7f98410 in ?? ()
(gdb) cont
Continuing.
Program received signal SIGSEGV, Segmentation fault.
mail_get_physical_size (mail=0x8135db8, size_r=0x0) at mail.c:100
100 return p->v.get_physical_size(mail, size_r);
(gdb) bt full
#0 mail_get_physical_size (mail=0x8135db8, size_r=0x0) at mail.c:100
No locals.
#1 0xb7e575c5 in quota_check (t=0x8135db8, mail=0x0) at quota-storage.c:148
qt = (struct quota_transaction_context *) 0x0
ret = <value optimized out>
too_large = 8
#2 0xb7e4b058 in antispam_save_finish (ctx=0x813cb98) at
antispam-storage-1.1.c:178
asbox = (struct antispam_mailbox *) 0x81252f8
ast = (struct antispam_internal_context *) 0x8135df0
dest_mail = (struct mail *) 0xbffead08
ret = 135093999
#3 0x0805a1c8 in cmd_append_continue_message (cmd=0x810d4e0) at
cmd-append.c:405
client = (struct client *) 0x810bd48
ctx = (struct cmd_append_context *) 0x810d528
size = 135314760
ret = <value optimized out>
#4 0x0805a59a in cmd_append_continue_parsing (cmd=0x810d4e0) at
cmd-append.c:353
uid2 = <value optimized out>
msg = <value optimized out>
sync_flags = <value optimized out>
imap_flags = <value optimized out>
uid_validity = <value optimized out>
uid1 = <value optimized out>
client = (struct client *) 0x810bd48
ctx = (struct cmd_append_context *) 0x810d528
args = (const struct imap_arg *) 0x8135ec0
flags_list = (const struct imap_arg *) 0x8135f50
flags = MAIL_SEEN
keywords_list = (const char * const *) 0x0
keywords = (struct mail_keywords *) 0x0
internal_date_str = 0x0
internal_date = -1
ret = 0
timezone_offset = 0
nonsync = false
__PRETTY_FUNCTION__ = "cmd_append_continue_parsing"
#5 0x0805a7b5 in cmd_append (cmd=0x810d4e0) at cmd-append.c:499
storage = (struct mail_storage *) 0x810b660
box = <value optimized out>
client = (struct client *) 0x810bd48
---Type <return> to continue, or q <return> to quit---
ctx = (struct cmd_append_context *) 0x810d528
mailbox = 0x8110588 "Sent"
#6 0x0805fa6c in client_command_input (cmd=0x810d4e0) at client.c:580
client = (struct client *) 0x810bd48
command = <value optimized out>
__PRETTY_FUNCTION__ = "client_command_input"
#7 0x0805fb15 in client_command_input (cmd=0x810d4e0) at client.c:629
client = (struct client *) 0x810bd48
command = (struct command *) 0x8
__PRETTY_FUNCTION__ = "client_command_input"
#8 0x08060305 in client_handle_input (client=0x810bd48) at client.c:670
_data_stack_cur_id = 3
ret = <value optimized out>
remove_io = <value optimized out>
handled_commands = false
#9 0x0806050e in client_input (client=0x810bd48) at client.c:725
cmd = <value optimized out>
output = (struct ostream *) 0x810becc
bytes = 34
__PRETTY_FUNCTION__ = "client_input"
#10 0x080d9100 in io_loop_handler_run (ioloop=0x8108ab8) at ioloop-epoll.c:201
ctx = <value optimized out>
event = (const struct epoll_event *) 0x8108bf0
list = (struct io_list *) 0x810d118
io = (struct io_file *) 0x810bf28
tv = {tv_sec = 4, tv_usec = 999721}
t_id = 2
msecs = <value optimized out>
ret = 1
i = 0
j = 0
call = <value optimized out>
#11 0x080d8098 in io_loop_run (ioloop=0x8108ab8) at ioloop.c:308
No locals.
#12 0x080680db in main (argc=Cannot access memory at address 0x8
) at main.c:293
home = 0x0
(gdb)
===============================================================
Nothing new. The error persists. Any additional help is welcome.
Regards.