RE: CGI::Fast and ithreads.

[email protected] ("Jerry D. Hedden")
Newsgroups perl.beginners.cgi,perl.ithreads
Message-ID <20060503080749.fb30e530d17747c2b054d625b8945d88.86c149f89f.wbe@email.secureserver.net>
> >  $ perl -Mthreads -MCGI::Fast -e 'threads->new(sub{})->join()'
> >  Segmentation fault

The problem is with FCGI.pm (which is used by CGI::Fast):

> perl -Mthreads -MFCGI -e 'threads->new(sub{})->join()'
Attempt to free unreferenced scalar: SV 0x10105a30, Perl interpreter:
0x100102a8 during global destruction.
Segmentation fault (core dumped)

If you comment out the call to RequestX() (which goes into XS code)
inside Request() in FCGI.pm, the above runs without error.  These calls
do things with filehandles (and probably more) that obviously are not
thread-safe.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.