小島です。

Apache のコンパイル直後の src ディレクトリ内の httpsd で
「truss -f ./httpsd」
してみました。
以下は最後から20行の引用ですが何かわかりますでしょうか?

23168: stat("/usr/local/apache/conf/access.conf",0xbfbfe0c0) = 0 (0x0)
23168: lstat("/usr/local/apache/conf/access.conf",0xbfbfdff0) = 0 (0x0)
23168: open("/usr/local/apache/conf/access.conf",0x0,0666) = 4 (0x4)
23168: fstat(4,0xbfbfdfe0)                       = 0 (0x0)
23168: fstat(4,0xbfbfbee0)                       = 0 (0x0)
23168: read(0x4,0x8072000,0x1000)                = 351 (0x15f)
23168: read(0x4,0x8072000,0x1000)                = 0 (0x0)
23168: close(4)                                  = 0 (0x0)
23168: break(0x844d000)                          = 0 (0x0)
23168: break(0x844f000)                          = 0 (0x0)
23168: break(0x8451000)                          = 0 (0x0)
23168: break(0x8453000)                          = 0 (0x0)
23168: break(0x8455000)                          = 0 (0x0)
23168: break(0x8457000)                          = 0 (0x0)
23168: break(0x8459000)                          = 0 (0x0)
23168: __sysctl(0xbfbfdbc8,0x2,0xbfbfdc10,0xbfbfdbe4,0x0,0x0) = 0 (0x0)
SIGNAL 11 (SIGSEGV)
SIGNAL 11 (SIGSEGV)
Process stopped because of:  16
process exit, rval = 139

>> ■gdbコマンドの実行結果です。
>> gdb /usr/local/apache/bin/httpsd /libhttpsd.ep.core
>> ...
>> warning: core file may not match specified executable file.
> なんか、core ファイルを間違えてないですか?

日時で確認してみましたが「/usr/local/apache/bin/httpsdctl start」の
実行直後にルート直下に「libhttpsd.ep.core」を出力しているようです。

コンパイル直後の httpsd で
gdb /usr/local/src/apache_1.3.34/src/httpsd ./libhttpsd.ep.core
と実行してみましたところ以下のようになりました。

warning: core file may not match specified executable file.
Core was generated by `libhttpsd.ep'.
Program terminated with signal 11, Segmentation fault.
#0  0x28f62fa8 in ?? ()
(gdb) bt
#0  0x28f62fa8 in ?? ()
#1  0x282ba8aa in ?? ()
#2  0x282ea508 in ?? ()

〜途中省略〜

#33 0x2828063b in ?? ()
#34 0x0804a080 in ap_vformatter (flush_func=0x280ecb78, vbuff=0x0,
fmt=0xbfbfdd28 "x眩ソンs\n(\f濬004\b",
    ap=0x280b284e <Address 0x280b284e out of bounds>) at ap_snprintf.c:831
Previous frame inner to this frame (corrupt stack?)
(gdb)

--
小島

メールによる返信