I just did a test with the 32-bit milter-greylist
and here's the gdb output. The program died before I had a chance to run bt
though... I tried several times but same.
Same results whether I start inside gdb or
attaching to exisiting process...
;
bash-2.03# gdb ./milter-greylist 4477
GNU gdb 6.0
Copyright 2003 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 "sparc-sun-solaris2.8"...
Attaching to program `/usr/local/bin/milter-greylist', process 4477
PR_SYSEXIT : Exit from a traced system call Exit from SYS_lwp_create
Reading symbols from /usr/lib/libpthread.so.1...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libresolv.so.2...done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libmilter.so...done.
Loaded symbols for /usr/lib/libmilter.so
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
Reading symbols from /usr/lib/libthread.so.1...done.
Loaded symbols for /usr/lib/libthread.so.1
Reading symbols from /usr/lib/nss_files.so.1...done.
Loaded symbols for /usr/lib/nss_files.so.1
sol-thread active.
[New LWP 22 ]
[New LWP 2 ]
[New LWP 23 ; ]
GNU gdb 6.0
Copyright 2003 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 "sparc-sun-solaris2.8"...
Attaching to program `/usr/local/bin/milter-greylist', process 4477
PR_SYSEXIT : Exit from a traced system call Exit from SYS_lwp_create
Reading symbols from /usr/lib/libpthread.so.1...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /usr/lib/libsocket.so.1...done.
Loaded symbols for /usr/lib/libsocket.so.1
Reading symbols from /usr/lib/libresolv.so.2...done.
Loaded symbols for /usr/lib/libresolv.so.2
Reading symbols from /usr/lib/libnsl.so.1...done.
Loaded symbols for /usr/lib/libnsl.so.1
Reading symbols from /usr/lib/libmilter.so...done.
Loaded symbols for /usr/lib/libmilter.so
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libmp.so.2...done.
Loaded symbols for /usr/lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
Reading symbols from /usr/lib/libthread.so.1...done.
Loaded symbols for /usr/lib/libthread.so.1
Reading symbols from /usr/lib/nss_files.so.1...done.
Loaded symbols for /usr/lib/nss_files.so.1
sol-thread active.
[New LWP 22 ]
[New LWP 2 ]
[New LWP 23 ; ]
[2]+
Stopped
gdb ./milter-greylist 4477
bash-2.03#
bash-2.03#
----- Original Message -----From: Nerijus BaliunasSent: Friday, February 23, 2007 4:03 PMSubject: Re: [milter-greylist] dbdump commandOn Fri, 23 Feb 2007 15:56:02 -0800 "An.H.Nguyen" <AnNguyen251@hotmail.com> wrote:
> I downloaded 3.1.6 and now it dumps correctly when it is terminated on Solaris 8. But it still crashes every hour.
> I use mimedefang and spamassassin. What's the correct way to start milter-greylist in gdb while starting mimedefang/sendmail?
Hmm, I told you already in a private mail, didn't I?
cd /where milter-greylist is
gdb ./milter-greylist
r -P /var/milter-greylist/milter-greylist.pid -p /var/milter-greylist/milter-greylist.sock -D (it's an example,
adjust for your options)
wait until it crashes
bt
post output to the list.
Regards,
Nerijus