[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: OPENBSD_2_9 (SEMMNI, SEMMNS, SHMMAXPGS): httpd Memory fault(core dumped)
Heikki Korpela wrote:
> On Wed, 4 Jul 2001, Alexander Farber (EED) wrote:
> > > echo "CFLAGS+=-O0 -g2" >> /etc/mk.conf
> > > cd /usr/src/usr.sbin/httpd
> > > make -f Makefile.bsd-wrapper cleandir
> > > rm -f config.status
> > > make -f Makefile.bsd-wrapper prereq all
> > > sudo
> > > make -f Makefile.bsd-wrapper install
>
> > I've followed your instructions,
> > but this unfortunately doesn't work:
>
> Oops! Seems like I have INSTALL_STRIP= in /etc/mk.conf too :-)
You are correct - I already had this once -
Apache strips binary during "make install"
( http://perl.apache.org/guide/debug.html#gdb_says_there_are_no_debugging_ )
So I have reinstalled it:
pref# httpd
Segmentation fault (core dumped)
pref# gdb -core httpd.core `which httpd`
GNU gdb 4.16.1
Copyright 1996 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-unknown-openbsd2.9"...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/lib/libssl.so.4.1...done.
Reading symbols from /usr/lib/libcrypto.so.4.1...done.
Reading symbols from /usr/lib/libc.so.26.2...done.
Reading symbols from /usr/lib/apache/modules/mod_perl.so...done.
Reading symbols from /usr/lib/libperl.so.6.0...done.
Reading symbols from /usr/lib/libm.so.0.1...done.
#0 0x658c6 in ap_get_local_host (a=0xab00c) at util.c:2051
2051 if (p->h_addr_list[0]) {
(gdb) bt
#0 0x658c6 in ap_get_local_host (a=0xab00c) at util.c:2051
#1 0x610a1 in ap_fini_vhost_config (p=0xab00c, main_s=0xab034) at http_vhost.c:548
#2 0x45a11 in ap_read_config (p=0xab00c, ptemp=0xb100c,
confname=0x9f99c "conf/httpd.conf") at http_config.c:1653
#3 0x557a2 in main (argc=1, argv=0xdfbfd830) at http_main.c:5088
(gdb) quit
And no, it's not mod_perl.so related - I get the same
when I comment the line in /var/www/conf/httpd.conf
#LoadModule perl_module /usr/lib/apache/modules/mod_perl.so
pref# vim /var/www/conf/httpd.conf
pref# httpd
Segmentation fault (core dumped)
pref# gdb -core httpd.core `which httpd`
GNU gdb 4.16.1
Copyright 1996 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-unknown-openbsd2.9"...
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.so...done.
Reading symbols from /usr/lib/libssl.so.4.1...done.
Reading symbols from /usr/lib/libcrypto.so.4.1...done.
Reading symbols from /usr/lib/libc.so.26.2...done.
#0 0x658c6 in ap_get_local_host (a=0xab00c) at util.c:2051
2051 if (p->h_addr_list[0]) {
(gdb) where
#0 0x658c6 in ap_get_local_host (a=0xab00c) at util.c:2051
#1 0x610a1 in ap_fini_vhost_config (p=0xab00c, main_s=0xab034) at http_vhost.c:548
#2 0x45a11 in ap_read_config (p=0xab00c, ptemp=0xb100c,
confname=0x9f99c "conf/httpd.conf") at http_config.c:1653
#3 0x557a2 in main (argc=1, argv=0xdfbfd830) at http_main.c:5088
(gdb)
So, there is a problem with httpd in OPENBSD_2_9, when
the ServerName is unset in /var/www/conf/httpd.conf.
Regards
Alex
PS: Please stop sending me the sig11 URL - it's just annoying