Normal php sig faluts
gdb output
leon@leon-laptop:~/web9-ef2c619c8749/php9p/examples$ gdb /opt/php-gtk/bin/php
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run ixpc.php tcp!plan9.kix.in!564 ls /
Starting program: /opt/php-gtk/bin/php ixpc.php tcp!plan9.kix.in!564 ls /
[Thread debugging using libthread_db enabled]
[New Thread -1212167520 (LWP 7214)]
d-rwxrwxr-x anant users Thu Oct 20 23:57:21 2005 9grid
d-r-xr-xr-x anant users Thu Oct 30 01:16:31 2003 adm
d-rwxrwxr-x anant users Mon Apr 16 20:19:53 2007 contrib
d-rwxrwxr-x anant users Mon Jun 25 08:09:25 2007 extra
d-rwxrwx--x anant users Wed Jun 20 19:41:38 2007 fastos
--rw-r--r-x anant users Sun Jul 8 22:37:01 2007 glenda.png
--rw-rw-r-x anant users Mon Jun 25 06:00:38 2007 lsr
d-rwxrwxrwx anant users Mon Jun 25 20:00:46 2007 patch
d-rwxrwxr-x anant users Fri May 11 14:59:01 2007 plan9
d-rwxrwxr-x anant users Tue Oct 11 10:00:52 2005 wiki
d-rwxrwxr-x anant users Fri Jul 14 00:17:58 2006 xen
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1212167520 (LWP 7214)]
_zend_mm_free_int (heap=0x83f81d8, p=<value optimized out>)
at /home/leon/dev/php-5.2.3/Zend/zend_alloc.c:1921
1921 if (ZEND_MM_IS_FREE_BLOCK(next_block)) {
(gdb) bt
#0 _zend_mm_free_int (heap=0x83f81d8, p=<value optimized out>)
at /home/leon/dev/php-5.2.3/Zend/zend_alloc.c:1921
#1 0x08292cc6 in zend_hash_destroy (ht=0xb7bc7f58)
at /home/leon/dev/php-5.2.3/Zend/zend_hash.c:526
#2 0x08288c65 in _zval_dtor_func (zvalue=0xb7bc7dd8)
at /home/leon/dev/php-5.2.3/Zend/zend_variables.c:43
#3 0x0827cf4f in _zval_ptr_dtor (zval_ptr=0xb7bceaec)
at /home/leon/dev/php-5.2.3/Zend/zend_variables.h:35
#4 0x08292eb6 in zend_hash_clean (ht=0xb7bc7e6c)
at /home/leon/dev/php-5.2.3/Zend/zend_hash.c:552
#5 0x082b45b8 in zend_do_fcall_common_helper_SPEC (execute_data=0xbfc0280c)
at /home/leon/dev/php-5.2.3/Zend/zend_vm_execute.h:255
#6 0x082a61c9 in execute (op_array=0xb7bc6e88)
at /home/leon/dev/php-5.2.3/Zend/zend_vm_execute.h:92
#7 0x08288f92 in zend_execute_scripts (type=8, retval=<value optimized out>,
file_count=3) at /home/leon/dev/php-5.2.3/Zend/zend.c:1134
#8 0x08248aa1 in php_execute_script (primary_file=0xbfc04bcc)
at /home/leon/dev/php-5.2.3/main/main.c:1794
#9 0x08301675 in main (argc=5, argv=0xbfc04ce4)
at /home/leon/dev/php-5.2.3/sapi/cli/php_cli.c:1138
(gdb)
debug php no sigfault
gdb output
leon@leon-laptop:~/web9-ef2c619c8749/php9p/examples$ gdb /opt/ixpc/bin/php
GNU gdb 6.4.90-debian
Copyright (C) 2006 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 "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(gdb) run ixpc.php tcp!plan9.kix.in!564 ls /
Starting program: /opt/ixpc/bin/php ixpc.php tcp!plan9.kix.in!564 ls /
[Thread debugging using libthread_db enabled]
[New Thread -1211672912 (LWP 7242)]
d-rwxrwxr-x anant users Thu Oct 20 23:57:21 2005 9grid
d-r-xr-xr-x anant users Thu Oct 30 01:16:31 2003 adm
d-rwxrwxr-x anant users Mon Apr 16 20:19:53 2007 contrib
d-rwxrwxr-x anant users Mon Jun 25 08:09:25 2007 extra
d-rwxrwx--x anant users Wed Jun 20 19:41:38 2007 fastos
--rw-r--r-x anant users Sun Jul 8 22:37:01 2007 glenda.png
--rw-rw-r-x anant users Mon Jun 25 06:00:38 2007 lsr
d-rwxrwxrwx anant users Mon Jun 25 20:00:46 2007 patch
d-rwxrwxr-x anant users Fri May 11 14:59:01 2007 plan9
d-rwxrwxr-x anant users Tue Oct 11 10:00:52 2005 wiki
d-rwxrwxr-x anant users Fri Jul 14 00:17:58 2006 xen
[Wed Jul 11 22:42:17 2007] Script: 'ixpc.php'
/home/leon/ixpc/web9-ef2c619c8749/php9p/ixp.c(555) : Freeing 0xB7C46510 (1024 bytes), script=ixpc.php
[Wed Jul 11 22:42:17 2007] Script: 'ixpc.php'
/home/leon/ixpc/web9-ef2c619c8749/php9p/ixp.c(556) : Freeing 0xB7C4693C (8168 bytes), script=ixpc.php
=== Total 2 memory leaks detected ===
Program exited normally.
(gdb) bt
No stack.