Re: Bug Report: seg fault with 1.29/Apache 1.3.33/RedHat 7.1

[prev] [thread] [next] [Date index for 2004/11/15]

From: Stas Bekman
Subject: Re: Bug Report: seg fault with 1.29/Apache 1.3.33/RedHat 7.1
Date: 01:05 on 15 Nov 2004
Tim Evans wrote:
>>Because you are running under gdb. If you run normally and arrange for the 
>>system to allow the core files (as explained in the doc) you will get one.'
>>
>>Now how do you know that the process 3196 is the one that serves the 
>>request? I assume that you run under httpd -X? But it doesn't seem to be 
>>the case, since gdb didn't report the segfault event. (or did it?)
>>
>>Did you compare the compile time flags as I've suggested?
> 
> 
> Yes.

So what are the differences? I suppose you want to compare
1) the options passed to ./configure
2) linker and compilation options (since mod_perl inserts the options 
suggested by Perl (see perl -V) when compiling the rest of the Apache 
modules and the Apache core.

> [root@appian mod_perl-1.29]#  gdb ../apache_1.3.33/src/httpd
[...]
> Program received signal SIGSEGV, Segmentation fault.
> 0x40338d87 in php_xbithack_handler (r=0x811e5f4)
>     at /usr/local/src/php-4.3.9/sapi/apache/mod_php4.c:828
> 828             per_dir_conf = (HashTable *) 
> get_module_config(r->per_dir_config, &php4_module);
> (gdb) bt
> #0  0x40338d87 in php_xbithack_handler (r=0x811e5f4)
>     at /usr/local/src/php-4.3.9/sapi/apache/mod_php4.c:828

That's much better :)

> Seems to suggest a problem/conflict with the PHP DSO module.  Nevertheless, as I 
> have said, rebuilding apache without mod_perl (but keeping PHP) clears up the 
> problem.  mod_perl and PHP are the only externals involved in the config of 
> apache--no other non-default modules.

Please see my proposal above.

My guess is that the problem comes from compilation and/or linking flags 
which are different.

Also, take a look at:
http://perl.apache.org/docs/1.0/guide/install.html#mod_perl_and_mod_php
to see if it makes any difference.

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx 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

(message missing)

Re: Bug Report: seg fault with 1.29/Apache 1.3.33/RedHat 7.1
Stas Bekman 01:05 on 15 Nov 2004

Generated at 11:27 on 21 Dec 2004 by mariachi v0.52