🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.sources.d
Article #122

stevie : machine dependent bug

#122
From: Mochizuki Takashi
Date: Tue, 06 Oct 1992 01:12
45 lines
2401 bytes
$BK>7n(B@NEC$B$G$9!%(B
(j)stevie$B$N%P%0$r8+$D$1$?$N$G$4Js9p$7$^$9!%(B
$B$?$@$7!$5!<o0MB8$N%P%0$N$h$&$G$9!%(B

STEVIE - Version 3.69/J1.3

$B>I>u!'%U%!%$%k$K=$@5$,$"$k>uBV$G(B ":e"(no file name) $B$r$9$k$H(B
      Segmentation fault (core dumped)$B$7$^$9!%(B
      $BIaDL$O=$@5$,$"$k>uBV$G(B":e"$B$O$7$J$$$N$G$9$,!$(B":e!"$B$r$9$k(B
      $B$D$b$j$G(B'!'$B$rK:$l$?$j!$(B":e <file-name>"$B$N(B<file-name>$B$r(B
      $BK:$l$?>l9g$G$9!%(B

$B>I>u$,5/$-$k5!<o!'(B
      SparcStation2(SunOS Release 4.1.1-JLE1.1.1)
$B>I>u$,5/$-$J$$5!<o!'(B
      binary$BG[I[$5$l$?(BPC-9800$BMQ(BMS-DOS$BHG(B
      EWS4800(RISC|CISC)

$B860x!'(Balloc.c$B$NCf$N(Bstrsave(string)$B$K$*$$$F!$(Balloc(strlen(string)+1)
      $B$r$7$?$H$3$m$G(BSegmentation fault$B$K$J$j$^$9!%$5$i$K8@$($P!$(B
      string=NULL$B$N>l9g$K(Bstrlen(string)$B$G(BSegmentation fault$B$G$9!%(B
      strlen$B$K(BNULL$B%]%$%s%?$,EO$5$l$?>l9g$N@5$7$$F0:n$O2?$J$N$G(B
      $B$7$g$&$+!%>I>u$,5/$-$J$$5!<o(B|C-compiler$B$G$O!$(Bstrlne(NULL)$B$G(B
      '$B@5>o(B'$B$K(B0$B$,JV$C$FMh$^$9!%(B

$B<h$j4:$($:$NBP:v!'(B
      strsave(string)$B$r8F$V;~E@$G(Bstring$B$,(BNULL$B%]%$%s%?$+$I$&$+(B
      $B%A%'%C%/$9$Y$-$H$O;W$$$^$9$,!$$3$NJ}$O$I$J$?$+>\$7$$J}$K(B
      $B$*4j$$$9$k$H$7$F!$<h$j4:$($:$O(Balloc.c$B$K%Q%C%A$rEv$F$k$3$H(B
      $B$G2sHr$G$-$^$9!%$4;29M$^$G$K(Bpatch$B$rIU$1$^$9!%(B
*** alloc.c	Tue Oct  6 08:54:25 1992
--- alloc.c.org	Mon Jun 25 20:35:36 1990
***************
*** 27,32 ****
  
- 	if (string == NULL){
- 		if ((p = alloc(1)) == NULL)  return NULL;
- 		return((uchar *)p);
- 	}
  	if ((p = alloc(strlen(string)+1)) == NULL)
--- 27,28 ----
--
		$BK>7n9';V(B    $BF|K\EE5$!J3t!K#C!u#C%7%9%F%`8&5f=j(B
		motizuki@tsl.cl.nec.co.jp
		TEL 044-855-1111 ex. 3414     FAX 044-856-2232
Technical Details
Message-ID: <1992Oct6.011233.3434@tsl.cl.nec.co.jp>
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!sh.wide!sun-barr!stanford.edu!agate!spool.mu.edu!sgiblab!nec-gw!nec-tyo!necspl!necscc!flsvr1!tsl.cl.nec!motizuki

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ccut!sh.wide!sun-barr!stanford.edu!agate!spool.mu.edu!sgiblab!nec-gw!nec-tyo!necspl!necscc!flsvr1!tsl.cl.nec!motizuki
From: motizuki@tsl.cl.nec.co.jp (Mochizuki Takashi)
Newsgroups: fj.sources.d
Subject: stevie : machine dependent bug
Keywords: strlen
Message-ID: <1992Oct6.011233.3434@tsl.cl.nec.co.jp>
Date: 6 Oct 92 01:12:33 GMT
Sender: news@tsl.cl.nec.co.jp
Distribution: fj
Organization: C&C Systems Research Labs., NEC, Japan
Lines: 45
Nntp-Posting-Host: freeza.tsl.cl.nec.co.jp