*BSD News Article 61825


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!oleane!jussieu.fr!ensta!itesec!keltia.frmug.fr.net!not-for-mail
From: roberto@keltia.freenix.fr (Ollivier Robert)
Newsgroups: comp.lang.perl.misc,comp.unix.bsd.freebsd.misc
Subject: Re: Perl5.002-gamma miniperl dumps core on FreeBSD
Date: 19 Feb 1996 19:01:15 GMT
Organization: Usenet Canal Historique
Lines: 29
Message-ID: <4gahdr$j7o@keltia.freenix.fr>
References: <312881AD.2781E494@kampai.euronet.nl>
NNTP-Posting-Host: keltia.freenix.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Xref: euryale.cc.adfa.oz.au comp.lang.perl.misc:16234 comp.unix.bsd.freebsd.misc:14100

In article <312881AD.2781E494@kampai.euronet.nl>,
Gary Howland  <gary@kampai.euronet.nl> wrote:
> under FreeBSD 2.1.  What happens is the miniperl is dumping core
> during the 'make'.  I've had a look through the Perl bug archives
> but there is nothing mentioned about this.  Anyone else had this

Apply the following patch that I  already sent to the perl5-porters mailing
list:

*** toke.c.old	Sun Feb 18 18:09:02 1996
--- toke.c	Sun Feb 18 18:00:44 1996
***************
*** 277,281 ****
      if (rsfp == stdin)
  	clearerr(rsfp);
!     else if (rsfp != fp)
  	fclose(rsfp);
      rsfp = fp;
--- 277,281 ----
      if (rsfp == stdin)
  	clearerr(rsfp);
!     else if (rsfp != fp && rsfp)
  	fclose(rsfp);
      rsfp = fp;

[[ cc'ed to Gary ]]
-- 
Ollivier ROBERT  -=- FreeBSD: The daemon is FREE! -=-  roberto@freebsd.org
-=-=-=-=-=-=-=-=-=-=- FreeBSD 2.x FAQ maintainer -=-=-=-=-=-=-=-=-=-=-=-=-