Subscribed unsubscribe Subscribe Subscribe

2.2.3 で発生する謎の segfault

apache mod_dbd mod_authn_dbd

ここで挙げられている件ですね。

(gdb) bt
#0  0xb7ce6a0a in apr_hashfunc_default () from /usr/lib/libapr-1.so.0
#1  0xb7ce6bfd in apr_hash_first () from /usr/lib/libapr-1.so.0
#2  0xb7ce6ceb in apr_hash_get () from /usr/lib/libapr-1.so.0
#3  0xb77f7974 in ap_dbd_prepare () from /usr/lib/apache2/modules/mod_dbd.so
#4  0xb7f338a6 in ?? () from /usr/lib/apache2/modules/mod_authn_dbd.so
#5  0x080aa558 in ?? ()
#6  0x080fd968 in ?? ()
#7  0x080fd998 in ?? ()
#8  0xb7f351e0 in ?? () from /usr/lib/apache2/modules/mod_authn_dbd.so
#9  0xb7f351e0 in ?? () from /usr/lib/apache2/modules/mod_authn_dbd.so
#10 0xbf9e55dc in ?? ()
#11 0xbf9e53b8 in ?? ()
#12 0x080753d8 in ap_find_command_in_modules ()
#13 0x080753d8 in ap_find_command_in_modules ()
#14 0x08075b47 in ap_walk_config ()
#15 0x0806cb5c in ap_exists_config_define ()
#16 0x080753d8 in ap_find_command_in_modules ()
#17 0x08075b47 in ap_walk_config ()
#18 0x08075c50 in ap_process_config_tree ()
#19 0x08061fbc in main ()

こんな感じの backtrace が採取できます。何が悪いかはこの投稿により明らかに。

引用:

On Wed, 15 Nov 2006 11:51:49 +0100
"Sascha Kersken" wrote:

> Hi,
>
> >> /usr/local/apache2/bin/apachectl: line 78: 24956 Segmentation
> >> fault $HTTPD -k $ARGV

> > Can you post a backtrace?

> [chop]

Erk! That's a bug I thought was fixed, and appears to come from
your not having a server name. It is fixed in /trunk/, but not 2.2.3.

Thanks for the report!

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

ServerName を指定しないことで発生する妙な不具合って Apache のモジュールにはつきものなんだった。そういえば。
mod_jk でも ServerName 指定しないではまった覚えが ><