[PHP-users 6771] Re: PHP4.2.0RC2 のバグ?(mb_output_handler とxslt_process)

SHIMOOKA Hideyuki php-users@php.gr.jp
Tue, 9 Apr 2002 18:20:32 +0900


下岡です。

---- Yasuo Ohgakiさん曰く...

>どこが悪いのか見当が付かないので、backtraceをお願いします。
>
>http://bugs.php.net/bugs-generating-backtrace.php
>
>もし関数名("zif_"プレフィックスで始まります)がフレーム中に
>ない場合は記載された手順にしたがって、最後のexecute()コール
>フレームから関数名を取得してください。

大垣さん、ありがとうございます。

試してみた結果は以下のようになり、「zif_」で検索すると、
zif_mb_output_handlerがマッチします。

----ここから

# gdb /usr/local/apache/bin/httpd 
GNU gdb 5.0
Copyright 2000 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-redhat-linux"...
(gdb) run -X
Starting program: /usr/local/apache/bin/httpd -X
[New Thread 1024 (runnable)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (runnable)]
0x2abbd57b in strlen (str=0x0) at ../sysdeps/i386/strlen.c:27
27	../sysdeps/i386/strlen.c: そのようなファイルやディレクトリはありません.
(gdb) bt
#0  0x2abbd57b in strlen (str=0x0) at ../sysdeps/i386/strlen.c:27
#1  0x7fffed88 in ?? ()
#2  0x2b5838e3 in zif_mb_output_handler (ht=2, return_value=0x8126d8c, 
    this_ptr=0x0, return_value_used=1) at mbstring.c:1479
#3  0x2b53cff2 in call_user_function_ex (function_table=0x80ca408, 
    object_pp=0x0, function_name=0x811358c, retval_ptr_ptr=0x7fffee40, 
    param_count=2, params=0x7fffedf4, no_separation=1, symbol_table=0x0)
    at zend_execute_API.c:532
#4  0x2b564549 in php_end_ob_buffer (send_buffer=1 '\001', just_flush=0 '\000')
    at output.c:175
#5  0x2b56496f in php_end_ob_buffers (send_buffer=1 '\001') at output.c:264
#6  0x2b5598c9 in php_request_shutdown (dummy=0x0) at main.c:763
#7  0x2b555d2f in apache_php_module_main (r=0x80fe73c, display_source_mode=0)
    at sapi_apache.c:96
#8  0x2b556b00 in send_php (r=0x80fe73c, display_source_mode=0, 
    filename=0x80ff28c "/home/shimooka/public_html/sample/xml/xslt/4.1.1/xslt_process3.php") at mod_php4.c:575
#9  0x2b556b7c in send_parsed_php (r=0x80fe73c) at mod_php4.c:590
#10 0x8053d73 in ap_invoke_handler ()
#11 0x80678a9 in process_request_internal ()
#12 0x806790c in ap_process_request ()
#13 0x805eeee in child_main ()
#14 0x805f07c in make_child ()
#15 0x805f1d9 in startup_children ()
#16 0x805f816 in standalone_main ()
#17 0x805ffa3 in main ()
---Type <return> to continue, or q <return> to quit---
#18 0x2ab7fa1e in __libc_start_main (main=0x805fc5c <main>, argc=2, 
    argv=0x7ffff6b4, init=0x804e218 <_init>, fini=0x807cd3c <_fini>, 
    rtld_fini=0x2aab5cf0 <_dl_fini>, stack_end=0x7ffff6ac)
    at ../sysdeps/generic/libc-start.c:92
(gdb) 

----ここまで

-- 
H.Shimooka/shimooka@axissoft.co.jp