🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #20851

trn + Solaris 2.5 + long Xref lines.

#20851
From: Vance Strickland
Date: Tue, 23 Apr 1996 00:00
67 lines
5544 bytes
Hi there,
   I'm hoping that someone who's more familiar with trn internals can help
me out.  It appears that trn will get a "Caught a SIGSEGV--.newsrc restored"
upon reading articles that have LOOONNNG Xref: header lines.

In this case it's trn version 3.6 running under Solaris 2.5 talking to a news
server running INN 1.4sec2.  The same version works fine under Digital Unix
and won't croak.  A sample article upon which it croaks is included below.

I *think* the problem is that trn is dereferencing a null pointer, which I
think causes a SEGV under Solaris, whereas under Digital Unix (OSF/1) it would
just return a '\0'.

Compiling with debugging and running under the debugger it appears that it 
handles the header lines fine and then when it moves from printing the headers
to printing the article body, that's when something is going awry.

The error under the debugger is (and this was using the article below)....

signal SEGV (no mapping at the fault address) in putsubstchar at line 105 in
file "charsubst.c"
=>[1] putsubstchar(c = 72, limit = 84, outputok = 1), line 105 in "charsubst.c"
  [2] do_article(), line 438 in "art.c"
  [3] do_newsgroup(start_command = (nil)), line 337 in "ng.c"
  [4] main(argc = 2, argv = 0xdffffb8c), line 577 in "trn.c"

Any help/insights would be appreciated.  I've not been able to fully get the
big picture in my head that shows where it's going awry.  My C is definitely
not up to the job here.

Thanks for taking the time to read this.  Hopefully I'm not the only one 
having this problem. :-)
   BCNU,
   Vance Strickland

University of Texas at Austin   Internet: strick@uts.cc.utexas.edu
Computation Center              UUCP: ...!cs.utexas.edu!geraldo!strick
UNIX Services	 		THEnet: UTXVMS::STRICK

--- Begin sample article ---
Path: geraldo.cc.utexas.edu!arlut.utexas.edu!news.io.com!insync!uunet!in1.uu.net!EU.net!sun4nl!Utrecht.NL.net!easy1.worldaccess.nl!usenet
From: Its_Me@worldaccess.nl
Newsgroups: alt.music,alt.music.+live+,alt.music.311,alt.music.4-track,alt.music.4ad,alt.music.a-cappella,alt.music.abba,alt.music.alanis,alt.music.aliceinchains,alt.music.alternative,alt.music.alternative.female,alt.music.amazing-aces,alt.music.amy-grant,alt.music.arabic,alt.music.banana-truffle,alt.music.barenaked-ladies,alt.music.beach-boys,alt.music.beastie-boys,alt.music.beck,alt.music.bee-gees,alt.music.beethoven,alt.music.bela-fleck,alt.music.big-band,alt.music.billy-joel,alt.music.bjork,alt.music.black-metal,alt.music.black-sabbath,alt.music.blue-rodeo,alt.music.blueoystercult,alt.music.blues-traveler,alt.music.blur,alt.music.bon-jovi,alt.music.bootlegs,alt.music.bruce-springsteen,alt.music.green-day,alt.music.jimi.hendrix,alt.music.led-zeppelin,alt.music.marillion,alt.music.nirvana,alt.music.oasis,alt.music.pearl-jam,alt.music.pink-floyd,alt.music.roger-waters,alt.music.rush,alt.music.stone-temple,alt.music.the-doors,alt.rock-n-roll.aerosmith,alt.rock-n-roll.metal.metallica
Subject: GUITARIST is looking for other GUITARISTS
Date: Sun, 21 Apr 96 11:55:31 GMT
Organization: World Access
Lines: 12
Message-ID: <N.042196.135531.81@sht1-7.worldaccess.nl>
NNTP-Posting-Host: sht1-7.worldaccess.nl
X-Newsreader: Quarterdeck Message Center [2.00]
Xref: geraldo.cc.utexas.edu alt.music.+live+:1034 alt.music.311:182 alt.music.4-track:6379 alt.music.4ad:4560 alt.music.a-cappella:3612 alt.music.abba:4468 alt.music.alanis:7853 alt.music.aliceinchains:4740 alt.music.alternative:272012 alt.music.alternative.female:30861 alt.music.amy-grant:12215 alt.music.arabic:205 alt.music.banana-truffle:5337 alt.music.barenaked-ladies:5725 alt.music.beach-boys:2605 alt.music.beastie-boys:15693 alt.music.beck:3087 alt.music.bee-gees:665 alt.music.beethoven:41 alt.music.bela-fleck:5583 alt.music.big-band:3389 alt.music.billy-joel:14409 alt.music.bjork:8536 alt.music.black-metal:4473 alt.music.black-sabbath:1703 alt.music.blue-rodeo:25 alt.music.blueoystercult:827 alt.music.blues-traveler:23519 alt.music.blur:9025 alt.music.bon-jovi:2176 alt.music.bootlegs:29822 alt.music.bruce-springsteen:1748 alt.music.green-day:9766 alt.music.jimi.hendrix:5504 alt.music.led-zeppelin:20657 alt.music.marillion:12232 alt.music.nirvana:57569 alt.music.oasis:13642 alt.music.pearl-jam:62494 alt.music.pink-floyd:63920 alt.music.roger-waters:8062 alt.music.rush:62719 alt.music.stone-temple:6899 alt.music.the-doors:10642 alt.rock-n-roll.aerosmith:9106 alt.rock-n-roll.metal.metallica:31378

Hey,

    I'm Jasper from Holland, 23 Years old.
I'm looking for other guitarists. so we can E-mail about the beauty
of the guitar. (till now on...my greatest love off all in this world!!!)
The music I Like????? Metallica, Pearl Jam, Hendrix, Pink Floyd and a lot
more. So.......E-Mail me and I'll write you back.

    Greetingzzzzzzzz.........
            &&& C - YA &&&
                Jasper

--- End sample article ---

Technical Details
Message-ID: <4ljh2s$f25@curly.cc.utexas.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <4ljh2s$f25@curly.cc.utexas.edu>
Subject: trn + Solaris 2.5 + long Xref lines.
Date: Tue, 23 Apr 1996 00:00:00 +0000
From: strick@uts.cc.utexas.edu (Vance Strickland)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 151040476
Organization: The University of Texas at Austin
Keywords: trn SEGV solaris2 Xref long lines
Newsgroups: news.software.readers
Summary: trn SEGV solaris2 Xref long lines