Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Mar 2005 12:10:55 -0800
From:      Kyle Mott <kyle@xraided.net>
To:        "Michael C. Shultz" <ringworm01@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Apache Signal 11 (5.3-RELEASE-p3/4)
Message-ID:  <4239E44F.3080706@xraided.net>
In-Reply-To: <200503171035.16483.ringworm01@gmail.com>
References:  <6.2.1.2.0.20050315112131.054b56f8@64.7.153.2> <4239B796.80303@errno.com> <4239CC6A.7050402@xraided.net> <200503171035.16483.ringworm01@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I took your advice and rebuilt apache with debugging symbols, and came 
up with this (following http://httpd.apache.org/dev/debugging.html):
root@logsrv:/usr/ports/www/apache13-modssl# gdb httpd
(gdb) b ap_process_request
Breakpoint 1 at 0x8064944: file http_request.c, line 1311.
(gdb) run -X -d /usr/local
Starting program: /usr/local/sbin/httpd -X -d /usr/local
[Thu Mar 17 12:02:38 2005] [warn] NameVirtualHost *:443 has no VirtualHosts
gdb in realloc(): error: junk pointer, too high to make sense
Abort (core dumped)

If I run 'gdb httpd httpd.core' and then run 'where', I get the 
following (though I have no idea if it is relavant). Sorry for the long 
paste:
root@logsrv:/usr/ports/www/apache13-modssl# gdb httpd httpd.core
warning: exec file is newer than core file.
Core was generated by `httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.2...done.
Loaded symbols for /lib/libcrypt.so.2
Reading symbols from /usr/local/lib/libmm.so.13...done.
Loaded symbols for /usr/local/lib/libmm.so.13
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /usr/local/libexec/apache/mod_mmap_static.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_mmap_static.so
Reading symbols from /usr/local/libexec/apache/mod_vhost_alias.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_vhost_alias.so
Reading symbols from /usr/local/libexec/apache/mod_env.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_env.so
Reading symbols from /usr/local/libexec/apache/mod_define.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_define.so
Reading symbols from /usr/local/libexec/apache/mod_log_config.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_log_config.so
Reading symbols from /usr/local/libexec/apache/mod_mime_magic.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime_magic.so
Reading symbols from /usr/local/libexec/apache/mod_mime.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_mime.so
Reading symbols from /usr/local/libexec/apache/mod_negotiation.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_negotiation.so
Reading symbols from /usr/local/libexec/apache/mod_status.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_status.so
Reading symbols from /usr/local/libexec/apache/mod_info.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_info.so
Reading symbols from /usr/local/libexec/apache/mod_include.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_include.so
Reading symbols from /usr/local/libexec/apache/mod_autoindex.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_autoindex.so
Reading symbols from /usr/local/libexec/apache/mod_dir.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_dir.so
Reading symbols from /usr/local/libexec/apache/mod_cgi.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_cgi.so
Reading symbols from /usr/local/libexec/apache/mod_asis.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_asis.so
Reading symbols from /usr/local/libexec/apache/mod_imap.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_imap.so
Reading symbols from /usr/local/libexec/apache/mod_actions.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_actions.so
Reading symbols from /usr/local/libexec/apache/mod_speling.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_speling.so
Reading symbols from /usr/local/libexec/apache/mod_userdir.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_userdir.so
Reading symbols from /usr/local/libexec/apache/mod_alias.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_alias.so
Reading symbols from /usr/local/libexec/apache/mod_rewrite.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_rewrite.so
Reading symbols from /usr/local/libexec/apache/mod_access.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_access.so
Reading symbols from /usr/local/libexec/apache/mod_auth.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_auth.so
Reading symbols from /usr/local/libexec/apache/mod_auth_anon.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_auth_anon.so
Reading symbols from /usr/local/libexec/apache/mod_auth_db.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_auth_db.so
Reading symbols from /usr/local/libexec/apache/mod_digest.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_digest.so
Reading symbols from /usr/local/libexec/apache/libproxy.so...done.
Loaded symbols for /usr/local/libexec/apache/libproxy.so
Reading symbols from /usr/local/libexec/apache/mod_cern_meta.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_cern_meta.so
Reading symbols from /usr/local/libexec/apache/mod_expires.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_expires.so
Reading symbols from /usr/local/libexec/apache/mod_headers.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_headers.so
Reading symbols from /usr/local/libexec/apache/mod_usertrack.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_usertrack.so
Reading symbols from /usr/local/libexec/apache/mod_log_forensic.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_log_forensic.so
Reading symbols from /usr/local/libexec/apache/mod_unique_id.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_unique_id.so
Reading symbols from /usr/local/libexec/apache/mod_setenvif.so...done.
Loaded symbols for /usr/local/libexec/apache/mod_setenvif.so
Reading symbols from /usr/local/libexec/apache/libssl.so...done.
Loaded symbols for /usr/local/libexec/apache/libssl.so
Reading symbols from /usr/lib/libssl.so.3...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /lib/libcrypto.so.3...done.
Loaded symbols for /lib/libcrypto.so.3
Reading symbols from /usr/local/libexec/apache/libphp4.so...done.
Loaded symbols for /usr/local/libexec/apache/libphp4.so
Reading symbols from /lib/libm.so.3...done.
Loaded symbols for /lib/libm.so.3
Reading symbols from /usr/local/lib/php/20020429/ctype.so...done.
Loaded symbols for /usr/local/lib/php/20020429/ctype.so
Reading symbols from /usr/local/lib/php/20020429/curl.so...done.
Loaded symbols for /usr/local/lib/php/20020429/curl.so
Reading symbols from /usr/local/lib/libcurl.so.3...done.
Loaded symbols for /usr/local/lib/libcurl.so.3
Reading symbols from /lib/libz.so.2...done.
Loaded symbols for /lib/libz.so.2
Reading symbols from /usr/local/lib/php/20020429/exif.so...done.
Loaded symbols for /usr/local/lib/php/20020429/exif.so
Reading symbols from /usr/local/lib/php/20020429/ftp.so...done.
Loaded symbols for /usr/local/lib/php/20020429/ftp.so
Reading symbols from /usr/local/lib/php/20020429/gd.so...done.
Loaded symbols for /usr/local/lib/php/20020429/gd.so
Reading symbols from /usr/local/lib/libt1.so.5...done.
Loaded symbols for /usr/local/lib/libt1.so.5
Reading symbols from /usr/local/lib/libfreetype.so.9...done.
Loaded symbols for /usr/local/lib/libfreetype.so.9
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Loaded symbols for /usr/X11R6/lib/libXpm.so.4
Reading symbols from /usr/local/lib/libpng.so.5...done.
Loaded symbols for /usr/local/lib/libpng.so.5
Reading symbols from /usr/local/lib/libjpeg.so.9...done.
Loaded symbols for /usr/local/lib/libjpeg.so.9
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/local/lib/php/20020429/ldap.so...done.
Loaded symbols for /usr/local/lib/php/20020429/ldap.so
Reading symbols from /usr/local/lib/libldap-2.2.so.7...done.
Loaded symbols for /usr/local/lib/libldap-2.2.so.7
Reading symbols from /usr/local/lib/liblber-2.2.so.7...done.
Loaded symbols for /usr/local/lib/liblber-2.2.so.7
Reading symbols from /usr/local/lib/php/20020429/mbstring.so...done.
Loaded symbols for /usr/local/lib/php/20020429/mbstring.so
Reading symbols from /usr/local/lib/php/20020429/mysql.so...done.
Loaded symbols for /usr/local/lib/php/20020429/mysql.so
Reading symbols from /usr/local/lib/mysql/libmysqlclient.so.14...done.
Loaded symbols for /usr/local/lib/mysql/libmysqlclient.so.14
Reading symbols from /usr/local/lib/php/20020429/openssl.so...done.
Loaded symbols for /usr/local/lib/php/20020429/openssl.so
Reading symbols from /usr/local/lib/php/20020429/overload.so...done.
Loaded symbols for /usr/local/lib/php/20020429/overload.so
Reading symbols from /usr/local/lib/php/20020429/pcre.so...done.
Loaded symbols for /usr/local/lib/php/20020429/pcre.so
Reading symbols from /usr/local/lib/php/20020429/pgsql.so...done.
Loaded symbols for /usr/local/lib/php/20020429/pgsql.so
Reading symbols from /usr/local/lib/libpq.so.3...done.
Loaded symbols for /usr/local/lib/libpq.so.3
Reading symbols from /usr/local/lib/libintl.so.6...done.
Loaded symbols for /usr/local/lib/libintl.so.6
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/php/20020429/posix.so...done.
Loaded symbols for /usr/local/lib/php/20020429/posix.so
Reading symbols from /usr/local/lib/php/20020429/session.so...done.
Loaded symbols for /usr/local/lib/php/20020429/session.so
Reading symbols from /usr/local/lib/php/20020429/snmp.so...done.
Loaded symbols for /usr/local/lib/php/20020429/snmp.so
Reading symbols from /usr/local/lib/libnetsnmp.so.7...done.
Loaded symbols for /usr/local/lib/libnetsnmp.so.7
Reading symbols from /lib/libkvm.so.2...done.
Loaded symbols for /lib/libkvm.so.2
Reading symbols from /lib/libdevstat.so.4...done.
Loaded symbols for /lib/libdevstat.so.4
Reading symbols from /usr/lib/libwrap.so.3...done.
Loaded symbols for /usr/lib/libwrap.so.3
Reading symbols from /usr/local/lib/php/20020429/tokenizer.so...done.
Loaded symbols for /usr/local/lib/php/20020429/tokenizer.so
Reading symbols from /usr/local/lib/php/20020429/xml.so...done.
Loaded symbols for /usr/local/lib/php/20020429/xml.so
Reading symbols from /usr/local/lib/libexpat.so.5...done.
Loaded symbols for /usr/local/lib/libexpat.so.5
Reading symbols from /usr/local/lib/php/20020429/zlib.so...done.
Loaded symbols for /usr/local/lib/php/20020429/zlib.so
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x28456711 in engine_table_select () from /lib/libcrypto.so.3
(gdb) where
#0  0x28456711 in engine_table_select () from /lib/libcrypto.so.3
#1  0x28434c9d in ENGINE_get_default_RSA () from /lib/libcrypto.so.3
#2  0x28433071 in RSA_new_method () from /lib/libcrypto.so.3
#3  0x28432eea in RSA_new () from /lib/libcrypto.so.3
#4  0x2844c7e8 in RSAPrivateKey_asn1_meth () from /lib/libcrypto.so.3
#5  0x284588a6 in ASN1_item_ex_new () from /lib/libcrypto.so.3
#6  0x284586c3 in ASN1_item_ex_new () from /lib/libcrypto.so.3
#7  0x2845421c in ASN1_item_ex_d2i () from /lib/libcrypto.so.3
#8  0x28453c85 in ASN1_item_d2i () from /lib/libcrypto.so.3
#9  0x2844c847 in d2i_RSAPrivateKey () from /lib/libcrypto.so.3
#10 0x283553c9 in ssl_init_TmpKeysHandle (action=136421392, s=0x809b038, 
p=0x809b010) at ssl_engine_init.c:428
#11 0x28354fc0 in ssl_init_Module (s=0x809b038, p=0x809b010) at 
ssl_engine_init.c:234
#12 0x08055946 in ap_init_modules (p=0x809b010, s=0x809b038) at 
http_config.c:1664
#13 0x0805de5d in standalone_main (argc=2, argv=0xbfbfec60) at 
http_main.c:5379
#14 0x0805e647 in main (argc=2, argv=0xbfbfec60) at http_main.c:5767



-Kyle Mott


Michael C. Shultz wrote:

>On Thursday 17 March 2005 10:28 am, Kyle Mott wrote:
>  
>
>>I've already sent this question to freebsd-questions; forgive me if
>>this is the wrong list.
>>
>>This just very recently started to happen (and I haven't upgraded
>>Apache as of late either, or any other software for that matter). I
>>keep getting this in my kernel.log on 2 different hosts:
>>Mar 17 09:34:16 logsrv pid 38069 (httpd), uid 0: exited on signal 11
>>(core dumped)
>>Mar 17 00:34:25 g1bs0n kernel: pid 9419 (httpd), uid 0: exited on
>>signal 11 (core dumped)
>>
>>Both hosts are running 'apache+mod_ssl-1.3.33+2.8.22' plus
>>'php4-4.3.10', and a bunch of php modules that I don't want to list.
>>i was able to get Apache running on g1bs0n by not starting ssl;
>>however, Apache won't start on logsrv at all.
>>
>>Looking up man signal, SIGSEGV (11) is a segmentation violation. What
>>can cause this on 2 different machines that haven't been updated in a
>>while? I'm currently running a ports-cvsup, to verify that
>>apache+mod_ssl either does or does not need to be updated.
>>
>>
>>
>>-Kyle Mott
>>    
>>
>
>Just a suggestion....
>
>Build Apache with debug support, do a back trace on the .core file with
>GDB.  That will let you narrow down the problem a bit. Then notify the 
>ports maintainer.
>
>-Mike
>
>_______________________________________________
>freebsd-stable@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-stable
>To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>  
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4239E44F.3080706>