You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Samuel Tran <sa...@gmail.com> on 2004/10/11 21:32:34 UTC

[MP2] Apache 2.0.52 + Net::LDAP (perl-ldap-0.3202) + Perl 5.6.1 = Segmentation fault (11)

Hi everybody,

I am using:

- mod_perl-1.99_16 / mod_perl-1.99_17-dev
- Apache 2.0.52 (prefork MPM)
- Net::LDAP (perl-ldap-0.3202)
- Perl 5.6.1
    (hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
    useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef)

When I try to do a simple anonymous LDAP bind:

my $ldap = Net::LDAP->new('myldapserver', port => '389') or die
"Unable to connect: $!\n";

I get a "Connection to host ... is broken".

Here is the output of the error_log file:

[Mon Oct 11 15:23:03 2004] [debug] util_ldap.c(1432): INIT global
mutex /tmp/file2XTVzj in child 12556
[Mon Oct 11 15:23:04 2004] [debug] util_ldap.c(1432): INIT global
mutex /tmp/file2XTVzj in child 12558
[Mon Oct 11 15:23:04 2004] [debug] util_ldap.c(1432): INIT global
mutex /tmp/file2XTVzj in child 12557
[Mon Oct 11 15:23:07 2004] [notice] child pid 11646 exit signal
Segmentation fault (11)

I would appreciate any help.

Many thanks.

Sam

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] Apache 2.0.52 + Net::LDAP (perl-ldap-0.3202) + Perl 5.6.1 = Segmentation fault (11)

Posted by Stas Bekman <st...@stason.org>.
Sam T. wrote:
> I've been reading the following doc on how to get a core dump file:
> http://perl.apache.org/docs/2.0/devel/debug/c.html#Analyzing_Dumped_Core_Files
> 
> I followed the section:  Getting the core File Dumped
> 
> Then I run Apache as described: /usr/local/apache2/bin/httpd
> -DONE_PROCESS -DNO_DETACH

the most relevant section is:
http://perl.apache.org/docs/2.0/devel/debug/c.html#Getting_the_core_File_Dumped

> Issue a request. But I get a Segmentation Fault without core dump ...

Well, you didn't follow up on the request to send a proper bug report, as 
explained here: http://perl.apache.org/bugs/ So I can't even try 
suggesting what could be the problem (I don't even know what OS you are 
on) Please file a proper bug report and we will take it from there. Thanks.

If you are on Solaris read:
http://perl.apache.org/docs/2.0/devel/debug/c.html#Obtaining_core_Files_under_Solaris

-- 
__________________________________________________________________
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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [mp2] Apache 2.0.52 + Net::LDAP (perl-ldap-0.3202) + Perl 5.6.1 = Segmentation fault (11)

Posted by "Sam T." <sa...@gmail.com>.
I've been reading the following doc on how to get a core dump file:
http://perl.apache.org/docs/2.0/devel/debug/c.html#Analyzing_Dumped_Core_Files

I followed the section:  Getting the core File Dumped

Then I run Apache as described: /usr/local/apache2/bin/httpd
-DONE_PROCESS -DNO_DETACH

Issue a request. But I get a Segmentation Fault without core dump ...



On Mon, 11 Oct 2004 17:43:46 -0400, Stas Bekman <st...@stason.org> wrote:
> Sam T. wrote:
> > I recompiled Apache with --enable-maintainer-mode and mod_perl with MP_DEBUG=1.
> >
> > Perl was installed using the Debian packages. So I haven't recompiled it yet.
> 
> should be fine to start with. may be need to recompile it later. first get
> the core dump.
> 
> > However the logs are not much different when I try an LDAP bind again:
> 
> logs won't be any different. Please read again
> http://perl.apache.org/docs/2.0/user/help/help.html#Resolving_Segmentation_Faults
> and if you have questions please ask. You first goal is to get the core
> file dumped. then you obtain the backtrace.
> 
> 
> 
> --
> __________________________________________________________________
> 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
>

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [MP2] Apache 2.0.52 + Net::LDAP (perl-ldap-0.3202) + Perl 5.6.1 = Segmentation fault (11)

Posted by Stas Bekman <st...@stason.org>.
Sam T. wrote:
> I recompiled Apache with --enable-maintainer-mode and mod_perl with MP_DEBUG=1.
> 
> Perl was installed using the Debian packages. So I haven't recompiled it yet.

should be fine to start with. may be need to recompile it later. first get 
the core dump.

> However the logs are not much different when I try an LDAP bind again:

logs won't be any different. Please read again
http://perl.apache.org/docs/2.0/user/help/help.html#Resolving_Segmentation_Faults
and if you have questions please ask. You first goal is to get the core 
file dumped. then you obtain the backtrace.

-- 
__________________________________________________________________
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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [MP2] Apache 2.0.52 + Net::LDAP (perl-ldap-0.3202) + Perl 5.6.1 = Segmentation fault (11)

Posted by "Sam T." <sa...@gmail.com>.
I recompiled Apache with --enable-maintainer-mode and mod_perl with MP_DEBUG=1.

Perl was installed using the Debian packages. So I haven't recompiled it yet.

However the logs are not much different when I try an LDAP bind again:

[Mon Oct 11 16:44:36 2004] [notice] Apache/2.0.52 (Unix)
mod_perl/1.99_16 Perl/v5.6.1 DAV/2 PHP/4.3.9 configured -- resuming
normal operations
[Mon Oct 11 16:44:36 2004] [info] Server built: Oct 11 2004 01:25:20
[Mon Oct 11 16:44:36 2004] [debug] prefork.c(955): AcceptMutex:
sysvsem (default: sysvsem)
[Mon Oct 11 16:44:36 2004] [debug] util_ldap.c(1432): INIT global
mutex /tmp/filegS23Qk in child 17058
[Mon Oct 11 16:44:42 2004] [debug] util_ldap.c(1432): INIT global
mutex /tmp/filegS23Qk in child 17059
[Mon Oct 11 16:44:46 2004] [notice] child pid 17055 exit signal
Segmentation fault (11)
[Mon Oct 11 16:46:01 2004] [info] removed PID file
/usr/local/apache2/logs/httpd.pid (pid=17053)
[Mon Oct 11 16:46:01 2004] [notice] caught SIGTERM, shutting down



On Mon, 11 Oct 2004 15:47:06 -0400, Stas Bekman <st...@stason.org> wrote:
> 
> 
> Samuel Tran wrote:
> > Hi everybody,
> >
> > I am using:
> >
> > - mod_perl-1.99_16 / mod_perl-1.99_17-dev
> > - Apache 2.0.52 (prefork MPM)
> > - Net::LDAP (perl-ldap-0.3202)
> > - Perl 5.6.1
> >     (hint=recommended, useposix=true, d_sigaction=define
> >     usethreads=undef use5005threads=undef useithreads=undef
> > usemultiplicity=undef
> >     useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
> >     use64bitint=undef use64bitall=undef uselongdouble=undef)
> >
> > When I try to do a simple anonymous LDAP bind:
> >
> > my $ldap = Net::LDAP->new('myldapserver', port => '389') or die
> > "Unable to connect: $!\n";
> >
> > I get a "Connection to host ... is broken".
> 
> > Here is the output of the error_log file:
> 
> > [Mon Oct 11 15:23:07 2004] [notice] child pid 11646 exit signal
> > Segmentation fault (11)
> 
> Not sure if it has anything to do with mp2, but please show us the
> backtrace of the segfault. See:
> http://perl.apache.org/docs/2.0/user/help/help.html#Resolving_Segmentation_Faults
> 
> Also for the future please observe the desired format of mp2 bug reports:
> http://perl.apache.org/bugs/
> 
> --
> __________________________________________________________________
> 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
> 
> --
> Report problems: http://perl.apache.org/bugs/
> Mail list info: http://perl.apache.org/maillist/modperl.html
> List etiquette: http://perl.apache.org/maillist/email-etiquette.html
> 
>

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html


Re: [MP2] Apache 2.0.52 + Net::LDAP (perl-ldap-0.3202) + Perl 5.6.1 = Segmentation fault (11)

Posted by Stas Bekman <st...@stason.org>.
Samuel Tran wrote:
> Hi everybody,
> 
> I am using:
> 
> - mod_perl-1.99_16 / mod_perl-1.99_17-dev
> - Apache 2.0.52 (prefork MPM)
> - Net::LDAP (perl-ldap-0.3202)
> - Perl 5.6.1
>     (hint=recommended, useposix=true, d_sigaction=define
>     usethreads=undef use5005threads=undef useithreads=undef
> usemultiplicity=undef
>     useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
>     use64bitint=undef use64bitall=undef uselongdouble=undef)
> 
> When I try to do a simple anonymous LDAP bind:
> 
> my $ldap = Net::LDAP->new('myldapserver', port => '389') or die
> "Unable to connect: $!\n";
> 
> I get a "Connection to host ... is broken".

> Here is the output of the error_log file:

> [Mon Oct 11 15:23:07 2004] [notice] child pid 11646 exit signal
> Segmentation fault (11)

Not sure if it has anything to do with mp2, but please show us the 
backtrace of the segfault. See:
http://perl.apache.org/docs/2.0/user/help/help.html#Resolving_Segmentation_Faults

Also for the future please observe the desired format of mp2 bug reports:
http://perl.apache.org/bugs/



-- 
__________________________________________________________________
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

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html