Bug #35590 valgrind error in udf test
Submitted: 27 Mar 2008 8:14 Modified: 21 Apr 2008 3:08
Reporter: Ramil Kalimullin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: User-defined functions ( UDF ) Severity:S3 (Non-critical)
Version:6.0 OS:Any
Assigned to: Ramil Kalimullin CPU Architecture:Any

[27 Mar 2008 8:14] Ramil Kalimullin
Description:
See: 
https://intranet.mysql.com/secure/pushbuild/getlog.pl?dir=mysql-6.0&entry=mkindahl@dl145h....

VALGRIND: '32 bytes in 1 blocks are still reachable in loss record 1 of 3'
    COUNT: 1
    FUNCTION: calloc    FILES:    master.err
    TESTS:    main.udf
    STACK: at 0x4A1FD7F: calloc (vg_replace_malloc.c:279)
             by 0x52CE5EA: _dlerror_run (in /lib64/libdl-2.4.so)
             by 0x52CE2AE: dlclose (in /lib64/libdl-2.4.so)
             by 0x7ECA4B: udf_free() (sql_udf.cc:251)
             by 0x68E23B: clean_up(bool) (mysqld.cc:1301)
             by 0x692DDC: kill_server(void*) (mysqld.cc:1232)
             by 0x692E3F: kill_server_thread (mysqld.cc:1195)
             by 0x4B2A192: start_thread (in /lib64/libpthread-2.4.so)
             by 0x515C47C: clone (in /lib64/libc-2.4.so)

How to repeat:
Run the test under valgrind.
[28 Mar 2008 10:37] 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/44571

ChangeSet@1.2613, 2008-03-28 14:37:25+04:00, ramil@mysql.com +1 -0
  Fix for bug #35590: valgrind error in udf test
  
  Problem: there is a memory leak in the dlclose->_dlerror_run.
  
  Fix: suppress it.
[28 Mar 2008 10:51] MySQL Verification Team
ramil, is bug #32041 a duplicate of this bug ?
[13 Sep 2008 23:59] Bugs System
Pushed into 6.0.7-alpha  (revid:sp1r-ramil/ram@mysql.com/ramil.myoffice.izhnet.ru-20080328103725-44711) (version source revid:lars-erik.bjork@sun.com-20080718081554-1cq4mw3bk21fzol6) (pib:3)