[nycphp-talk] PHP segmentation fault with custom-compiled binaries - Zen Cart
Jayesh Sheth
jayeshsh at ceruleansky.com
Sat Feb 12 11:02:01 EST 2005
Hello all,
Regarding my previous post - here is a backtrace produced by the gdb
debugger when PHP (5) crashes. This was produced by a debug build, with
the same configuration.
I also forgot to mention in my previous post that this error includes
when index.php (of Zen Cart) includes the file
'includes/application_top.php'.
Does it seem to be a problem with MySQL ?
-------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 1602)]
0x40501219 in malloc () from /lib/libc.so.6
(gdb) bt
#0 0x40501219 in malloc () from /lib/libc.so.6
#1 0x40501074 in malloc () from /lib/libc.so.6
#2 0x404f4681 in fopen () from /lib/libc.so.6
#3 0x4056d3cf in __res_ninit () from /lib/libc.so.6
#4 0x4056d1a0 in __res_ninit () from /lib/libc.so.6
#5 0x40570429 in __nss_hostname_digits_dots () from /lib/libc.so.6
#6 0x40572268 in gethostbyname_r () from /lib/libc.so.6
#7 0x40099c6e in my_gethostbyname_r () from /usr//lib/libmysqlclient.14
#8 0x400abe06 in mysql_real_connect () from /usr//lib/libmysqlclient.14
#9 0x080f7071 in php_mysql_do_connect (ht=3, return_value=0x8530acc,
this_ptr=0x0, return_value_used=1, persistent=1)
at /home/singerm/src/php-5.0.3/ext/mysql/php_mysql.c:679
#10 0x080f785c in zif_mysql_pconnect (ht=3, return_value=0x8530acc,
this_ptr=0x0, return_value_used=1)
at /home/singerm/src/php-5.0.3/ext/mysql/php_mysql.c:843
#11 0x082b51d8 in zend_do_fcall_common_helper (execute_data=0xbfffb940,
opline=0x8513adc, op_array=0x8512d4c)
at /home/singerm/src/php-5.0.3/Zend/zend_execute.c:2711
#12 0x082b5887 in zend_do_fcall_handler (execute_data=0xbfffb940,
opline=0x8513adc, op_array=0x8512d4c)
at /home/singerm/src/php-5.0.3/Zend/zend_execute.c:2843
#13 0x082b1ce2 in execute (op_array=0x8512d4c)
at /home/singerm/src/php-5.0.3/Zend/zend_execute.c:1400
#14 0x082b5349 in zend_do_fcall_common_helper (execute_data=0xbfffba10,
opline=0x40764e28, op_array=0x84de54c)
at /home/singerm/src/php-5.0.3/Zend/zend_execute.c:2740
#15 0x082b5796 in zend_do_fcall_by_name_handler (execute_data=0xbfffba10,
opline=0x40764e28, op_array=0x84de54c)
at /home/singerm/src/php-5.0.3/Zend/zend_execute.c:2825
#16 0x082b1ce2 in execute (op_array=0x84de54c)
at /home/singerm/src/php-5.0.3/Zend/zend_execute.c:1400
#17 0x082b73b7 in zend_include_or_eval_handler (execute_data=0xbfffce50,
opline=0x84e35c4, op_array=0x84d823c)
at /home/singerm/src/php-5.0.3/Zend/zend_execute.c:3565
#18 0x082b1ce2 in execute (op_array=0x84d823c)
at /home/singerm/src/php-5.0.3/Zend/zend_execute.c:1400
#19 0x0828cb09 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /home/singerm/src/php-5.0.3/Zend/zend.c:1069
#20 0x0824a553 in php_execute_script (primary_file=0xbffff1a8)
at /home/singerm/src/php-5.0.3/main/main.c:1628
#21 0x082be78c in main (argc=2, argv=0xbffff244)
at /home/singerm/src/php-5.0.3/sapi/cgi/cgi_main.c:1568
------------------------------------------------------
Thanks in advance.
- Jay
More information about the talk
mailing list