Re: can't start apache-1.3.20 with mod_perl and Mason

2001-08-01 Thread Doug MacEachern

On Fri, 13 Jul 2001, Louis-David Mitterrand wrote:

 * On Wed, Jul 11, 2001 at 08:09:20AM -0700, Doug MacEachern wrote:
  On Wed, 11 Jul 2001, Louis-David Mitterrand wrote:
   
   Will I have to build a debugging-enabled libperl to get relevant
   information? Or is this enough to understand the problem?
  
  libperld would help, all i can tell is that something in %SIG is being
  caught, which normally shouldn't happen at startup.  are you assigning
  anything to %SIG ?
  
  you could also try this to get the perl filename:line where the segv
  happens:
  (gdb) source mod_perl-x.xx/.gdbinit
  (gdb) curinfo
 
 Thanks again Doug for taking the time to help. Here is the output from
 curinfo:
 
   Program received signal SIGSEGV, Segmentation fault.
   0x402b14b6 in Perl_sighandler () from /usr/lib/libperl.so.5.6
   (gdb) source .gdbinit 
   (gdb) curinfo
   Attempt to extract a component of a value that is not a structure pointer.
   (gdb) 
 
 Does that help a little?

nope.  if you could a libperld and build mod_perl with PERL_DEBUG=1 that
might help (see SUPPORT doc for howto)





Re: can't start apache-1.3.20 with mod_perl and Mason

2001-08-01 Thread Doug MacEachern

On Mon, 16 Jul 2001, Louis-David Mitterrand wrote:

 * On Wed, Jul 11, 2001 at 08:09:20AM -0700, Doug MacEachern wrote:
  
  libperld would help, all i can tell is that something in %SIG is being
  caught, which normally shouldn't happen at startup.  are you assigning
  anything to %SIG ?
  
  you could also try this to get the perl filename:line where the segv
  happens:
  (gdb) source mod_perl-x.xx/.gdbinit
  (gdb) curinfo
 
 OK, I rebuilt a debugging libperl and here is the gdb output:

hmm, this is a totally different stack trace.  have you tried
modperl-1.26?  or try adding this to httpd.conf:
PerlSetEnv PERL_DESTRUCT_LEVEL 2





Re: can't start apache-1.3.20 with mod_perl and Mason

2001-07-16 Thread Louis-David Mitterrand

* On Wed, Jul 11, 2001 at 08:09:20AM -0700, Doug MacEachern wrote:
 
 libperld would help, all i can tell is that something in %SIG is being
 caught, which normally shouldn't happen at startup.  are you assigning
 anything to %SIG ?
 
 you could also try this to get the perl filename:line where the segv
 happens:
 (gdb) source mod_perl-x.xx/.gdbinit
 (gdb) curinfo

OK, I rebuilt a debugging libperl and here is the gdb output:

styx:~# gdb apache
(no debugging symbols found)...(gdb) run -X
Starting program: /usr/sbin/apache -X
(no debugging symbols found)...(no debugging symbols found)...
[repeated many times]
Subroutine div redefined at /usr/share/perl/5.6.1/Exporter.pm line 57.
 at /usr/lib/perl/5.6.1/POSIX.pm line 18
Subroutine status_mason redefined at /usr/lib/perl5/Apache/Status.pm line 50.
(no debugging symbols found)...
Program received signal SIGSEGV, Segmentation fault.
0x402d1287 in S_new_he () at hv.c:26
26  PL_he_root = HeNEXT(he);
(gdb) bt
#0  0x402d1287 in S_new_he () at hv.c:26
#1  0x402d1bf9 in Perl_hv_store (hv=0x8ab7adc, key=0x4034e8e1 $, klen=1, 
val=0x87f069c, hash=37) at hv.c:411
#2  0x402d1644 in Perl_hv_fetch (hv=0x8ab7adc, key=0x4034e8e1 $, klen=1, 
lval=1) at hv.c:210
#3  0x40276e45 in Perl_gv_fetchpv (nambeg=0x4034e8e1 $, add=1, sv_type=4)
at gv.c:669
#4  0x40273c1e in S_init_postdump_symbols (argc=0, argv=0xbfffd63c, 
env=0xb9c0) at perl.c:3381
#5  0x4026e9b4 in S_parse_body (env=0x0, xsinit=0x40223dc0 xs_init)
at perl.c:1299
#6  0x4026da60 in perl_parse (my_perl=0x8ab7a48, xsinit=0x40223dc0 xs_init, 
argc=3, argv=0xbfffd630, env=0x0) at perl.c:895
#7  0x402213f4 in perl_startup () from /usr/lib/apache/1.3/mod_perl.so
#8  0x402252a9 in perl_cmd_require () from /usr/lib/apache/1.3/mod_perl.so
#9  0x08054bd9 in ap_clear_module_list ()
#10 0x08054f5a in ap_handle_command ()
#11 0x08054fa1 in ap_srm_command_loop ()
#12 0x080554d2 in ap_process_resource_config ()
#13 0x08055bcc in ap_read_config ()
#14 0x0805d2b4 in ap_child_terminate ()
#15 0x0805da5d in main ()
#16 0x400e038b in __libc_start_main () from /lib/libc.so.6
(gdb) source /root/libapache-mod-perl-1.25/.gdbinit 
(gdb) curinfo
0:/dev/null
(gdb) 


-- 
PHEDRE: Quand sous un joug honteux à peine je respire !
Quand je me meurs !
  (Phèdre, J-B Racine, acte 3, scène 1)



Re: can't start apache-1.3.20 with mod_perl and Mason

2001-07-13 Thread Louis-David Mitterrand

* On Wed, Jul 11, 2001 at 08:09:20AM -0700, Doug MacEachern wrote:
 On Wed, 11 Jul 2001, Louis-David Mitterrand wrote:
  
  Will I have to build a debugging-enabled libperl to get relevant
  information? Or is this enough to understand the problem?
 
 libperld would help, all i can tell is that something in %SIG is being
 caught, which normally shouldn't happen at startup.  are you assigning
 anything to %SIG ?
 
 you could also try this to get the perl filename:line where the segv
 happens:
 (gdb) source mod_perl-x.xx/.gdbinit
 (gdb) curinfo

Thanks again Doug for taking the time to help. Here is the output from
curinfo:

Program received signal SIGSEGV, Segmentation fault.
0x402b14b6 in Perl_sighandler () from /usr/lib/libperl.so.5.6
(gdb) source .gdbinit 
(gdb) curinfo
Attempt to extract a component of a value that is not a structure pointer.
(gdb) 

Does that help a little?


-- 
ISMENE: Non, Madame. les Dieux ne vous sont plus contraires,
Et Thésée a rejoint les mânes de vos frères.
  (Phèdre, J-B Racine, acte 2, scène 1)



Re: can't start apache-1.3.20 with mod_perl and Mason

2001-07-11 Thread Louis-David Mitterrand

* On Tue, Jul 10, 2001 at 07:13:30PM -0700, Doug MacEachern wrote:
 On Mon, 9 Jul 2001, Louis-David Mitterrand wrote:
  After upgrading my installation to Apache-1.3.20 and mod_perl-1.25 as
  as a module I can't start apache anymore when httpd.conf contains:
  
  PerlRequire /etc/apache/perl/handler.pl
  
  And that file (for debugging purposes) is practically empty:
  
  #!/usr/bin/perl
  package HTML::Mason;
  
  use strict;
  use HTML::Mason;
  use HTML::Mason::ApacheHandler;
  1;
  
  Running strace apache -X shows:
  
  read(3, ETE PATCH PROPPATCH MKCOL COPY M..., 4096) = 4096
  read(3, mLog directive (see below).\n#\nLo..., 4096) = 4096
  read(3, n /icons/uuencoded.gif .uu\nA..., 4096) = 4096
  read(3,  tweak mime.types without actual..., 4096) = 4096
  --- SIGSEGV (Segmentation fault) ---
  +++ killed by SIGSEGV +++
 
 see mod_perl-1.25/SUPPORT for hints on howto get a stacktrace.

Thanks for your help. Here is the result of a gdb run:

Program received signal SIGSEGV, Segmentation fault.
0x402b14b6 in Perl_sighandler () from /usr/lib/libperl.so.5.6
(gdb) bt
#0  0x402b14b6 in Perl_sighandler () from /usr/lib/libperl.so.5.6
#1  0x402b1ab9 in Perl_hv_store () from /usr/lib/libperl.so.5.6
#2  0x402b172a in Perl_hv_fetch () from /usr/lib/libperl.so.5.6
#3  0x40272c14 in Perl_gv_fetchpv () from /usr/lib/libperl.so.5.6
#4  0x402707de in Perl_init_stacks () from /usr/lib/libperl.so.5.6
#5  0x4026cdee in perl_parse () from /usr/lib/libperl.so.5.6
#6  0x4026c210 in perl_parse () from /usr/lib/libperl.so.5.6
#7  0x402213f4 in perl_startup () from /usr/lib/apache/1.3/mod_perl.so
#8  0x402252a9 in perl_cmd_require () from /usr/lib/apache/1.3/mod_perl.so
#9  0x08054bd9 in ap_clear_module_list ()
#10 0x08054f5a in ap_handle_command ()
#11 0x08054fa1 in ap_srm_command_loop ()
#12 0x080554d2 in ap_process_resource_config ()
#13 0x08055bcc in ap_read_config ()
#14 0x0805d2b4 in ap_child_terminate ()
#15 0x0805da5d in main ()
#16 0x400e038b in __libc_start_main () from /lib/libc.so.6
(gdb) 

Will I have to build a debugging-enabled libperl to get relevant
information? Or is this enough to understand the problem?

-- 
 HIPPOLYTE: Madame, avant que de partir,
J'ai cru de votre sort devoir vous avertit.
  (Phèdre, J-B Racine, acte 2, scène 2)



Re: can't start apache-1.3.20 with mod_perl and Mason

2001-07-11 Thread Doug MacEachern

On Wed, 11 Jul 2001, Louis-David Mitterrand wrote:
 
 Will I have to build a debugging-enabled libperl to get relevant
 information? Or is this enough to understand the problem?

libperld would help, all i can tell is that something in %SIG is being
caught, which normally shouldn't happen at startup.  are you assigning
anything to %SIG ?

you could also try this to get the perl filename:line where the segv
happens:
(gdb) source mod_perl-x.xx/.gdbinit
(gdb) curinfo





Re: can't start apache-1.3.20 with mod_perl and Mason

2001-07-10 Thread Doug MacEachern

On Mon, 9 Jul 2001, Louis-David Mitterrand wrote:

 Hi,
 
 After upgrading my installation to Apache-1.3.20 and mod_perl-1.25 as
 as a module I can't start apache anymore when httpd.conf contains:
 
   PerlRequire /etc/apache/perl/handler.pl
 
 And that file (for debugging purposes) is practically empty:
 
   #!/usr/bin/perl
   package HTML::Mason;
 
   use strict;
   use HTML::Mason;
   use HTML::Mason::ApacheHandler;
   1;
 
 Running strace apache -X shows:
 
   read(3, ETE PATCH PROPPATCH MKCOL COPY M..., 4096) = 4096
   read(3, mLog directive (see below).\n#\nLo..., 4096) = 4096
   read(3, n /icons/uuencoded.gif .uu\nA..., 4096) = 4096
   read(3,  tweak mime.types without actual..., 4096) = 4096
   --- SIGSEGV (Segmentation fault) ---
   +++ killed by SIGSEGV +++

see mod_perl-1.25/SUPPORT for hints on howto get a stacktrace.