[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: smtp fault with today's source
On Tue, Jul 18, 2000 at 03:43:58PM +0400, Eugene Crosser wrote:
> I am getting this with today's CVS source; only on SPARC/Solaris 7
> and possibly only when it tries to deliver to another Zmailer:
>
> Core was generated by `/usr/local/zmailer/bin/ta/smtp -s8H -l
> /var/log/zmailer/smtp'.
> Program terminated with signal 4, Illegal Instruction.
Sounds (feels) like it aborted somewhere..
> #0 0xc68ac in ?? ()
> (gdb) bt
> #0 0xc68ac in ?? ()
> #1 0xff31731c in ?? ()
> #2 0xff2ce6dc in ?? ()
> #3 0x2c5c8 in ssfgets (bufp=0xcf120, bufsizp=0xa6c00, infd=0, SS=0xffbe9338)
> at smtp.c:168
> #4 0x2d2dc in main (argc=4, argv=0xe2ad8) at smtp.c:637
The location isn't very clear; it propably is optimized
binary, but within its enclosing while(){..} loop.
If so, possibly that is realloc() which blows up.
It could be that ssfgets() function has a off-by-one
(or some such) bug, and it stomps beyond the end of
the allocated memory block.
However I don't see this at SPARC/Solaris 2.6 ...
> Seems that the same source works on SPARC/Solaris 2.5.1.
> Any ideas about that?
What are the used compilation options ?
> Eugene
--
/Matti Aarnio <mea@nic.funet.fi>