[nycphp-talk] compiled PHP 5.1 seg faults - gdb bt interpretation
Jayesh Sheth
jay_nyphp at fastmail.fm
Wed Jun 22 11:43:16 EDT 2005
Hello all,
I downloaded PHP 5.1 beta and tried to compile it with:
'./configure' '--prefix=/home/jay/php5_1' '--disable-cgi' '--enable-cli'
'--with-xml' '--with-libxml-dir=/home/jay/php/lib'
'--with-config-file-path=/home/jay/etc/php5' '--without-pear'
'--enable-debug'
PHP 5.1 (unlike PHP 5.0) seems to need libxml2.
It compiles okay, but when I do ./php --version it seg faults.
Here is the GDB output. I was hoping someone had insight into what is
causing it.
Thanks in advance,
- Jay
jay at jay:~/php5_1/bin$ gdb /home/jay/php5_1/bin/php
GNU gdb 6.3-debian
Copyright 2004 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-linux"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".
(gdb) run
Starting program: /home/jay/php5_1/bin/php
[Thread debugging using libthread_db enabled]
[New Thread 1076826240 (LWP 3654)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1076826240 (LWP 3654)]
0x0825f7d1 in _zend_is_inconsistent (ht=0xa4,
file=0x8338ee0 "/home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_hash.c",
line=815) at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_hash.c:53
53 if (ht->inconsistent==HT_OK) {
(gdb) bt
#0 0x0825f7d1 in _zend_is_inconsistent (ht=0xa4,
file=0x8338ee0 "/home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_hash.c",
line=815) at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_hash.c:53
#1 0x08261b57 in zend_hash_merge_ex (target=0x83ba45c, source=0xa4,
pCopyConstructor=0x8256647 <zval_add_ref>, size=4,
pMergeSource=0x8244756 <do_inherit_constant_check>, pParam=0x0)
at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_hash.c:815
#2 0x08244805 in zend_do_implement_interface (ce=0x83ba3b8, iface=0x0)
at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_compile.c:2149
#3 0x0825d51e in zend_class_implements (class_entry=0x83ba3b8,
num_interfaces=-1)
at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_API.c:1665
#4 0x0812567b in zm_startup_sqlite (type=1, module_number=4)
at /home/jay/php-5.1.0b1/php-5.1.0b1/ext/sqlite/sqlite.c:1028
#5 0x0825c233 in zend_register_module_ex (module=0x83b7730)
at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_API.c:1246
#6 0x0825c2ad in zend_startup_module (module=0x835f760)
at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_API.c:1265
#7 0x0820f067 in php_startup_extensions (ptr=0x836edcc, count=15)
at /home/jay/php-5.1.0b1/php-5.1.0b1/main/main.c:1298
#8 0x082dee7a in php_startup_internal_extensions ()
at main/internal_functions_cli.c:71
#9 0x0820f6fe in php_module_startup (sf=0x836ed20,
additional_modules=0x0,
---Type <return> to continue, or q <return> to quit---
num_additional_modules=0)
at /home/jay/php-5.1.0b1/php-5.1.0b1/main/main.c:1483
#10 0x082dda7b in main (argc=1, argv=0xbffff914)
at /home/jay/php-5.1.0b1/php-5.1.0b1/sapi/cli/php_cli.c:653
(gdb)
More information about the talk
mailing list