You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Neil Gunton <ne...@nilspace.com> on 2005/07/17 03:35:06 UTC

Threaded perl messages

Hi all,

I am currently using Embperl 1.3.6, with Apache 1.3.33 and mod_perl 1.29 on a new install of Debian 
Sarge. Previously this was running on Debian Woody without issues, but there appears to be a new 
threaded version of perl (5.8.4) which is causing messages to the error log every time a child 
process exits:

    A thread exited while 2 threads were running.

or sometimes it's:

    A thread exited while 2 threads were running, <Reader> line 7.

The version of Perl is "v5.8.4 built for i386-linux-thread-multi". It's the one that came with Sarge.

Everything works fine otherwise.

Has anyone else encountered this? Any tips on how to suppress the warning? It's annoying to have it 
filling up my server error logs.

Thanks,

-Neil

Re: Threaded perl messages

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Neil Gunton wrote:
> Philip M. Gollucci wrote:
> In any case, do you think this might fix things?
Unfortunately, I can't hazzard a guess here, as I haven't used either 
OS.  Just trying to get some more information out there so others could 
better help :)

5.8.4 is supposed to be completely binary compatible with 5.8.7 though.

I'd wait for someone else to reply first here before doing anything rash. :)




-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com


Re: Threaded perl messages

Posted by Neil Gunton <ne...@nilspace.com>.
Philip M. Gollucci wrote:
>> The version of Perl is "v5.8.4 built for i386-linux-thread-multi". 
>> It's the one that came with Sarge.
> 
> Have you tried upgrading to 5.8.7 ?

No, I was hoping to be able to stay with the "stock" perl, to ease future debian upgrades. But if 
that will fix the problem then I'm very willing to try. It would (I think) mean recompiling all my 
modules, if I remember correctly the last time I upgraded, none of my own compiled modules seemed to 
work any more (something to do with the version number of perl being incorporated in the module 
path, iirc).

Also, how would compiling my own Perl affect the fact that I previously installed Perl as a Debian 
package? Wouldn't this tend to break the debian package management, since future upgrades of 
dependent packages would be assuming that 5.8.4 was still in effect?

In any case, do you think this might fix things?

> 
>  >Debian Woody
> What version of perl was on this OS ?

I don't remember, sorry. That installation was on a hosted server which isn't available any more.

Thanks for the fast response,

-Neil

Re: Threaded perl messages

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Neil Gunton wrote:
> The version of Perl is "v5.8.4 built for i386-linux-thread-multi". It's 
> the one that came with Sarge.
Have you tried upgrading to 5.8.7 ?

 >Debian Woody
What version of perl was on this OS ?

-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com


Re: Threaded perl messages

Posted by Tom Schindl <to...@gmx.at>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Neil Gunton schrieb:
> Hi all,
> 
> I am currently using Embperl 1.3.6, with Apache 1.3.33 and mod_perl 1.29
> on a new install of Debian Sarge. Previously this was running on Debian
> Woody without issues, but there appears to be a new threaded version of
> perl (5.8.4) which is causing messages to the error log every time a
> child process exits:
> 
>    A thread exited while 2 threads were running.

That's really interesting because on Apache-1 you don't have threads if
your application (or one of the third party modules you are using)
doesn't start any in the background.

> 
> or sometimes it's:
> 
>    A thread exited while 2 threads were running, <Reader> line 7.
> 
> The version of Perl is "v5.8.4 built for i386-linux-thread-multi". It's
> the one that came with Sarge.
> 
> Everything works fine otherwise.
> 
> Has anyone else encountered this? Any tips on how to suppress the
> warning? It's annoying to have it filling up my server error logs.
> 
> Thanks,
> 
> -Neil
> 
> 

Upgrading to the latest perl doesn't harm you that much. I prefer it
because everthing is under my control and you can gain much speed e.g.
compile your perl without thread-support will bring 10%-20% speed
enhancement.

I'd suggest to install your own perl into e.g. /opt/perl-5.8.7 leaving
your old perl untouched, compile your own apache(not a must) and
mod_perl (a must because the debian-mod_perl is not using your new perl)
and install all missing modules using the cpan-shell. You have to
install all modules because I think you cannot use old ones when your
perl-5.8.4 is threaded and your new perl-5.8.7 is not threaded because
they are not binary compatible but I could be mistaken here.

Tom

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC21eqkVPeOFLgZFIRAiVBAKC1DpMGX3RYeuw05iV5R4K84OJyVACdGqDp
VXZYjNl0PaFtOlhedr427Eo=
=P5xD
-----END PGP SIGNATURE-----

Re: Threaded perl messages

Posted by Neil Gunton <ne...@nilspace.com>.
David Christensen wrote:
> I'd try asking your question on an EmbPerl community, such as:
> 
>     http://perl.apache.org/embperl/

I did ask the question there first, this last Wednesday, but I got no response.

:-(

-Neil

RE: Threaded perl messages

Posted by David Christensen <dp...@holgerdanske.com>.
Neil Gunton wrote:
> I am currently using Embperl 1.3.6, with Apache 1.3.33 and mod_perl
> 1.29 on a new install of Debian Sarge. Previously this was running on
> Debian Woody without issues, but there appears to be a new threaded
> version of perl (5.8.4) which is causing messages to the error log
> every time a child process exits:
>    A thread exited while 2 threads were running.

I'm running Debian Sarge with apache-perl (1.3.33-6, mod_perl 1.29.0.2-9) and
Perl (5.8.4) and I still have a older Woody box with Apache (1.3.26) and Perl
(5.6.1).


I don't run Embperl, and I don't see any "thread" error messages in my Apache
error log:

    root@p166v:~# grep "thread" /var/log/apache-perl/error.log
    root@p166v:~#


Philip M. Gollucci wrote:
> Have you tried upgrading to 5.8.7 ?

I checked to see if there is an APT update available for Perl; 5.8.4-8 seems to
be current on Debian Sarge.


Neil Gunton wrote:
> I was hoping to be able to stay with the "stock" perl, to ease future
> debian upgrades.

I concur.  Things got ugly the few times I've strayed outside the boundaries of
the package/ upgrade management system of whatever GNU/Linux distribution I
happen to be dealing with.


I'd try asking your question on an EmbPerl community, such as:

    http://perl.apache.org/embperl/


HTH,

David