Return-Path: X-Original-To: apmail-perl-modperl-archive@www.apache.org Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 040687301 for ; Tue, 23 Aug 2011 21:59:03 +0000 (UTC) Received: (qmail 50309 invoked by uid 500); 23 Aug 2011 21:58:59 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 49760 invoked by uid 500); 23 Aug 2011 21:58:58 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 49753 invoked by uid 99); 23 Aug 2011 21:58:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 21:58:58 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=HELO_LH_HOME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [165.154.121.7] (HELO backoffice.clarkconnect.lan) (165.154.121.7) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Aug 2011 21:58:52 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by backoffice.clarkconnect.lan (Postfix) with ESMTP id 21A4941845C; Tue, 23 Aug 2011 17:58:26 -0400 (EDT) Received: from tracye8d7c876c (server.clarkconnect.lan [192.168.1.100]) by backoffice.clarkconnect.lan (Postfix) with SMTP id 0CC87418452; Tue, 23 Aug 2011 17:58:26 -0400 (EDT) Message-ID: From: "Mike OK" To: "Fred Moyer" Cc: "mod_perl list" References: <56174A7D-6441-4808-B97D-56691EE93DBF@pobox.com> Subject: Re: Segment Fault when creating a thread Date: Tue, 23 Aug 2011 17:58:22 -0400 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 X-Virus-Checked: Checked by ClamAV on apache.org 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" To: "Mike OK" Cc: "mod_perl list" 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 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); > }