(gdb) run test.php Starting program: /usr/local/bin/php test.php [Thread debugging using libthread_db enabled] [New Thread -1218567072 (LWP 28992)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218567072 (LWP 28992)] 0x081d2f67 in ZEND_NEW_SPEC_HANDLER (execute_data=0xbfff8a70) at /root/php-5.1.6/Zend/zend_vm_execute.h:409 409 constructor = Z_OBJ_HT_P(object_zval)->get_constructor(object_zval TSRMLS_CC); (gdb) bt #0 0x081d2f67 in ZEND_NEW_SPEC_HANDLER (execute_data=0xbfff8a70) at /root/php-5.1.6/Zend/zend_vm_execute.h:409 #1 0x081d2499 in execute (op_array=0xa0a4474) at /root/php-5.1.6/Zend/zend_vm_execute.h:92 #2 0x081bd54e in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/php-5.1.6/Zend/zend.c:1109 #3 0x0818d184 in php_execute_script (primary_file=0xbfffae90) at /root/php-5.1.6/main/main.c:1737 #4 0x08216522 in main (argc=2, argv=0xbfffaf64) at /root/php-5.1.6/sapi/cli/php_cli.c:1093