Bug #18831 Valgrind: cond jmp on uninit during ndb_dd_dump test
Submitted: 6 Apr 2006 6:55 Modified: 6 Apr 2006 12:51
Reporter: Stewart Smith Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S2 (Serious)
Version:5.1.9bk OS:x86
Assigned to: Stewart Smith CPU Architecture:Any

[6 Apr 2006 6:55] Stewart Smith
Description:
==10273== Thread 17:
==10273== Conditional jump or move depends on uninitialised value(s)
==10273==    at 0x401CF19: strlen (mac_replace_strmem.c:243)
==10273==    by 0x85A5457: SimpleProperties::Writer::add(unsigned short, char const*) (SimpleProperties.cpp:69)
==10273==    by 0x85A5D80: SimpleProperties::pack(SimpleProperties::Writer&, void const*, SimpleProperties::SP2StructMapping const*, unsigned, bool) (SimpleProperties.cpp:282)
==10273==    by 0x85712E2: NdbDictInterface::create_filegroup(NdbFilegroupImpl const&) (NdbDictionaryImpl.cpp:4512)
==10273==    by 0x836E867: ndbcluster_alter_tablespace(THD*, st_alter_tablespace*) (ha_ndbcluster.cc:9792)
==10273==    by 0x833C033: mysql_alter_tablespace(THD*, st_alter_tablespace*) (sql_tablespace.cc:33)
==10273==    by 0x820EDCF: mysql_execute_command(THD*) (sql_parse.cc:5070)
==10273==    by 0x8214057: mysql_parse(THD*, char*, unsigned) (sql_parse.cc:5894)
==10273==    by 0x82145B4: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1770)
==10273==    by 0x821633B: handle_one_connection (sql_parse.cc:1537)
==10273==    by 0x4056380: start_thread (in /lib/tls/i686/cmov/libpthread-2.3.5.so)
==10273==    by 0x4285BFD: clone (in /lib/tls/i686/cmov/libc-2.3.5.so)
==10273==
==10273== Conditional jump or move depends on uninitialised value(s)
==10273==    at 0x401CF35: strlen (mac_replace_strmem.c:243)
==10273==    by 0x85A5457: SimpleProperties::Writer::add(unsigned short, char const*) (SimpleProperties.cpp:69)
==10273==    by 0x85A5D80: SimpleProperties::pack(SimpleProperties::Writer&, void const*, SimpleProperties::SP2StructMapping const*, unsigned, bool) (SimpleProperties.cpp:282)
==10273==    by 0x85712E2: NdbDictInterface::create_filegroup(NdbFilegroupImpl const&) (NdbDictionaryImpl.cpp:4512)
==10273==    by 0x836E867: ndbcluster_alter_tablespace(THD*, st_alter_tablespace*) (ha_ndbcluster.cc:9792)
==10273==    by 0x833C033: mysql_alter_tablespace(THD*, st_alter_tablespace*) (sql_tablespace.cc:33)
==10273==    by 0x820EDCF: mysql_execute_command(THD*) (sql_parse.cc:5070)
==10273==    by 0x8214057: mysql_parse(THD*, char*, unsigned) (sql_parse.cc:5894)
==10273==    by 0x82145B4: dispatch_command(enum_server_command, THD*, char*, unsigned) (sql_parse.cc:1770)
==10273==    by 0x821633B: handle_one_connection (sql_parse.cc:1537)
==10273==    by 0x4056380: start_thread (in /lib/tls/i686/cmov/libpthread-2.3.5.so)
==10273==    by 0x4285BFD: clone (in /lib/tls/i686/cmov/libc-2.3.5.so)

How to repeat:
run mysqld under valgrind while doing ndb_dd_dump test

Suggested fix:
fix the complaint
[6 Apr 2006 7:01] 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/4538
[6 Apr 2006 7:11] 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/4539
[6 Apr 2006 7:24] Stewart Smith
pushed to 5.1.9
review by martin, tomas, jonas (hrrm... excessive :)
[6 Apr 2006 12:52] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Documented bugfix in 5.1.9 changelog. Closed.