Article View: news.software.readers
Article #20936Re: trn + Solaris 2.5 + long Xref lines.
From: Vance Strickland
Date: Thu, 25 Apr 1996 00:00
Date: Thu, 25 Apr 1996 00:00
46 lines
2299 bytes
2299 bytes
In article <4ljh2s$f25@curly.cc.utexas.edu>,
Vance Strickland <strick@uts.cc.utexas.edu> wrote:
> It appears that trn will get a "Caught a SIGSEGV--.newsrc restored"
>upon reading articles that have LOOONNNG Xref: header lines.
>
>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'.
Well, just FYI in case anyone else sees this problem occurring. I found a
*hack* workaround for the problem. I just made LBUFLEN in common.h 8192
instead of 1024. :-P I know, this isn't the correct fix, but it'll work for
now. Must be somewhere that the buf is getting overrun or so.
EXT char buf[LBUFLEN+1]; /* general purpose line buffer */
--- Begin diff ---
*** common.h Thu Apr 25 13:43:47 1996
--- common.h.dist Tue Nov 1 20:44:01 1994
***************
*** 94,100 ****
#endif
#define BITSPERBYTE 8
! #define LBUFLEN 8192 /* line buffer length */
/* (don't worry, .newsrc lines can exceed this) */
#define CBUFLEN 512 /* command buffer length */
#define PUSHSIZE 256
--- 94,100 ----
#endif
#define BITSPERBYTE 8
! #define LBUFLEN 1024 /* line buffer length */
/* (don't worry, .newsrc lines can exceed this) */
#define CBUFLEN 512 /* command buffer length */
#define PUSHSIZE 256
--- End diff ---
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
Technical Details
Message-ID:
<4lok0s$fon@war.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-mailReferences:
<4ljh2s$f25@curly.cc.utexas.edu>Show Full Headers
Complete Article Headers
Message-ID: <4lok0s$fon@war.cc.utexas.edu> Subject: Re: trn + Solaris 2.5 + long Xref lines. Date: Thu, 25 Apr 1996 00:00:00 +0000 From: strick@grapevine.cc.utexas.edu (Vance Strickland) References: <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 X-Deja-AN: 151418985 Organization: The University of Texas at Austin Keywords: trn SEGV solaris2 Xref long lines Newsgroups: news.software.readers