Re: [mp2] segfaulting apache in ap_pcw_walk_files_config

[prev] [thread] [next] [Date index for 2005/05/25]

From: Flavio Curti
Subject: Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Date: 13:23 on 25 May 2005
Hi Philippe

On 5/25/05, Philippe M. Chiasson <gozer@xxxxxxxxx.xxx> wrote:
> Hrm, so far, I've looked at the configuration files you've sent me and th=
ey
> look kosher. I was thinking something bogus inherited from your debian's
> configuration...Guess not.
>=20
> One more gdb peek for me please to try and pin this problem down some mor=
e.
> (gdb) print *s
> (gdb) print *pconf

Gives:
(gdb) print *s
$1 =3D {process =3D 0x80c0120, next =3D 0x934b6b8, defn_name =3D 0x0,=20
  defn_line_number =3D 0, server_admin =3D 0x81f1238 "webmaster@schalch-it.=
ch",=20
  server_hostname =3D 0x81f1120 "localhost", port =3D 8529,=20
  error_fname =3D 0x81f11c8 "/usr/local/src/modperl-2.0/t/logs/error_log",=
=20
  error_log =3D 0x80f8208, loglevel =3D 7, is_virtual =3D 0,=20
  module_config =3D 0x80fc240, lookup_defaults =3D 0x80fd590, addrs =3D 0x8=
0fc1d8,=20
  timeout =3D 300000000, keep_alive_timeout =3D 15000000, keep_alive_max =
=3D 100,=20
  keep_alive =3D 1, path =3D 0x0, pathlen =3D 0, names =3D 0x0, wild_names =
=3D 0x0,=20
  limit_req_line =3D 8190, limit_req_fieldsize =3D 8190, limit_req_fields =
=3D 100}
(gdb) print *pconf
$2 =3D <incomplete type>

> the server_rec should at least show which vhost in your config creates th=
is
> bogus state...

This looks like the main server (localhost:8529). I also tried it with
my default httpd.conf with all vhosts removed and it segfaults too,
and the gdb output looks the same...

> So, how can sec_file ever be NULL ? From looking at this dconf dump, it's=
 clear

I don't know. One thing I remember now seeing during one of the first
mod_perl build was a warning that apxs -q PREFIX doesn't return a
valid value. I fixed it then by setting it to / in the apxs script.
Maybe I managed to screw up apaches build, setting prefix to NULL?

And indeed I found that the custom layout for apache has prefix set to
NULL there. So I have rebuilded everything (apache, mod_perl) with
prefix set to / in the layout and the warnings are gone now.
Unfortunately this didn't help at all for the segfaulting :(

> that this core_dir_config is at least partially initialized,
> add_default_charset_name being set to the right thing for instance.

Hope that helps and kind regards

Flavio Curti

--=20
http://no-way.org/~fcu/

(message missing)

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Philippe M. Chiasson 06:22 on 24 May 2005

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Philippe M. Chiasson 04:52 on 25 May 2005

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Philippe M. Chiasson 09:16 on 25 May 2005

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Flavio Curti 13:23 on 25 May 2005

Re: [mp2] segfaulting apache in ap_pcw_walk_files_config
Philippe M. Chiasson 09:23 on 26 May 2005

Generated at 20:12 on 05 Jun 2005 by mariachi v0.52