Bug #40875 Memory leak in FEDERATED handler

Submitted: 20 Nov 2008 7:10 Modified: 3 Dec 2008 2:52
Reporter: Ramil Kalimullin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Federated storage engine Severity:S2 (Serious)
Version:5.0 OS:Any
Assigned to: Ramil Kalimullin CPU Architecture:Any

[20 Nov 2008 7:10] Ramil Kalimullin
Description:
Additional federated test ( http://lists.mysql.com/commits/58720 ) has triggered a memory leak in the federated handler, see:

https://intranet.mysql.com/secure/pushbuild/getlog.pl?dir=bzr_mysql-5.0-bugteam&entry=Rami...

The problem is only in 5.0 as the code was changed significantly in 5.1+.

How to repeat:
BUILD/compile-pentium-valgrind-max
cd mysql-test
./mtr --valgrind --force --do-test=federated
less var/log/master.err
[20 Nov 2008 10:10] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/59337

2719 Ramil Kalimullin	2008-11-20
      Fix for bug#40875: Memory leak in FEDERATED handler
      
      Problem: memory leak occurs when we open a federated table
      that has its share in the hash.
      
      Fix: free not used memory.
      
      Note: the fix should NOT be merged to 5.1 (the code changed).
[2 Dec 2008 13:02] Bugs System
Pushed into 5.0.74  (revid:ramil@mysql.com-20081120100836-gct60cm67b1rui29) (version source revid:ramil@mysql.com-20081120100836-gct60cm67b1rui29) (pib:5)
[3 Dec 2008 2:52] Paul DuBois
Noted in 5.0.74 changelog.

The FEDERATED handler had a memory leak.
[8 Dec 2008 10:23] Bugs System
Pushed into 5.1.31  (revid:ramil@mysql.com-20081120100836-gct60cm67b1rui29) (version source revid:patrick.crews@sun.com-20081126180318-v685u61mpgoc176x) (pib:5)
[8 Dec 2008 11:34] Bugs System
Pushed into 6.0.9-alpha  (revid:ramil@mysql.com-20081120100836-gct60cm67b1rui29) (version source revid:ingo.struewing@sun.com-20081121151447-dtf2ofz2ys0zqed1) (pib:5)
[19 Jan 2009 11:25] Bugs System
Pushed into 5.1.31-ndb-6.2.17 (revid:tomas.ulin@sun.com-20090119095303-uwwvxiibtr38djii) (version source revid:tomas.ulin@sun.com-20090108105244-8opp3i85jw0uj5ib) (merge vers: 5.1.31-ndb-6.2.17) (pib:6)
[19 Jan 2009 13:03] Bugs System
Pushed into 5.1.31-ndb-6.3.21 (revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (version source revid:tomas.ulin@sun.com-20090119104956-guxz190n2kh31fxl) (merge vers: 5.1.31-ndb-6.3.21) (pib:6)
[19 Jan 2009 16:09] Bugs System
Pushed into 5.1.31-ndb-6.4.1 (revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (version source revid:tomas.ulin@sun.com-20090119144033-4aylstx5czzz88i5) (merge vers: 5.1.31-ndb-6.4.1) (pib:6)

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.063 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.