CGI::Fast and ithreads.

[email protected] (Eugene Kosov)
Newsgroups perl.beginners.cgi,perl.ithreads
Message-ID <[email protected]>
Hi, everybody!

I'm writing a CGI application and am going to use ithreads in order to 
reduce execution time. Is it possible with CGI::Fast? I get segmentation 
fault every time I'm using threads with CGI::Fast.

Simple demonstration:

[kosov@yoyo ~]$ cat test.pl
#!/usr/bin/perl -w

require threads;
require CGI::Fast;

my $thr = threads->new( sub {print "I'm a thread.\n"} );
$thr->join();

[kosov@yoyo ~]$ perl test.pl
I'm a thread.
Segmentation fault

What's wrong? Did I forget something to do?


Also sometimes I get error messages like:
Attempt to free non-existent shared string 'NLS_LANG', Perl interpreter: 
0x8a962f0 during global destruction.
Attempt to free non-existent shared string 'HOME', Perl interpreter: 
0x8a962f0 during global destruction.
...


Thanks in advance.
Any help, link, etc. will be greatly appreciated.


--
Regards,
Eugene Kosov.
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.