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

Router dump core on invalid messages



Hi!
Some people in my department are also debugging mail so my zmailer
has received some messages with invalid structure (lack of To: line
or double From: lines + empty line between header lines).
I understand that in such case router can complain or just route the
message to postmaster but unfortunately it dumps core :(
If anybody is interested in deeper investigations I attach information
from gdb together with offending files (just taken from the router queue).
I hope this can help to catch one more bug in my favorite MTA :-)
	Jurek
------------------------------------------------------------------------
Jerzy Sobczyk              ____________ ___     Institute of Control and
J.Sobczyk@ia.pw.edu.pl    /  /     |  |/  _\    Computation Engineering, 
                         /  /  /|  |  |  (____         Warsaw University 
tel.+48 2 660 7297      /  /  _>|  |  |\____  \            of Technology
fax.+48 22 253719      /__/__/__|__|__|_____)  \       Nowowiejska 15/19
tlx. 813 307 pw pl    /________________________/   00-665 Warsaw, POLAND 
------------------------------------------------------------------------

------------------ Invalid message 1 -----------------------------------
proton<jurek>(205)# gdb /export/local/mail/bin/router router/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.7, Copyright 1992 Free Software Foundation, Inc...
Core was generated by `/export/local/mail/bin/router -dkn2'.
Program terminated with signal 11, Segmentation fault.
#0  0x226f0 in sequencer (e=0x6e7a8, file=0x87e74 "56825-1") at rfc822.c:1264
1264                    QATTRIBUTES(e->e_from_trusted) =QATTRIBUTES(e->e_from_resolved);
(gdb) where
#0  0x226f0 in sequencer (e=0x6e7a8, file=0x87e74 "56825-1") at rfc822.c:1264
#1  0x1faa0 in run_rfc822 (argc=0, argv=0x87e74) at rfc822.c:115
#2  0x30c68 in execute (c=0xefffe838, caller=0x6dc00, oretcode=0) at execute.c:376
#3  0x3346c in runcommand (c=0xefffe838, pc=0xeffff1f8, retcodep=0xeffff1f4)
    at interpret.c:542
#4  0x34e7c in interpret (caller=0xeffff1f8, cdp=0x963e0, code=0x92ca0 "\r",
    entry=0x92d5d "\016$", eocode=0x92f42 "\016\052UUUU\100", retcodep=0xeffff1f4)
    at interpret.c:1437
#5  0x369c4 in lapply (fname=0x4d380 "process", l=0x6e778) at interpret.c:2235
#6  0x36a70 in apply (argc=2, argv=0xeffff608) at interpret.c:2259
#7  0x1e8c4 in s_apply (argc=2, argv=0xeffff608) at shliaise.c:53
#8  0x194e8 in rd_doit (filename=0xeffff390 "56825-1", dirs=0xeffff390 "56825-1")
    at functions.c:622
#9  0x1979c in rd_stability (dirp=0x87708, dirs=0x87b48 "") at functions.c:717
#10 0x19b58 in run_daemon (argc=0, argv=0xeffff9e0) at functions.c:843
#11 0x171f8 in main (argc=2, argv=0xeffffab4) at router.c:282
(gdb)

external
rcvdfrom ipedsp1.ipe.pw.edu.pl ([148.81.29.102])
with ESMTP
authinfo UNKNOWN@ipedsp1.ipe.pw.edu.pl (port 1099)
from <kwisnie@ipedsp1.ipe.pw.edu.pl>
to <kwisniew@neutron.elka.pw.edu.pl>
Received: by ipedsp1.ipe.pw.edu.pl
        (1.37.109.11/16.2) id AA116859566; Thu, 15 Dec 1994 14:52:46 +0100
Date: Thu, 15 Dec 1994 14:52:46 +0100
From: Krzysztof Wisniewski <kwisnie@ipedsp1.ipe.pw.edu.pl>
Message-Id: <199412151352.AA116859566@ipedsp1.ipe.pw.edu.pl>
Apparently-To: kwisniew@neutron.elka.pw.edu.pl

>From owner-stasz1lo@PLEARN.EDU.PL Thu Dec 15 13:10 MEZ 1994 forwarded by kwisnie
Received: from plearn.edu.pl by ipedsp1.ipe.pw.edu.pl with SMTP
        (1.37.109.11/16.2) id AA109493388; Thu, 15 Dec 1994 13:09:48 +0100
Return-Path: <owner-stasz1lo@PLEARN.EDU.PL>
Message-Id: <199412151209.AA109493388@ipedsp1.ipe.pw.edu.pl>
Received: from PLEARN.EDU.PL by plearn.edu.pl (IBM VM SMTP V2R1)
   with BSMTP id 2835; Thu, 15 Dec 94 13:09:17 CET
Received: from PLEARN.EDU.PL (NJE origin LISTSERV@PLEARN) by PLEARN.EDU.PL (LMail V1.2a/1.8a)
with BSMTP id 7730; Thu, 15 Dec 1994 13:09:17 +0200
Date:         Thu, 15 Dec 1994 13:06:13 CET
Reply-To: "DISCUSSION LIST OF STANISLAW STASZIC HIGH SCHOOL, LUBLIN,
              POLAND STASZ1LO" <STASZ1LO@PLEARN.BITNET>
Sender: "DISCUSSION LIST OF STANISLAW STASZIC HIGH SCHOOL, LUBLIN,
              POLAND STASZ1LO" <STASZ1LO@PLEARN.BITNET>
From: Adam Jamroz <JAME%PLEARN.BITNET@PLEARN.EDU.PL>
Subject:      sylwester
To: Multiple recipients of list STASZ1LO <STASZ1LO@PLEARN.BITNET>

xxxxx xxxxxxx xxxxxxxxxx xxx xxxxxxx x xxxxxx xxxxxxxx xxxxxx xx xxxxxx
xxx xxx xxxxxx xxxxx xxxxxxxx xxx xxxx xx xxxxx xx xxxx xxxxxx
xxxxx xxxxxxxxxxx xxxxxxxxx xx xxx xxxxxx xxxxxx xxxxxxx xx xx xxxxx xxxxx
x xxxx xxxxxx xxxxxxx xxxxx xxxxxx xxxxx x xxxxxxx xxxxx xxxxxx xxxx xxxxxx
x xxxxxxxx xxxxxxxx
                       xxxx
------------------ Invalid message 2 -----------------------------------
proton<jurek>(193)# gdb /export/local/mail/bin/router router/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.7, Copyright 1992 Free Software Foundation, Inc...
Core was generated by `/export/local/mail/bin/router -dkn2'.
Program terminated with signal 11, Segmentation fault.
#0  0x226f0 in sequencer (e=0x6e7a8, file=0x87e6c "56823-2") at rfc822.c:1264
1264                    QATTRIBUTES(e->e_from_trusted) =QATTRIBUTES(e->e_from_resolved);
(gdb) where
#0  0x226f0 in sequencer (e=0x6e7a8, file=0x87e6c "56823-2") at rfc822.c:1264
#1  0x1faa0 in run_rfc822 (argc=0, argv=0x87e6c) at rfc822.c:115
#2  0x30c68 in execute (c=0xefffe838, caller=0x6d800, oretcode=0) at execute.c:376
#3  0x3346c in runcommand (c=0xefffe838, pc=0xeffff1f8, retcodep=0xeffff1f4)
    at interpret.c:542
#4  0x34e7c in interpret (caller=0xeffff1f8, cdp=0x963e0, code=0x92ca0 "\r",
    entry=0x92d5d "\016$", eocode=0x92f42 "\016\052UUUU\100", retcodep=0xeffff1f4)
    at interpret.c:1437
#5  0x369c4 in lapply (fname=0x4d380 "process", l=0x6e778) at interpret.c:2235
#6  0x36a70 in apply (argc=2, argv=0xeffff608) at interpret.c:2259
#7  0x1e8c4 in s_apply (argc=2, argv=0xeffff608) at shliaise.c:53
#8  0x194e8 in rd_doit (filename=0xeffff390 "56823-2", dirs=0xeffff390 "56823-2")
    at functions.c:622
#9  0x1979c in rd_stability (dirp=0x87700, dirs=0x87b40 "") at functions.c:717
#10 0x19b58 in run_daemon (argc=0, argv=0xeffff9e0) at functions.c:843
#11 0x171f8 in main (argc=2, argv=0xeffffab4) at router.c:282
(gdb)

external
rcvdfrom ipedsp1.ipe.pw.edu.pl ([148.81.29.102])
with ESMTP
authinfo UNKNOWN@ipedsp1.ipe.pw.edu.pl (port 1097)
from <kwisnie@ipedsp1.ipe.pw.edu.pl>
to <kwisniew@neutron.elka.pw.edu.pl>
Received: by ipedsp1.ipe.pw.edu.pl
        (1.37.109.11/16.2) id AA116929708; Thu, 15 Dec 1994 14:55:08 +0100
Date: Thu, 15 Dec 1994 14:55:08 +0100
From: Krzysztof Wisniewski <kwisnie@ipedsp1.ipe.pw.edu.pl>
Message-Id: <199412151355.AA116929708@ipedsp1.ipe.pw.edu.pl>
Apparently-To: kwisniew@neutron.elka.pw.edu.pl

proba .
------------------------------------------------------------------------