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

String continuation causes router core dumps.



Hi!
I am using zmailer-2.99.20 under Solaris 2.3
Recently I found router dumping core on addresses with string containing \n.
I am not quite sure if such addresses are correct or not.
But any way the router might complain but not dump cores.
Here is example of such address (note the \ on the end of second line):

Cc: PHILOS-L@liverpool.ac.uk, 
    "Human Evolution\
    Bboard" <humevo@gwuvm.gwu.edu>, 
    Soc Phil Psych <spp@umiacs.UMD.EDU>

And for those who would like to try debugging it there is info from gdb:

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 `/opt/zmailer/bin/router -dkn 4'.
Program terminated with signal 6, Aborted.
#0  0xef6c6550 in shfl ()
(gdb) where
#0  0xef6c6550 in shfl ()
#1  0xef69cb1c in shfl ()
#2  0x4e898 in _hdr_compound (cp=0x79708 "\\", n=0, cstart=34 '"', cend=34 '"', type=String, 
    tp=0x744b0, tlist=0xefffbfb4, tlistp=0xefffc06c) at rfc822scan.c:158
#3  0x4ec24 in scan822 (cpp=0xefffc070, n=17, c1=33 '!', c2=37 '%', allowcomments=0, 
    tlistp=0xefffc06c) at rfc822scan.c:282
#4  0x248e0 in hdr_scanparse (e=0x787bc, h=0x796e4, commentflag=0) at rfc822hdrs.c:90
#5  0x20344 in makeLetter (e=0x787bc, octothorp=0) at rfc822.c:304
#6  0x1fb54 in run_rfc822 (argc=2, argv=0x91acc) at rfc822.c:118
#7  0x316a8 in execute (c=0xefffea88, caller=0x0, oretcode=0, name=0x0) at execute.c:384
#8  0x3429c in runcommand (c=0xefffea88, pc=0xeffff448, retcodep=0xeffff444)
    at interpret.c:690
#9  0x35ec8 in interpret (caller=0xeffff448, cdp=0xa6b98, code=0xa7d08 "\r", 
    entry=0xa7dc5 "\016$", eocode=0xa7faa "\016ŞUUUU\200", retcodep=0xeffff444)
    at interpret.c:1643
#10 0x37e58 in lapply (fname=0x56a18 "process", l=0x7878c) at interpret.c:2602
#11 0x37f04 in apply (argc=2, argv=0xeffff7e0) at interpret.c:2626
#12 0x1e8dc in s_apply (argc=2, argv=0xeffff7e0) at shliaise.c:53
#13 0x19254 in rd_doit (filename=0x91754 "784-2", dirs=0xa7c00 "") at functions.c:627
#14 0x19540 in rd_stability (dirp=0xa8e58, dirs=0xa7c00 "") at functions.c:724
#15 0x1999c in run_daemon (argc=0, argv=0xeffffe60) at functions.c:891
#16 0x16e18 in main (argc=3, argv=0xefffff34) at router.c:294
(gdb) 

	Jerzy

------------------------------------------------------------------------
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 
------------------------------------------------------------------------