perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gisle Aas <gi...@ActiveState.com>
Subject Re: [Fwd: [PATCH] libperl leaks a THREAD_KEY each time it is reloaded]
Date Thu, 06 Jan 2005 11:32:33 GMT
Joe Orton <jorton@redhat.com> writes:

> On Wed, Jan 05, 2005 at 02:09:52PM -0500, Stas Bekman wrote:
> > Gisle Aas wrote:
> > >Stas Bekman <stas@stason.org> writes:
> > >
> > >
> > >>How do I check the limit for pthread_key_create on linux?
> > >
> > >
> > >On my Gentoo box I find the limit here:
> > >
> > >     $ grep PTHREAD_KEYS_MAX /usr/include/bits/local_lim.h
> > >     #define PTHREAD_KEYS_MAX        1024
> 
> Ah, very interesting.  We have a long-standing bug report that Apache
> reproducibly crashes on the 1020th [sic] SIGHUP with mod_perl loaded, I
> bet this is the same problem.

I'm willing to bet on this as well.  The stack trace match exactly.

> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=73486
> 
> So that is a repro case worth trying, Stas.  It just takes a while...

You can speed it up my loading some other module that calls
pthread_key_create in order to steal most of the available keys.

Regards,
Gisle

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message