#34684 [NEW]: Memory Leak using Informix database

From: Date: Fri, 30 Sep 2005 06:33:04 +0000
Subject: #34684 [NEW]: Memory Leak using Informix database
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85787@lists.php.net to get a copy of this message
From: mrembach at gmail dot com Operating system: Linux 2.4.19-64GB-SMP PHP version: 5.0.5 PHP Bug Type: *Database Functions Bug description: Memory Leak using Informix database Description: ------------ Hi, I have had an ongoing memory leak with Informix for a while now and haven't had another database to test with so I can send in evidence for investigation. I have written a small script that created a database connection using Pear::DB and loads creates a loop to load an array of objects. To run the command: php testMemoryLeak.php ORACLE or php testMemoryLeak.php INFORMIX If you run this code (see below) and then issue the command ps -ax -o '%mem cmd' | grep 'testMemoryLeakPEAR.php' | grep -v 'grep' On the informix run, the memory goes up and up (try running the program and see after a couple of minutes), but with the oracle run, no memory leak. This should provide enough clues to maybe find the leak and plug it for informix. Please help, this is starting to be a very big problem for my project. Thanks in advance Michael Reproduce code: --------------- https://student.transport.nsw.gov.au/testMemoryLeakPEAR.txt Expected result: ---------------- The program should be downloaded and set up to use with both a table in oracle and informix The ps I explained should be run while the php script is running. Informix: memory starts at 1.5 and starts going up every minute or so Oracle: stable. I think the problem is in the free() class. -- Edit bug report at http://bugs.php.net/?id=34684&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34684&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34684&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34684&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34684&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34684&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34684&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34684&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34684&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34684&r=support Expected behavior: http://bugs.php.net/fix.php?id=34684&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34684&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34684&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34684&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34684&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34684&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34684&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34684&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34684&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34684&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34684&r=mysqlcfg

« previous php.bugs (#85787) next »