#50820 [NEW]: mysqli Active Links memory leak
| From: | mat999 at gmail dot com | Date: | Fri, 22 Jan 2010 07:05:47 +0000 |
| Subject: | #50820 [NEW]: mysqli Active Links memory leak | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-146861@lists.php.net to get a copy of this message | ||
From: mat999 at gmail dot com
Operating system: Debian Lenny / Linux
PHP version: 5.3.1
PHP Bug Type: MySQLi related
Bug description: mysqli Active Links memory leak
Description:
------------
System
- mod_fastcgi. 1 process x 35 child php threads
- PHP 5.3.1 dotdeb package
- Mysqlnd
Active Links increases throught the running of the server, for one it is
greater than the number of threads so there obviously is a leak.
PHPInfo: http://thewarezscene.org/phpinfo.php
Reproduce code:
---------------
<?
$db = mysqi_connect(....);
echo 'test';
mysqli_close($db);
?>
Open script a few thousand times and take a look at phpinfo()
Expected result:
----------------
Active Links = 0;
Actual result:
--------------
Active Links = XXXX;
http://thewarezscene.org/phpinfo.php
^ I have to kill all processes every 3 hours to keep the number down and
hence the memory usage.
--
Edit bug report at http://bugs.php.net/?id=50820&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50820&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50820&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50820&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50820&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50820&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50820&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50820&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50820&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50820&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50820&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50820&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50820&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50820&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50820&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50820&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50820&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50820&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50820&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50820&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50820&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50820&r=mysqlcfg