[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: smtp dump core after stopping scheduler



Hello all,

Another incident the smtp transport agent dump core after "scheduler" stop.
Seem it called abort() somewhere in smtp.c, is it normal or intented to do 
that?

# gdb /opt/zmailer/bin/ta/smtp core
GDB is free software and you are welcome to 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.
GDB 4.16 (sparc-sun-solaris2.5), 
Copyright 1996 Free Software Foundation, Inc...
Core was generated by `/opt/zmailer/bin/ta/smtp -s -l /var/log/mail/smtp'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libintl.so.1...done.
Reading symbols from /usr/lib/libmp.so.1...done.
Reading symbols from /usr/lib/libw.so.1...done.
Reading symbols from /usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1...done.
Reading symbols from /usr/lib/nss_files.so.1...done.
#0  0xef5f4594 in _kill ()
(gdb) bt
#0  0xef5f4594 in _kill ()
#1  0xef5ba62c in abort ()
#2  0x1ab5c in smtpwrite (SS=0xefffd0a0, saverpt=1, 
    strbuf=0xefffc548 "MAIL From:<csclngo@ug.cs.ust.hk>", pipelining=0,
    syncrp=0x0) at smtp.c:3450
#3  0x1574c in deliver (SS=0xefffd0a0, dp=0x42f80, startrp=0x502c8, endrp=0x0)
    at smtp.c:1166
#4  0x15334 in process (SS=0xefffd0a0, dp=0x42f80, smtpstatus=0, 
    host=0x50900 "relay.net", noMX=0) at smtp.c:1002
#5  0x15044 in main (argc=-268437048, argv=0xeffff9d6) at smtp.c:938
(gdb) #

Rgds,
Ken Lai

On Sat, Dec 20, 1997 at 12:08:24PM +0800, Lai Yiu Fai wrote:
> Hello,
> 
> The problem found in 2.99.49p9 release running on Solaris 2.5.1.  The smtp
> transporter dump core after "router kill scheduler".   It is not repeatable
> but happened intermittently.
> 
> It seems NULL pointer arguments are passing to the vcsetup() in makeconn().
> 
> ====
> # gdb /opt/zmailer/bin/ta/smtp core
> GDB is free software and you are welcome to 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.
> GDB 4.16 (sparc-sun-solaris2.5), 
> Copyright 1996 Free Software Foundation, Inc...
> Core was generated by `/opt/zmailer/bin/ta/smtp -s -l /var/log/mail/smtp'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /usr/lib/libsocket.so.1...done.
> Reading symbols from /usr/lib/libnsl.so.1...done.
> Reading symbols from /usr/lib/libc.so.1...done.
> Reading symbols from /usr/lib/libdl.so.1...done.
> Reading symbols from /usr/lib/libintl.so.1...done.
> Reading symbols from /usr/lib/libmp.so.1...done.
> Reading symbols from /usr/lib/libw.so.1...done.
> Reading symbols from /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1...done.
> Reading symbols from /usr/lib/nss_files.so.1...done.
> Reading symbols from /usr/lib/nss_compat.so.1...done.
> #0  0xef66056c in memcpy ()
> (gdb) bt
> #0  0xef66056c in memcpy ()
> #1  0xef5e0f9c in _doprnt ()
> #2  0xef5eb274 in sprintf ()
> #3  0x18d40 in vcsetup (SS=0x0, sa=0x0, fdp=0x0, 
>     hostname=0x3a310000 <Address 0x3a310000 out of bounds>) at smtp.c:2770
> #4  0x18588 in makeconn (SS=0xefffd0a0, ai=0x50590, ismx=-1) at smtp.c:2500
> #5  0x18108 in smtpconn (SS=0xefffd0a0, host=0x46668 "mach.psych.indiana.edu", 
>     noMX=0) at smtp.c:2315
> #6  0x17820 in smtpopen (SS=0xefffd0a0, host=0x46668 "mach.psych.indiana.edu", 
>     noMX=0) at smtp.c:2016
> #7  0x14ecc in main (argc=-268437048, argv=0xeffff9d7) at smtp.c:914
> 
> 
> =======================================================================
> Lai Yiu Fai                       |  Tel.:       (852) 2358-6202
> Centre of Computing Services      |  Fax.:       (852) 2358-0967
>  & Telecommunications             |  E-mail:     ccyflai@ust.hk
>                                   |
> The Hong Kong University of       |  Clear Water Bay,
> Science & Technology              |  Kowloon, Hong Kong.