[PHP-users 2201] Segmentation fault

toyomi php-users@php.gr.jp
Fri, 21 Sep 2001 20:36:00 +0900

高橋@アイチと申します。この度本 ML に入会させていただきま

早速ですが、php にて実装した Web アプリケーションで、
Segmentation fault が発生し、困っております。gdb にてバック

Program received signal SIGSEGV, Segmentation fault.
0x40102085 in __mempcpy (dstpp=0x4033f000, srcpp=0x0, len=1000)
    at ../sysdeps/generic/mempcpy.c:57
57      ../sysdeps/generic/mempcpy.c: No such file or directory.
(gdb) bt                                            <- バックトレース
#0  0x40102085 in __mempcpy (dstpp=0x4033f000, srcpp=0x0, len=1000)
    at ../sysdeps/generic/mempcpy.c:57
#1  0x400f8d67 in _IO_default_xsputn (f=0x8239568, data=0x0, n=1000)
    at genops.c:398
#2  0x400f81f7 in _IO_new_file_xsputn (f=0x8239568, data=0x0, n=1000)
    at fileops.c:823
#3  0x400f4d9b in _IO_fwrite (buf=0x0, size=1, count=1000, fp=0x8239568)
    at iofwrite.c:44
#4  0x403dc362 in php_if_fwrite (ht=3, return_value=0x8147bac, this_ptr=0x0,
    return_value_used=1) at file.c:1177
#5  0x40372662 in execute (op_array=0x81e3b08) at ./zend_execute.c:1494
#6  0x4037287c in execute (op_array=0x81a5d88) at ./zend_execute.c:1534
#7  0x4037287c in execute (op_array=0x81bce4c) at ./zend_execute.c:1534
#8  0x40380850 in zend_execute_scripts (type=8, file_count=3) at zend.c:743
#9  0x40392a01 in php_execute_script (primary_file=0xbffff114) at main.c:1209
#10 0x4038f332 in apache_php_module_main (r=0x80efb44, display_source_mode=0)
    at sapi_apache.c:89
#11 0x4038fca3 in send_php (r=0x80efb44, display_source_mode=0, filename=0x0)
    at mod_php4.c:521
#12 0x4038fcd4 in send_parsed_php (r=0x80efb44) at mod_php4.c:532
#13 0x805345e in ap_invoke_handler ()
#14 0x80618fb in ap_some_auth_required ()
#15 0x8061958 in ap_process_request ()
#16 0x805b940 in ap_child_terminate ()
---Type <return> to continue, or q <return> to quit---
#17 0x805bb2f in ap_child_terminate ()
#18 0x805bddc in ap_child_terminate ()
#19 0x805c1b7 in ap_child_terminate ()
#20 0x805c65f in main ()
#21 0x400ba9cb in __libc_start_main (main=0x805c3e0 <main>, argc=7,
    argv=0xbffff394, init=0x804f014 <_init>, fini=0x807b99c <_fini>,
    rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffff38c)
    at ../sysdeps/generic/libc-start.c:92

    Red Hat Linux release 6.2 (Zoot)
    Kernel 2.2.14-5.0 on an i586
    PHP 4.0.5
    DB INFORMIX-SQL Version   7.30.UC5

なお、上記バックトレースは core を使わないで、httpd の pid 
を attach して行いました(core が上手く吐き出せないので)。


_/_/_/_/_/_/ 高橋@アイチ taka.toyomi@nifty.ne.jp _/_/_/_/_/_/