You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Sreeji K Das <sr...@yahoo.com> on 2002/04/13 15:38:39 UTC
DSO on Solaris - child dies with seg fault
Hi,
I was trying to run mod_perl as DSO on Solaris. I see
the following line in the logs:
[notice] child pid 24323 exit signal Segmentation
Fault (11)
This happens whenever I send a USR1 to the server for
restart. Also I see the same message whenever the
child is about to exit (ie. after handling the
prescribed no.of requests).
Is DSO stable enough to be used under Solaris ? I have
searched through the archives & see differing
opinions.
Additional Info:
----------------
$perl -V:uselargefiles -V:bincompat5005
uselargefiles='define';
bincompat5005='undef';
perl: 5.6.1, Apache: 1.3.23, mod_perl: 1.26
Using SunOS 5.6 Generic_105181-16 sun4u sparc
SUNW,Ultra-80
I've compiled mod_perl with PERL_USELARGEFILES=0 and
USE_DSO.
The above problem is repeatable with PerlFreshRestart
On and Off.
Any clues ?
Thanx
Sreeji
(BTW, make test has gone through w/o any errors)
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
Re: DSO on Solaris - child dies with seg fault
Posted by Stas Bekman <st...@stason.org>.
Sreeji K Das wrote:
> Thanx for the reply. However, I had already read the
> doc. and done everything mentioned there. I had
> recompiled perl with -Ubincompat5005 as mentioned.
Good then. I just wasn't sure. Hopefully someone with Solaris
access/knowledge will be able to help you out, but see below.
> I've attached some additional info., generated by
> trussing the child, as it was being restarted:
> $truss -ef -o ~/truss.out -r0,1,2 -w0,1,2 -p 26978
What's needed is the core dump backtrace, see
http://perl.apache.org/preview/modperl-docs/dst_html/docs/1.0/guide/help.html#How_to_Report_Problems
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: DSO on Solaris - child dies with seg fault
Posted by Doug MacEachern <do...@covalent.net>.
On Sun, 14 Apr 2002, Sreeji K Das wrote:
> Hi Stas,
> Thanx for the reply. However, I had already read the
> doc. and done everything mentioned there. I had
> recompiled perl with -Ubincompat5005 as mentioned.
wondering if this is the XSLoader vs DynaLoader mentioned earlier today.
there is a workaround builtin to 1.27-tobe:
http://perl.apache.org/~dougm/mod_perl-1.26_01-dev.tar.gz
you could also try 'use DynaLoader ();' before loading any other modules.
Re: DSO on Solaris - child dies with seg fault
Posted by Sreeji K Das <sr...@yahoo.com>.
Hi Stas,
Thanx for the reply. However, I had already read the
doc. and done everything mentioned there. I had
recompiled perl with -Ubincompat5005 as mentioned.
I've attached some additional info., generated by
trussing the child, as it was being restarted:
$truss -ef -o ~/truss.out -r0,1,2 -w0,1,2 -p 26978
Note: I have also tried setting ENV
PERL_DESTRUCT_LEVEL to -1 and also to 2, but got the
same results.
Thanx for any help.
Sreeji
--- Stas Bekman <st...@stason.org> wrote: > Sreeji K
Das wrote:
> > Hi,
> >
> > I was trying to run mod_perl as DSO on Solaris. I
> see
> > the following line in the logs:
> >
> > [notice] child pid 24323 exit signal Segmentation
> > Fault (11)
> >
> > This happens whenever I send a USR1 to the server
> for
> > restart. Also I see the same message whenever the
> > child is about to exit (ie. after handling the
> > prescribed no.of requests).
> >
> > Is DSO stable enough to be used under Solaris ? I
> have
> > searched through the archives & see differing
> > opinions.
> >
> > Additional Info:
> > ----------------
> >
> > $perl -V:uselargefiles -V:bincompat5005
> > uselargefiles='define';
> > bincompat5005='undef';
> >
> > perl: 5.6.1, Apache: 1.3.23, mod_perl: 1.26
> > Using SunOS 5.6 Generic_105181-16 sun4u sparc
> > SUNW,Ultra-80
> >
> > I've compiled mod_perl with PERL_USELARGEFILES=0
> and
> > USE_DSO.
> > The above problem is repeatable with
> PerlFreshRestart
> > On and Off.
> >
> > Any clues ?
> >
> > Thanx
> > Sreeji
> > (BTW, make test has gone through w/o any errors)
> >
>
> See if it helps
>
you:http://perl.apache.org/guide/install.html#When_DSO_can_be_Used
>
>
>
>
__________________________________________________________________
> Stas Bekman JAm_pH ------> Just Another
> mod_perl Hacker
> http://stason.org/ mod_perl Guide --->
> http://perl.apache.org
> mailto:stas@stason.org http://use.perl.org
> http://apacheweek.com
> http://modperlbook.org http://apache.org
> http://ticketmaster.com
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
Re: DSO on Solaris - child dies with seg fault
Posted by Stas Bekman <st...@stason.org>.
Sreeji K Das wrote:
> Hi,
>
> I was trying to run mod_perl as DSO on Solaris. I see
> the following line in the logs:
>
> [notice] child pid 24323 exit signal Segmentation
> Fault (11)
>
> This happens whenever I send a USR1 to the server for
> restart. Also I see the same message whenever the
> child is about to exit (ie. after handling the
> prescribed no.of requests).
>
> Is DSO stable enough to be used under Solaris ? I have
> searched through the archives & see differing
> opinions.
>
> Additional Info:
> ----------------
>
> $perl -V:uselargefiles -V:bincompat5005
> uselargefiles='define';
> bincompat5005='undef';
>
> perl: 5.6.1, Apache: 1.3.23, mod_perl: 1.26
> Using SunOS 5.6 Generic_105181-16 sun4u sparc
> SUNW,Ultra-80
>
> I've compiled mod_perl with PERL_USELARGEFILES=0 and
> USE_DSO.
> The above problem is repeatable with PerlFreshRestart
> On and Off.
>
> Any clues ?
>
> Thanx
> Sreeji
> (BTW, make test has gone through w/o any errors)
>
See if it helps
you:http://perl.apache.org/guide/install.html#When_DSO_can_be_Used
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com
Re: DSO on Solaris - child dies with seg fault
Posted by Sreeji K Das <sr...@yahoo.com>.
Thanx Doug for the reply. Unfortunately I still get
segfaults :-( No difference.
Once I have the time, I'll get the stacktrace & see
for any clues. Right now I have kept DSO in the
backburner, as I have got PerlFreshRestart fully up
and runnig (with a no. of patches to mod_perl)
Sreeji
--- Doug MacEachern <do...@covalent.net> wrote: > you
might actually be hitting a problem i just found
> on solaris with 2.0
> and perl 5.6.1. a problem that is fixed in
> 5.8.0-tobe, where
> certain DynaLoader and XSLoader combo prevents
> modperl from closing all of
> the dlhandles. try adding this to your startup.pl
> before use-ing any
> other modules:
>
> use DynaLoader ();
>
>
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
Re: DSO on Solaris - child dies with seg fault
Posted by Doug MacEachern <do...@covalent.net>.
you might actually be hitting a problem i just found on solaris with 2.0
and perl 5.6.1. a problem that is fixed in 5.8.0-tobe, where
certain DynaLoader and XSLoader combo prevents modperl from closing all of
the dlhandles. try adding this to your startup.pl before use-ing any
other modules:
use DynaLoader ();