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

smtpserver segfault



Today I got a core from smtpserver.  I happends that sometimes (?)
reporterr is called with NULL first parameter (SmtpState *SS).
Then syslog() call in line 939 segfaults.  Fix is obvious. Matti?

Eugene

Core was generated by `/usr/zmailer/bin/smtpserver -asve -8X -l
/var/log/zmailer/smtpserver'.
Program terminated with signal 11, Segmentation fault.
procfs (find_procinfo):  Couldn't locate pid 0
#0  0x157a8 in reporterr (SS=0x0, tell=0, 
    msg=0x33e70 "SMTP protocol timed out") at smtpserver.c:939
939             syslog(LOG_ERR,
(gdb) bt
#0  0x157a8 in reporterr (SS=0x0, tell=0, 
    msg=0x33e70 "SMTP protocol timed out") at smtpserver.c:939
#1  0x156f8 in timedout (sig=14) at smtpserver.c:900
#2  0xef5f8c84 in _end ()
#3  0x15830 in s_getc (SS=0xefffb5a0) at smtpserver.c:963
#4  0x1aae4 in mvdata (SS=0xefffb5a0, msg=0x0) at smtpserver.c:3286
#5  0x178d4 in smtp_data (SS=0xefffb5a0, buf=0xefff93c0 "DATA", cp=0x0)
    at smtpserver.c:1802
#6  0x18dcc in smtpserver (SS=0xefffb5a0, insecure=1) at smtpserver.c:2343
#7  0x155f4 in main (argc=8, argv=0xefffb5a0) at smtpserver.c:812
(gdb)