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

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

Thread Previous
Nicholas Clark
October 9, 2003 12:52
Re: 5.8.1: Segfault with $Config and File::Find?
Message ID:
On Thu, Oct 09, 2003 at 01:04:24AM +0200, Slaven Rezic wrote:
> Nicholas Clark <> 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 )
> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About