php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38747 Segfault under load
Submitted: 2006-09-08 04:09 UTC Modified: 2006-09-14 14:40 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: michaelw at webcentral dot com dot au Assigned:
Status: Wont fix Package: iPlanet related
PHP Version: 4.4.4 OS: Solaris 10
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-09-08 04:09 UTC] michaelw at webcentral dot com dot au
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



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-14 14:40 UTC] thetaphi@php.net
This error is not reproducible from my side. Often this type of errors occur on SunONE/iPlanet because of memory/stack size. I keep this on my TODO list, but this bug is not to be fixed without additional helpful information.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC