On Tue, 23 Jan 2007 23:40:52 +0100 manu@... wrote: > > I am using 3.1.4, but I got crashes earlier too. Decided to troubleshoot > > it. How can I run milter-greylist from gdb? I tried gdb ./milter-greylist, > > r -P /var/milter-greylist/milter-greylist.pid -p > > /var/milter-greylist/milter-greylist.sock -D, but it stops after the first > > email (when it wants to print "(unknown id): addr > > superafu.de[81.169.170.70] from <xxx@...> to <xxx@...> delayed for > > 00:02:00 (ACL 103)" I assume). > > How does it stops? Program received signal SIGTTOU, Stopped (tty output). But I found out that it happens only when I run it from mc shell, it works when I run it from pure bash. > > So I just ran ./milter-greylist -P > > /var/milter-greylist/milter-greylist.pid -p > > /var/milter-greylist/milter-greylist.sock -D After about half a day it > > crashed: *** glibc detected *** double free or corruption (!prev): > > 0x0a5441a8 *** Aborted > > > > How can I troubleshoot it? > > Do you have a core dump? No, even after ulimit -c unlimited it didn't produce core file. But as now I was able to run milter-greylist under gdb: [Thread -1239950416 (LWP 7915) exited] [New Thread -1239950416 (LWP 7920)] (unknown id): addr 69.90.101.137 from <journal@...> rcpt <gintaras@...>: autowhitelisted for 72:00:00 *** glibc detected *** double free or corruption (!prev): 0x099f3430 *** Program received signal SIGABRT, Aborted. [Switching to Thread -1239950416 (LWP 7920)] 0x00b8a7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 (gdb) bt #0 0x00b8a7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2 #1 0x00bca7a5 in raise () from /lib/tls/libc.so.6 #2 0x00bcc209 in abort () from /lib/tls/libc.so.6 #3 0x00bfe71a in __libc_message () from /lib/tls/libc.so.6 #4 0x00c04fbf in _int_free () from /lib/tls/libc.so.6 #5 0x00c0533a in free () from /lib/tls/libc.so.6 #6 0x0804a829 in mlfi_close (ctx=0x99f3430) at milter-greylist.c:1036 #7 0x0805e788 in mi_engine () #8 0x0805ccd6 in mi_handle_session () #9 0x0805c394 in mi_thread_handle_wrapper () #10 0x00d00371 in start_thread () from /lib/tls/libpthread.so.0 #11 0x00c6affe in clone () from /lib/tls/libc.so.6 Anything else I should check? I didn't exit from gdb yet. Regards, Nerijus
Message
Re: [milter-greylist] double free or corruption
2007-01-26 by Nerijus Baliunas
Attachments
- No local attachments were found for this message.