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

2004-10-11 Thread Stas Bekman
That's better :) Now we know you aren't solaris :) Please read: http://perl.apache.org/docs/2.0/devel/debug/c.html#Getting_the_core_File_Dumped -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/

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

2004-10-11 Thread Sam T.
-8<-- Start Bug Report 8<-- 1. Problem Description: Hi all, When I try to do a simple anonymous LDAP bind using Net::LDAP (perl-ldap-0.3202): my $ldap = Net::LDAP->new('myldapserver', port => '389') or die "Unable to connect: $!\n"; I get a "Connection to

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

2004-10-11 Thread Stas Bekman
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_DETA

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

2004-10-11 Thread Sam T.
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

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread Nick Phillips
On 12/10/2004, at 11:46 AM, MARTIN Pierre wrote: I think your linker is broken. I say that because it included the linking directives: -L/usr/lib/perl/5.6.1/CORE -lperl but the resulting mod_perl.so doesn't show it up. It should have complained if it didn't find it. Try upgrading your linker (

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread Stas Bekman
MARTIN Pierre wrote: I think your linker is broken. I say that because it included the linking directives: -L/usr/lib/perl/5.6.1/CORE -lperl but the resulting mod_perl.so doesn't show it up. It should have complained if it didn't find it. Try upgrading your linker (cc) and try rebuilding mod_perl

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
> I think your linker is broken. I say that because it included the linking > directives: > >-L/usr/lib/perl/5.6.1/CORE -lperl > > but the resulting mod_perl.so doesn't show it up. It should have > complained if it didn't find it. Try upgrading your linker (cc) and try > rebuilding mod_perl aga

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread Stas Bekman
MARTIN Pierre wrote: Please do: cd src/modules/perl/ rm mod_perl.so make -f Makefile.modperl Here we go: /data/misc/mod_perl-1.99_16/src/modules/perl# rm mod_perl.so /data/misc/mod_perl-1.99_16/src/modules/perl# make -f Makefile.modperl rm -f mod_perl.so cc -shared -L/usr/local/lib \ [...] -rdyna

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
> Please do: > cd src/modules/perl/ > rm mod_perl.so > make -f Makefile.modperl Here we go: /data/misc/mod_perl-1.99_16/src/modules/perl# rm mod_perl.so /data/misc/mod_perl-1.99_16/src/modules/perl# make -f Makefile.modperl rm -f mod_perl.so cc -shared -L/usr/local/lib \ \ mod_perl.lo modperl_in

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

2004-10-11 Thread Stas Bekman
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 diffe

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

2004-10-11 Thread Sam T.
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

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread Stas Bekman
MARTIN Pierre wrote: what happens if you do: nm src/modules/perl/mod_perl.so | grep PL_ U PL_curcop OK, so we now know that perl wasn't linked statically. If it was it'd have been shown as resolved (usually T instead of U) and this: ldd -r src/modules/perl/mod_perl.so OUCH Output is

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
> what happens if you do: >nm src/modules/perl/mod_perl.so | grep PL_ U PL_curcop U PL_curinterp U PL_curpad U PL_curstack U PL_curstackinfo U PL_curstash U PL_defoutgv U PL_defstash U PL_diehook U PL_egi

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

2004-10-11 Thread Stas Bekman
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

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread Stas Bekman
MARTIN Pierre wrote: Hmm, can you please paste the arguments you passed to perl Makefile.PL? I can't figure out why the above output doesn't show a link to libperl.so To configure i just did: perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_INST_APACHE2=1 Is there a step before that i forgot? N

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
> Hmm, can you please paste the arguments you passed to perl Makefile.PL? I > can't figure out why the above output doesn't show a link to libperl.so To configure i just did: perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2 MP_INST_APACHE2=1 Is there a step before that i forgot? /data/misc/mod_pe

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

2004-10-11 Thread Samuel Tran
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=un

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread Stas Bekman
MARTIN Pierre wrote: Hello again, Here are the needed informations, this time CCed to all the mailing list: [one more tip: when you reply on the top (which is not the best thing to do) please don't quote the whole previous email. The best technique is to remove all irrelevant parts of the origina

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
Hello again, Here are the needed informations, this time CCed to all the mailing list: * "make test" gives me no errors until here: /usr/local/apache2/bin/httpd -d /data/misc/mod_perl-1.99_16/t -f /data/misc/mod_perl-1.99_16/t/conf/httpd.conf -D APACHE2 using Apache/2.0.52 (prefork MPM

Re: compilation failure with mod_perl-1.99_16 on OpenBSD 3.4

2004-10-11 Thread Kristian Elof Sørensen
Stas Bekman wrote: Kristian Elof Sørensen wrote: Kristian, please try the current cvs: http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution Thanks for the tip. However the compilation fails with the same error message at nearly the same line numbers as with

Re: [mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread Stas Bekman
MARTIN Pierre wrote: Hello all, I am totally new to mod_perl mailing list so maybe i am not posting in the right place. You are posting it to the right place, Martin. I recently installed a debian woody on a pentium based box. I also managed to install Apache 2 (with php and some others modules) a

[mp2] & Apache2: undefined symbol: PL_localizing

2004-10-11 Thread MARTIN Pierre
Hello all, I am totally new to mod_perl mailing list so maybe i am not posting in the right place.   I recently installed a debian woody on a pentium based box. I also managed to install Apache 2 (with php and some others modules) and it works perfectly as i was waiting it to do :) I red tha

[RELEASE CANDIDATE] Apache-Test-1.14

2004-10-11 Thread Geoffrey Young
a release candidate for Apache-Test 1.14 is now available. http://perl.apache.org/~geoff/Apache-Test-1.14-dev.tar.gz worthy of note is that this version ought to play nicely with Devel::Cover 0.49 with the use of -one-process, making it possible to get coverage results for mod_perl handlers. p

Re: PerlHandler serving / ?

2004-10-11 Thread Arne Skjaerholt
Actually, the error was due to my own incompetence (I found the error after having a sleep). I thought I had sent a reply to the list saying that, but it turns out I sent it to myself (dang webmail interface *grumble*). Sorry, bout that. Arne :wq -- Report problems: http://perl.apache.org/bugs/