Newsgroups: fj.lang.perl
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!news.iij.ad.jp!dnp-news!dps-dnp-news!dnpgw!pix!a_kuroe
From: a_kuroe@sparc691.gaken.dnp.co.jp (Akihiko Kuroe)
Subject: Re: Segmentation fault
In-Reply-To: yos@rifu.bsd.tnes.nec.co.jp's message of Wed, 19 Oct 1994 11:14:22 JST
Content-Type: text/plain; charset=ISO-2022-JP
Message-ID: <CxwH81.3J8@pix.gaken.dnp.co.jp>
Sender: news@pix.gaken.dnp.co.jp (Usenet ews/.nameNews System)
Organization: IIRI , Dai Nippon Printing Co.,Ltd. , Tokyo , Japan
X-Newsreader: gn [Version 1.31 OCT.1,1994 (Unix)]
References: <CxwE7y.37A@akyu.bsd.tnes.nec.co.jp>
Mime-Version: 1.0
Date: Wed, 19 Oct 1994 03:19:12 GMT
Lines: 63
Xref: galaxy.trc.rwcp.or.jp fj.lang.perl:285
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.perl&nb=285&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B9u9>!wBgF|K\0u:~$G$9!#(B

In article <CxwE7y.37A@akyu.bsd.tnes.nec.co.jp>
yos@rifu.bsd.tnes.nec.co.jp writes:

> Bad free() ignored at ptr.pl line 10.
> Bad free() ignored at ptr.pl line 10.
> Segmentation fault (core dumped)

$B$H$j$"$($:<B83$7$F$_$^$7$?!#(B

$B"#<B83(B
*** hoge.plWed Oct 19 12:10:08 1994
--- hoge1.plWed Oct 19 12:10:38 1994
***************
*** 10,11 ****
--- 10,12 ----
  &func2(*ptr);
+ undef *ptr;
  }
*** hoge.plWed Oct 19 12:10:08 1994
--- hoge2.plWed Oct 19 12:11:11 1994
***************
*** 3,4 ****
--- 3,5 ----
  &func1;
+ undef *ptr;
  &func1;
*** hoge.plWed Oct 19 12:10:08 1994
--- hoge3.plWed Oct 19 12:11:41 1994
***************
*** 6,11 ****
  sub func1 {
! local(*ptr);
  
! *ptr = *GLOBALDATA;
! &func2(*ptr);
  }
--- 6,11 ----
  sub func1 {
! local($ptr);
  
! $ptr = *GLOBALDATA;
! &func2($ptr);
  }

$B"#7k2L(B
% ./hoge.pl 
Bad free() ignored at ./hoge.pl line 10.
Bad free() ignored at ./hoge.pl line 10.
Segmentation fault
% ./hoge1.pl
% ./hoge2.pl
Bad free() ignored at ./hoge2.pl line 11.
Bad free() ignored at ./hoge2.pl line 11.
Segmentation fault
% ./hoge3.pl

$B"#9M;!(B
$B:#!"(BPerl$BK\$,$J$$$N$G!"$I$J$?$+>\$7$$J}$K$*4j$$$7$^$9!#(B(_ _)
--
$B9u9>L@I'!wBgF|K\0u:~(B $B2hA|8&5f=j(B3$BIt(B
<a_kuroe@sparc691.gaken.dnp.co.jp>
