Threads under mod perl

[email protected] ("Qasem Sweilem")
Newsgroups perl.ithreads
Message-ID <[email protected]>
Hi,

 

I have a problem running threads under mod perl. I always get a squid error
"zero sized reply", and several segfault errors in the apache error log as
follows:

 

[Mon Jul 03 15:10:45 2006] [notice] child pid 2230 exit signal Segmentation
fault (11) 

 

 

It works fine in a standard CGI environment.

 

Notes: 

I have perl 5.8.6 and Apache2.0 with mod-perl2.0.2

 

httpd conf:

 

Alias /epbin/ /home/opt/v-hosts/dev/dev2/epbin/

<Location /epbin>

        SetHandler perl-script

        PerlResponseHandler ModPerl::PerlRun

        Options +ExecCGI

        PerlOptions +ParseHeaders

        PerlInitHandler Apache2::Reload

</Location>

 

 

 

When typing: perl -V:useithreads -V:usemultiplicity

I get: useithreads='define';

        usemultiplicity='define';

 

Here the simple test script I am trying to run:

 

--------------------

use threads;

 

$thr = threads->new(\&sub1);

@ReturnData = $thr->join;

 

print "Thread returned @ReturnData \n";

 

sub sub1 {

            return "Fifty-six", "foo", 2;

}

---------------------

 

Is there anything required which I missed?

 

Thanks in advance

Qasem
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.