php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11554 Apache processes get stuck
Submitted: 2001-06-19 05:05 UTC Modified: 2001-06-20 10:23 UTC
From: edink at proventum dot net Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.5 OS: Linux 2.2 (RH 7.0)
Private report: No CVE-ID: None
 [2001-06-19 05:05 UTC] edink at proventum dot net
After adding PostgreSQL module to an Apache webserver, the load on the machine went up to 20. There was no PostgreSQL code invoved, just pgsql.so was activated in php.ini. Here is the backtrace of a runaway process:

#0  0x4068eb1a in pqFlush () from /usr/lib/libpq.so.2
#1  0x4068e25a in pqPutBytes () from /usr/lib/libpq.so.2
#2  0x4068e475 in pqPutnchar () from /usr/lib/libpq.so.2
#3  0x4068c3b3 in PQsendQuery () from /usr/lib/libpq.so.2
#4  0x4068ceb0 in PQexec () from /usr/lib/libpq.so.2
#5  0x40678d33 in _rollback_transactions (rsrc=0x81738f8) at pgsql.c:168
#6  0x4029a556 in zend_hash_apply (ht=0x4033a834, apply_func=0x40678d00 <_rollback_transactions>)
    at zend_hash.c:692
#7  0x40678f48 in php_rshutdown_pgsql (type=1, module_number=20) at pgsql.c:246
#8  0x402972b9 in module_registry_cleanup (module=0x81506a8) at zend_API.c:785
#9  0x4029a556 in zend_hash_apply (ht=0x4033a9e0, apply_func=0x4029728c <module_registry_cleanup>)
    at zend_hash.c:692
#10 0x40296420 in zend_deactivate_modules () at zend.c:522
#11 0x402a748c in php_request_shutdown (dummy=0x0) at main.c:670
#12 0x402a4fb9 in php_apache_request_shutdown (dummy=0x0) at mod_php4.c:290
#13 0x8051374 in run_cleanups ()
#14 0x804fb76 in ap_clear_pool ()
#15 0x804fbf6 in ap_destroy_pool ()
#16 0x80600b5 in child_main ()
#17 0x80602cf in make_child ()
#18 0x8060380 in startup_children ()
#19 0x80609cd in standalone_main ()
#20 0x806120f in main ()

PHP 4.0.5
PostgreSQL 7.1
RedHat Linux 7.0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-19 08:38 UTC] edink at proventum dot net
I forgot to say that php is compiled as dso with apache 1.3.19. I have tried to compile postgresql extension both as php dso and to compile it into the php module, with the same result.
 [2001-06-19 21:21 UTC] sniper@php.net
Please try the latest RC of PHP 4.0.6:

http://www.php.net/~andi/php-4.0.6RC4.tar.gz

I believe this is already fixed..

 [2001-06-20 10:23 UTC] edink at proventum dot net
It has indeed been fixed. 4.0.6RC4 runs fine.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 13:01:29 2024 UTC