Bug #49543 invalid memory reads in _mi_read_rnd_static_record
Submitted: 8 Dec 2009 21:28 Modified: 12 Apr 2010 8:38
Reporter: Shane Bester (Platinum Quality Contributor) Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Optimizer Severity:S1 (Critical)
Version:5.1.41 OS:Any
Assigned to: CPU Architecture:Any
Tags: valgrind

[8 Dec 2009 21:28] Shane Bester
Description:
   
8 errors in context 5 of 15:
Invalid read of size 8
at : _mi_read_rnd_static_record (mi_statrec.c:253)
by : mi_scan (mi_scan.c:44)
by : ha_myisam::rnd_next (ha_myisam.cc:1740)
by : handler::read_first_row (handler.cc:2147)
by : join_read_systemP13st_join_table (sql_select.cc:11662)
by : join_read_const_table (sql_select.cc:11587)
by : make_join_statistics (sql_select.cc:2684)
by : JOIN::optimize() (sql_select.cc:978)
by : subselect_single_select_engine::exec() (item_subselect.cc:1887)
by : Item_subselect::exec() (item_subselect.cc:261)
by : Item_singlerow_subselect::val_int() (item_subselect.cc:570)
by : Item::update_null_value() (item.h:819)
 Address 0xD174A20 is 56 bytes inside a block of size 33,824 free'd
at : free (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so)
by : my_no_flags_free (my_malloc.c:59)
by : mi_close (mi_close.c:118)
by : ha_myisam::close() (ha_myisam.cc:759)
by : closefrm(st_table*, bool) (table.cc:1971)
by : intern_close_table(st_table*) (sql_base.cc:782)
by : _ZL16free_cache_entryP8st_table (sql_base.cc:804)
by : my_hash_delete (hash.c:546)
by : _ZL17close_open_tablesP3THD (sql_base.cc:1204)
by : close_thread_tables(THD*) (sql_base.cc:1351)
by : dispatch_command (sql_parse.cc:1626)
by : do_command(THD*) (sql_parse.cc:872)

How to repeat:
large multi-table update. testcase will come later.
[8 Dec 2009 22:06] MySQL Verification Team
5.1.41: more valgrind output for this bug report

Attachment: bug49543_5.1.41_valgrind_output.txt (text/plain), 13.35 KiB.