When I do that, the port doesn't even seem to open. Here's what I do:
[EMAIL PROTECTED] mod_perl-1.99_11]# gdb /usr/local/www/apache-2.0.48/bin/httpd
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) run -X -d /usr/local/www/apache-2.0.48
Starting program: /usr/local/www/apache-2.0.48/bin/httpd -X -d /usr/local/www/apache-2.0.48
[New Thread 16384 (LWP 28385)]
...and I can't even attach to the port then. Any ideas?
--Aaron
Bobber Cheng wrote:
1. compile with debug flag First make sure u install gdb, then compile httpd and modperl in debug mod, configure apache2 as: ./configure --enable-maintainer-mode and ur custom flages configure mod_perl ad: perl "Makefile.PL MP_DEBUG=1 and ur custom flages" compile and install them to the right place.
2. run apache2 in gdb $APACHE2_HOME is ur apache installed directory such as /usr/local/apache2 then run gdb as: gdb $APACHE2_HOME/bin/httpd (gdb) run -X -d $APACHE2_HOME
apache2 should run.
3. report the backtrace
visit ur page us usally, when server segfaults, gdb will tell ur where. u just type
(gdb) backtrace
and report the result.
hope it could help u.
[EMAIL PROTECTED] wrote:
I'm using apache v2.0.48 and have confirmed that the problem exists with both mod_perl v1.99_11 and v1.99_12-dev in CVS. If I simply use "RewriteEngine On", mod_perl works fine. If I use "RewriteEngine On<CR>RewriteRule ^/(.*) /index.pl/$1 [PT]" (or anything similar), the apache server immediately segfaults, displays nothing, and logs nothing useful (even in debug). This does not happen with mod_perl v1.99_10, although for reasons unrelated to mod_perl I'm actually stuck using v1.99_09 right now, which works more or less fine with this configuration. I'm using apache compiled from source on RedHat 8.0, with perl-5.8.0-88.3 and GCC v3.3.2.
Unfortunately I'm not a C programmer, or I probably would have been able to send more useful information. I tried to follow the instructions on debugging mod_perl C internals and get a core file, but I couldn't get that to work either. Any ideas? Thanks.
--Aaron
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
