Re: Segment Fault when creating a thread

"Mike OK" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <F7E6074CCE8445CA84A65CC7CE0D9839@tracye8d7c876c>
Thanks for the tip Fred.  I just now upgraded to 2.0.5 but still get the 
same error.

Mike


----- Original Message ----- 
From: "Fred Moyer" <[email protected]>
To: "Mike OK" <[email protected]>
Cc: "mod_perl list" <[email protected]>
Sent: Tuesday, August 23, 2011 5:26 PM
Subject: Re: Segment Fault when creating a thread


Might want to try 2.0.5 which is about 6 months old.

On Tue, Aug 23, 2011 at 2:23 PM, Mike OK <[email protected]> wrote:
> I must have a problem with my mod_perl set up. When I try to run this
> script, I get a "child pid 451 exit signal Segmentation fault (11)". It
> seems that creating the thread causes the error. This is the startup line
> from the log file with the apache, mod_perl, and perl versions.
>
> Apache/2.2.11 (Unix) mod_perl/2.0.4 Perl/v5.8.5 configured -- resuming
> normal operations
>
> The script that causes a failure is
>
> #!/usr/bin/perl -wT
>
> use strict;
> use threads;
> use threads::shared;
>
> my $temp = threads->new(\&foo,"mike");
> exit;
>
> sub foo {
> my $input = shift;
> my $number = int(rand(10));
> print "this went in the thread\n";
> return($number);
> }
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.