Red Hat Bugzilla – Bug 57432
Last modified: 2007-04-18 12:38:40 EDT
Description of Problem:
My custom httpd.conf causes apache to segfault when it receives a connection.
Version-Release number of selected component (if applicable):
$ rpm -q apache
Works every time for me (on a dual P3).
Steps to Reproduce:
Copy the (shortly to be attached) httpd.conf to /etc/httpd/conf and restart
apache. Upon connect, we see:
[Wed Dec 12 13:20:52 2001] [notice] child pid 5345 exit signal Segmentation
Created attachment 40475 [details]
Apache config file
More info -- it's an SSL thing
I managed to run it under gdb (with "-X") and got:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 10270)]
0x403ddc66 in ssl_hook_NewConnection () from /etc/httpd/modules/libssl.so
#0 0x403ddc66 in ssl_hook_NewConnection () from /etc/httpd/modules/libssl.so
#1 0x0805e3c6 in ap_start_restart () at eval.c:41
#2 0x0805f656 in ap_child_terminate () at eval.c:41
#3 0x0805f83a in ap_child_terminate () at eval.c:41
#4 0x0805f97d in ap_child_terminate () at eval.c:41
#5 0x0805ffcd in ap_child_terminate () at eval.c:41
#6 0x080608c3 in main () at eval.c:41
#7 0x4016f507 in __libc_start_main (main=0x8060440 <main>, argc=40,
ubp_av=0xbffff544, init=0x804f344 <_init>, fini=0x8074b20 <_fini>,
rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffff53c)
This still happens with the 1.3.22 update. If I remove the SSL bits from the
config file, all seems fine.
Of course, it has no business trying SSL stuff when I connect on port 80 anyway,
so I guess there's something up with my config file. Hardly excuses a segfault,
Oops, forgot to mention SSL details. I've tried with and without the mod_ssl
update. I'm now on:
$ rpm -q apache mod_ssl openssl
and the same still happens. The new backtrace is the same, modulo a couple of
symbols in mod_ssl moving by a few bytes.
I've started getting segfaults with apache, and I'm not using SSL, and don't
have any mention of ssl in my conf file. I'll attach my conf file next.
Created attachment 51665 [details]
Conf file for apache that causes segfaults
Ok, I'm not certain what exactly I fixed, but I utiized the httpd.conf.rpmnew
file and changed or added only what I knew to be important, and that fixed the
problem with the segfault.
Thanks for the report. This is a mass bug update; since this release
of Red Hat Linux is no longer supported, please either:
a) try and reproduce the bug with a supported version of Red Hat
Enterprise Linux or Fedora Core, and re-open this bug as appropriate
after changing the Product field, or,
b) if relevant, try and reproduce this bug using the current version
of the upstream package, and report the bug upstream.