Xref: utzoo comp.mail.misc:5130 news.software.b:7296 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!samsung!sol.ctr.columbia.edu!ira.uka.de!fauern!forwiss.uni-passau.de!gengenba From: gengenba@forwiss.uni-passau.de (Michael Gengenbach) Newsgroups: comp.mail.misc,news.software.b Subject: Problems with newsgate from Rich $alz and Ultrix 4.1 Message-ID: <1991Mar30.132610.6712@forwiss.uni-passau.de> Date: 30 Mar 91 13:26:10 GMT Sender: usenet@forwiss.uni-passau.de (USENET News System) Organization: University of Passau, Germany Lines: 68 Nntp-Posting-Host: eldron.forwiss.uni-passau.de 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