From:             a-noda at jaist dot ac dot jp
Operating system: FreeBSD 4.9
PHP version:      4.3.6
PHP Bug Type:     PostgreSQL related
Bug description:  sometime httpd daemon stacks 

Description:
------------
I'm using mod_php4 fllowing environment
FreeBSD 4.9 apache+mod_ssl-1.3.29+2.8.16_1 mod_php4-4.3.6
postgresql-7.4.2

(all these programs compiled with gcc version 2.95.4 20020320 [FreeBSD] 
-march=i686 -mpentiumpro -O2 -pipe)

sometime httpd daemon stacks with CPU usage almost 100%

I pached fllowing patch to
/usr/ports/lang/php4/work/php-4.3.6/ext/pgsql/pgsql.c
It may be good. At least in my environment the process stack never comes
since this patch was patched

225c225
<       while (i && (message[i] == '\r' || message[i] == '\n')) {
---
>       while (i>0 && (message[i] == '\r' || message[i] == '\n')) {


Reproduce code:
---------------
no reproduce code .
It often happen after .php files are updated with "cvs up"
 

Expected result:
----------------
none

Actual result:
--------------
none

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

Reply via email to