From:             michaelw at webcentral dot com dot au
Operating system: Solaris 10
PHP version:      4.4.4
PHP Bug Type:     iPlanet related
Bug description:  Segfault under load

Description:
------------
Crash occurs randomly when accessing PHP scripts using Sun Java Enterprise
Webserver 6.1 SP5.

In this case, I was using jmeter to generate some load and accessing a
page containing 

<?
phpinfo()
?>

PHP was configured with: ./configure  --prefix=/opt/php
--with-nsapi=/opt/SUNWwbsvr --enable-libgcc --enable-debug


Reproduce code:
---------------
<?
phpinfo()
?>

Expected result:
----------------
Standard phpinfo() response.

Actual result:
--------------
After a couple of hundred successful attempts, the webserver coredumps. 

GNU gdb 6.2.1
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 "sparc-sun-solaris2.10"...(no debugging symbols
found)...
Core was generated by `webservd -r /opt/SUNWwbsvr -d
/opt/SUNWwbsvr/https-hosting/config -n https-host'.
Program terminated with signal 11, Segmentation fault.

#0  0xfd818508 in zend_hash_move_forward_ex (ht=0xfd893538, pos=0x0) at
/opt/admin/build/php-4.4.4/Zend/zend_hash.c:1039
1039                    *current = (*current)->pListNext;
(gdb) bt
#0  0xfd818508 in zend_hash_move_forward_ex (ht=0xfd893538, pos=0x0) at
/opt/admin/build/php-4.4.4/Zend/zend_hash.c:1039
#1  0xfd6f487c in php_print_info (flag=-1, tsrm_ls=0x1084dd68) at
/opt/admin/build/php-4.4.4/ext/standard/info.c:504
#2  0xfd6f6a5c in zif_phpinfo (ht=0, return_value=0x108e3e70,
this_ptr=0x0, return_value_used=0, tsrm_ls=0x1084dd68)
    at /opt/admin/build/php-4.4.4/ext/standard/info.c:885
#3  0xfd82e380 in execute (op_array=0xee37f68, tsrm_ls=0x1084dd68) at
/opt/admin/build/php-4.4.4/Zend/zend_execute.c:1675
#4  0xfd80d4ec in zend_execute_scripts (type=8, tsrm_ls=0x1084dd68,
retval=0x0, file_count=3)
    at /opt/admin/build/php-4.4.4/Zend/zend.c:934
#5  0xfd79c870 in php_execute_script (primary_file=0xfab7faa8,
tsrm_ls=0x1084dd68) at /opt/admin/build/php-4.4.4/main/main.c:1752
#6  0xfd839ae4 in php4_execute (pb=0x59e9910, sn=0xe6e4270, rq=0xe6e42e8)
at /opt/admin/build/php-4.4.4/sapi/nsapi/nsapi.c:948
#7  0xff1cf9ec in
__1cNfunc_exec_str6FpnKFuncStruct_pnGpblock_pnHSession_pnHRequest__i_ ()
   from /opt/SUNWwbsvr/bin/https/lib/libns-httpd40.so
#8  0xff1d0e0c in INTobject_execute () from
/opt/SUNWwbsvr/bin/https/lib/libns-httpd40.so
#9  0xff1d5e3c in INTservact_service () from
/opt/SUNWwbsvr/bin/https/lib/libns-httpd40.so
#10 0xff1d654c in INTservact_handle_processed () from
/opt/SUNWwbsvr/bin/https/lib/libns-httpd40.so
#11 0xff218bf0 in __1cLHttpRequestUUnacceleratedRespond6Mpc_v_ () from
/opt/SUNWwbsvr/bin/https/lib/libns-httpd40.so
#12 0xff2182e0 in __1cLHttpRequestNHandleRequest6MpnGnetbuf__i_ () from
/opt/SUNWwbsvr/bin/https/lib/libns-httpd40.so
#13 0xff2166d8 in __1cNDaemonSessionDrun6M_v_ () from
/opt/SUNWwbsvr/bin/https/lib/libns-httpd40.so
#14 0xff106df4 in ThreadMain () from
/opt/SUNWwbsvr/bin/https/lib/libnsprwrap.so
#15 0xfedd0030 in _pt_root () from /usr/lib/mps/secv1/libnspr4.so
#16 0xfe03fda4 in _lwp_start () from /lib/libc.so.1
#17 0xfe03fda4 in _lwp_start () from /lib/libc.so.1



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

Reply via email to