develooper Front page | perl.perl5.porters | Postings from October 2003

Re: 5.8.1: Segfault with $Config and File::Find?

Thread Previous
From:
Nicholas Clark
Date:
October 9, 2003 12:52
Subject:
Re: 5.8.1: Segfault with $Config and File::Find?
Message ID:
20031009195141.GE14030@plum.flirble.org
On Thu, Oct 09, 2003 at 01:04:24AM +0200, Slaven Rezic wrote:
> Nicholas Clark <nick@ccl4.org> writes:

> > I'm not sure if you need to. Given that the SEGV is in the libc_r code,
> > I don't think that it's perl's fault, and I can't see how we can avoid
> > tickling the bug.
> > 
> 
> The issue is mentioned in README.freebsd:
> 
> =head2 FreeBSD core dumps from readdir_r with ithreads
> 
> When perl is configured to use ithreads, it will use re-entrant library calls
> in preference to non-re-entrant versions.  There is a bug in FreeBSD's
> C<readdir_r> function in versions 4.5 and earlier that can cause a SEGV when
> reading large directories. A patch for FreeBSD libc is available
> (see http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/30631 )
> which has been integrated into FreeBSD 4.6.

Oh yes. Thanks for reminding me. I remember that I had hit that very issue.
IIRC it's possible to patch libc_r, but I forget what it was.

Nicholas Clark


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About