From: bvaughan at fame dot com
Operating system: Solaris 8
PHP version: 4.3.2
PHP Bug Type: Reproducible crash
Bug description: Segmentation fault
Description:
------------
I am using php 4.3.2 with Apache1.3.28 on Solaris 8. The seg fau occurs
while accessing the 1st index.html page of PostNuke, but I dont know what
specific call is causing it beyond the backtrace below.
My compile line
--with-mysql=/usr/local/mysql' '--with-apxs=/disk1/apache/bin/apxs'
'--with-mnogosearch=/disk2/mnogosearch'
'--enable-debug'
No changes have been made to the default ini file.
Reproduce code:
---------------
error occurs with an otherwise stable 3-rd party product, postNuke0.726
Expected result:
----------------
I expect to see the main index.html page.
Actual result:
--------------
A blank screen, or the browser just spins, or IE reports:
The page cannot be displayed.
(gdb) run -X
Starting program: /disk1/apache/./bin/httpd -X
[New LWP 1]
[New LWP 2]
[New LWP 3]
[New LWP 4]
Program received signal SIGSEGV, Segmentation fault.
0xff1b319c in strlen () from /usr/lib/libc.so.1
(gdb) bt
#0 0xff1b319c in strlen () from /usr/lib/libc.so.1
#1 0xfe6c9a34 in add_property_string_ex (arg=0x3f42f0, key=0xfe71f1a8
"def", key_len=4,
str=0xb <Address 0xb out of bounds>, duplicate=1) at
/disk2/source/php/releases/php-4.3.2/Zend/zend_API.c:978
#2 0xfe55ba7c in zif_mysql_fetch_field (ht=2, return_value=0x3f42f0,
this_ptr=0x0, return_value_used=1)
at /disk2/source/php/releases/php-4.3.2/ext/mysql/php_mysql.c:2124
#3 0xfe6e0800 in execute (op_array=0x2eac78) at
/disk2/source/php/releases/php-4.3.2/Zend/zend_execute.c:1606
#4 0xfe6e0b38 in execute (op_array=0x2ec000) at
/disk2/source/php/releases/php-4.3.2/Zend/zend_execute.c:1650
#5 0xfe6e0b38 in execute (op_array=0x25d6c8) at
/disk2/source/php/releases/php-4.3.2/Zend/zend_execute.c:1650
#6 0xfe6e0b38 in execute (op_array=0x2ec0f8) at
/disk2/source/php/releases/php-4.3.2/Zend/zend_execute.c:1650
#7 0xfe6e0b38 in execute (op_array=0x3e44c8) at
/disk2/source/php/releases/php-4.3.2/Zend/zend_execute.c:1650
#8 0xfe6e3638 in execute (op_array=0x15d230) at
/disk2/source/php/releases/php-4.3.2/Zend/zend_execute.c:2173
#9 0xfe6e0b38 in execute (op_array=0x130490) at
/disk2/source/php/releases/php-4.3.2/Zend/zend_execute.c:1650
#10 0xfe6c5754 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /disk2/source/php/releases/php-4.3.2/Zend/zend.c:869
#11 0xfe6694a0 in php_execute_script (primary_file=0xffbef478) at
/disk2/source/php/releases/php-4.3.2/main/main.c:1671
#12 0xfe6e76c0 in apache_php_module_main (r=0x125e20,
display_source_mode=0)
at /disk2/source/php/releases/php-4.3.2/sapi/apache/sapi_apache.c:54
#13 0xfe6e8ee8 in send_php (r=0x125e20, display_source_mode=0,
filename=0x126940
"/disk1/wwwdev/htdocs/PostNuke-0.726/html/index.php")
at /disk2/source/php/releases/php-4.3.2/sapi/apache/mod_php4.c:617
#14 0xfe6e8f60 in send_parsed_php (r=0x125e20) at
/disk2/source/php/releases/php-4.3.2/sapi/apache/mod_php4.c:632
#15 0x420a8 in ap_invoke_handler ()
#16 0x61a18 in process_request_internal ()
#17 0x61a9c in ap_process_request ()
#18 0x54568 in child_main ()
#19 0x547fc in make_child ()
#20 0x54a18 in startup_children ()
#21 0x554dc in standalone_main ()
#22 0x56138 in main ()
--
Edit bug report at http://bugs.php.net/?id=25045&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25045&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25045&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25045&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25045&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25045&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25045&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25045&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25045&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25045&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25045&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25045&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25045&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25045&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25045&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25045&r=gnused