From:             alexiadeath at hotmail dot com
Operating system: Slackware Linux 10.1
PHP version:      5.0.4
PHP Bug Type:     Reproducible crash
Bug description:  Apache child segfaults(11) in strlen

Description:
------------
in php 5.0.4 with either apache 2 or apache 1.3 (there is no difference)
click on phpMyadmin Browse tab generates a partial page with segfault(11)
in apache log. Failed to find the exact cause because the moment of
segfaulting DEPENDS on minor changes in the code for example an added
echo.

With php 4.4 nothing like this happens and page loads properly.

on windows with apache2 and php 5.0.5dev the problem simply does not
exist. Cant try the latest dev because of the disc space limitations of my
box. no room for compile tools. all items involeved are a maching set of
precompiled packages from linuxpackages site.



Reproduce code:
---------------
In phpMyadmin every time on clicking browse. go try.

Expected result:
----------------
phpMyadmin page with database results.

Actual result:
--------------
page with just tab headers.
GDB backtrace follows:

(gdb) bt
#0  0x403c623b in strlen () from /lib/libc.so.6
#1  0x407c2128 in add_property_string_ex () from
/usr/lib/apache2/libphp5.so
#2  0x406803fb in zif_mysql_fetch_field () from
/usr/lib/apache2/libphp5.so
#3  0x407e40b8 in zend_do_fcall_common_helper () from
/usr/lib/apache2/libphp5.so
#4  0x407e422a in zend_do_fcall_handler () from
/usr/lib/apache2/libphp5.so
#5  0x407e09a5 in execute () from /usr/lib/apache2/libphp5.so
#6  0x407e3e7f in zend_do_fcall_common_helper () from
/usr/lib/apache2/libphp5.so
#7  0x407e416a in zend_do_fcall_by_name_handler () from
/usr/lib/apache2/libphp5.so
#8  0x407e09a5 in execute () from /usr/lib/apache2/libphp5.so
#9  0x407bfc6d in zend_execute_scripts () from
/usr/lib/apache2/libphp5.so
#10 0x40786d6f in php_execute_script () from /usr/lib/apache2/libphp5.so
#11 0x407ebb9c in php_handler () from /usr/lib/apache2/libphp5.so
#12 0x08067fa6 in ap_run_handler ()
#13 0x08068578 in ap_invoke_handler ()
#14 0x080654af in ap_process_request ()
#15 0x08060d49 in ap_process_http_connection ()
#16 0x08071046 in ap_run_process_connection ()
#17 0x08066958 in child_main ()
#18 0x08066b0e in make_child ()
#19 0x08066b7f in startup_children ()
#20 0x080672f9 in ap_mpm_run ()
#21 0x0806ca88 in main ()

-- 
Edit bug report at http://bugs.php.net/?id=34093&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=34093&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=34093&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=34093&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=34093&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=34093&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=34093&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=34093&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=34093&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=34093&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=34093&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=34093&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=34093&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=34093&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=34093&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=34093&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=34093&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=34093&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=34093&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=34093&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=34093&r=mysqlcfg

Reply via email to