Bug #58710 Valgrind warnings in mysqltest
Submitted: 3 Dec 2010 16:50 Modified: 20 Dec 2010 3:10
Reporter: Alexander Nozdrin Email Updates:
Status: Closed Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S7 (Test Cases)
Version:5.5 OS:Any
Assigned to: Bjørn Munch CPU Architecture:Any

[3 Dec 2010 16:50] Alexander Nozdrin
Description:
The following two warnings have been found in 5.5-security:
---------------------------------------------------
==10642== Use of uninitialised value of size 8
==10642==    at 0x57047EF: ____strtol_l_internal (in /lib64/libc-2.5.so)
==10642==    by 0x40A81D: var_check_int(VAR*) (stdlib.h:336)
==10642==    by 0x40F158: var_init(VAR*, char const*, int, char const*, int) (mysqltest.cc:2100)
==10642==    by 0x4124D0: do_block(block_cmd, st_command*) (mysqltest.cc:5652)
==10642==    by 0x4157FF: main (mysqltest.cc:8689)
==10642== 
---------------------------------------------------
==10642== Conditional jump or move depends on uninitialised value(s)
==10642==    at 0x5704600: ____strtol_l_internal (in /lib64/libc-2.5.so)
==10642==    by 0x40A81D: var_check_int(VAR*) (stdlib.h:336)
==10642==    by 0x40F158: var_init(VAR*, char const*, int, char const*, int) (mysqltest.cc:2100)
==10642==    by 0x4126AA: do_block(block_cmd, st_command*) (mysqltest.cc:5688)
==10642==    by 0x4157FF: main (mysqltest.cc:8689)
==10642== 
---------------------------------------------------

How to repeat:
Log: http://pb2.norway.sun.com/web.py?action=archive_download&archive_id=2612278&pretty=please
[6 Dec 2010 13:35] 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/126134

3123 Bjorn Munch	2010-12-06
      Bug #58710 Valgrind warnings in mysqltest
      Var's string value was not 0-terminated if intially null.
      While at it, also removed some reported memory leaks
[8 Dec 2010 14:47] 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/126329

3123 Bjorn Munch	2010-12-08
      Bug #58710 Valgrind warnings in mysqltest
      Var's string value was not 0-terminated if intially null.
      While at it, also removed some reported memory leaks
      Added sanity check, setting val_len=0 if val==0
[9 Dec 2010 11:14] 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/126404

3124 Bjorn Munch	2010-12-09
      Bug #58710 Valgrind warnings in mysqltest
      Var's string value was not 0-terminated if intially null.
      While at it, also removed some reported memory leaks
      Added sanity check, setting val_len=0 if val==0
[9 Dec 2010 16:21] Bjørn Munch
Pushed to 5.5-mtr, trunk-mtr
[17 Dec 2010 12:50] Bugs System
Pushed into mysql-5.5 5.5.9 (revid:georgi.kodinov@oracle.com-20101217124733-p1ivu6higouawv8l) (version source revid:bjorn.munch@oracle.com-20101209195322-embe21sfutgb3oy0) (merge vers: 5.5.8) (pib:24)
[17 Dec 2010 12:55] Bugs System
Pushed into mysql-trunk 5.6.1 (revid:georgi.kodinov@oracle.com-20101217125013-y8pb3az32rtbplc9) (version source revid:anitha.gopi@sun.com-20101210041312-50t9adyhwwybsm6x) (merge vers: 5.6.1) (pib:24)
[20 Dec 2010 3:10] Paul DuBois
Changes to test suite. No changelog entry needed.