[Israel.pm] Threads under mod perl

guy keren choo at actcom.co.il
Mon Jul 3 10:53:25 EEST 2006


On Mon, 3 Jul 2006, Qasem Sweilem wrote:

> I had a look on the apache log and I found a segfault error "signal
> Segmentation fault". Does this mean anything?

it means that a process has crashed due to memory corruption.

which means there is a bug in the program this process was executing.

or was that obvious, and you were asking something else?

--guy

> ----------------------------------------
> > Date: Mon, 3 Jul 2006 00:00:37 +0200
> > From: semuelf at 012.net.il
> > To: perl at perl.org.il
> > Subject: Re: [Israel.pm] Threads under mod perl
> >
> > Hello There.
> >
> > Maybe you should look into Apache::TIPool.
> > Mod_perl holds all the threads for itself,
> > And with this module you can ask for one.
> >
> > I found it referenced in the documentations, but couldn't find the
> > module itself. (and I don't have mod_perl installed to test it)
> > The main reason why I hate mod_perl is because of it's useless docs.
> > Well, have fun.
> >
> > Update: from searches, it seems that TIPool wasn't implemented.
> > Please don't take notice of my message.
> > I hate mod_perl.
> >
> > Semuel.
> >
> > > -----Original Message-----
> > > From: perl-bounces at perl.org.il [mailto:perl-bounces at perl.org.il] On
> > Behalf
> > > Of Qasem Sweilem
> > > Sent: Sunday, July 02, 2006 5:37 PM
> > > To: perl at perl.org.il
> > > Subject: [Israel.pm] Threads under mod perl
> > >
> > > Hi,
> > >
> > > I have a problem running threads under mod perl. I always get a "zero
> > > sized reply" in the browser.
> > >
> > > It works fine under normal cgi.
> > >
> > > Note: I have perl 5.8.6 and Apache2.0 with mod-perl2.0.2
> > >
> > > when typing: perl -V:useithreads -V:usemultiplicity
> > > I get: useithreads='define';
> > >        usemultiplicity='define';
> > >
> > > Here the simple test script im 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 miss?
> > >
> > > Thanks in advance
> > > Qasem
> > >
> > > _________________________________________________________________
> > > Be one of the first to try Windows Live Mail.
> > >
> > http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e
> > -
> > > 4911fb2b2e6d
> > > _______________________________________________
> > > Perl mailing list
> > > Perl at perl.org.il
> > > http://perl.org.il/mailman/listinfo/perl
> > >
> > >
> > > --
> > > No virus found in this incoming message.
> > > Checked by AVG Free Edition.
> > > Version: 7.1.394 / Virus Database: 268.9.6/378 - Release Date:
> > 28/06/2006
> >
> >
> > _______________________________________________
> > Perl mailing list
> > Perl at perl.org.il
> > http://perl.org.il/mailman/listinfo/perl
>
> _________________________________________________________________
> Be one of the first to try Windows Live Mail.
> http://ideas.live.com/programpage.aspx?versionId=5d21c51a-b161-4314-9b0e-4911fb2b2e6d
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl
>

-- 
guy

"For world domination - press 1,
 or dial 0, and please hold, for the creator." -- nob o. dy




More information about the Perl mailing list