[comp.mail.misc] Problems with newsgate from Rich $alz and Ultrix 4.1

gengenba@forwiss.uni-passau.de (Michael Gengenbach) (03/30/91)

Hi,

I failed in using the newsgate package from Rich $alz for setting up an
mail-to-news-gateway at our site.

I used cc on a DECsystem 5810 running ULTRIX V4.1 (Rev. 200). The newsgate
software was Revision 1.2 Patchlevel 10, as posted in USENET. The getdate.o
comes from Bnews 2.11.17 (but we are running C News normally).

Everything compiles fine, but when I use mail2news, I get a segmentation
fault. That's what dbx says:

(dbx) file hdr.c
(dbx) stop at 406
[2] stop at "hdr.c":406
(dbx) run -. -n lists.tester < test
[2] stopped at   [FixFrom:406 ,0x402624]        if (host = gethostbyname(p))
(dbx) print p
0x7fff8a41 = "forwiss.uni-passau.DE"
(dbx) print *hp
struct {
    approved = ""
    ctlmsg = ""
    subdate = "Thu, 28 Mar 91 22:26:25 MET"
    distribution = ""
    expdate = ""
    followto = ""
    from = "gengenba@forwiss.uni-passau.de (Michael Gengenbach)"
    followid = ""
    keywords = ""
    ident = "<9103282126.AA06653@elendil.forwiss.uni-passau.de.forwiss.uni-passa
u.de>"
    nbuf = "lists.tester"
    organization = ""
    title = "Test Test Test"
    replyto = ""
    summary = ""
    path = ""
    sender = ""
}
(dbx) step

Segmentation fault [_findenv:82 +0x8,0x4113c4]
         Source not available
(dbx) where
>  0 _findenv(0x7fff790c, 0x3, 0x20, 0x10003394, 0x410434) ["../getenv.c":82, 0x
4113c4]
   1 getenv.getenv(0x10004c68, 0x0, 0x0, 0x0, 0x7fff8a41) ["../getenv.c":59, 0x4
1134c]
   2 res_init(0x0, 0x0, 0x0, 0x0, 0x0) [0x410430]
   3 gethostbyname_bind(0x0, 0x0, 0x0, 0x0, 0x0) [0x408f7c]
   4 gethostbyname(0x7fff8638, 0x7fffa0fb, 0x0, 0x0, 0x0) [0x408a44]
   5 FixFrom(hp = (nil)) ["hdr.c":406, 0x402628]
   6 HackHeader(hp = 0x7fff92c8, SubjectRequired = 1) ["hdr.c":493, 0x40280c]
   7 main(ac = 4, av = 0x7fffbb04) ["mail2news.c":507, 0x403d7c]
(dbx)

I tried to disable that feature by undefining DO_ADDRESS_CLEANUP, but then
I get the next segmentation fault in cgtdate (again in _findenv). I have
no such problems on a Sun SPARC, but our news-server happens to be that
DECsystem.

Any ideas what might be wrong? Is it my fault or is Ultrix broken or maybe
the newsgate sources?

Michael
-- 
Michael Gengenbach, FORWISS Passau, gengenbach@forwiss.uni-passau.de

rsalz@bbn.com (Rich Salz) (04/03/91)

Ultrix doesn't like "environ = (char **)0;".  This and a few other things are
fixed in the first patch, going out April 3.
-- 
Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.