Bug #49608 valgrind error for prebuilt->hint_need_to_fetch_extra_cols in build_template()
Submitted: 11 Dec 2009 4:18 Modified: 11 Feb 2011 7:08
Reporter: Shane Bester (Platinum Quality Contributor) Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: InnoDB storage engine Severity:S1 (Critical)
Version:5.1.43-debug OS:Any
Assigned to: CPU Architecture:Any
Tags: valgrind

[11 Dec 2009 4:18] Shane Bester
Description:
running a batch of tests spewed out valgrind errors similar to this;

at: build_template (ha_innodb.cc:3500)
by: ha_innobase::change_active_index (ha_innodb.cc:4783)
by: ha_innobase::rnd_init(bool) (ha_innodb.cc:4979)
by: handler::ha_rnd_init(bool) (handler.h:1196)
by: init_read_record (records.cc:256)
by: join_init_read_record(sql_select.cc:11932)
by: sub_select (sql_select.cc:11213)
by: do_select (sql_select.cc:10970)
by: JOIN::exec() (sql_select.cc:1844)
by: subselect_single_select_engine::exec() (item_subselect.cc:1968)
by: Item_subselect::exec() (item_subselect.cc:261)
by: Item_singlerow_subselect::val_int() (item_subselect.cc:571)
Uninitialised value was created by a heap allocation
at: malloc (vg_replace_malloc.c:195)
by: ut_malloc_low (ut0mem.c:82)
by: ut_malloc (ut0mem.c:189)
by: mem_area_alloc (mem0pool.c:355)
by: mem_heap_create_block (mem0mem.c:362)
by: mem_heap_add_block (mem0mem.c:465)
by: mem_heap_alloc (mem0mem.ic:155)
by: row_create_prebuilt (row0mysql.c:599)
by: ha_innobase::open (ha_innodb.cc:2758)
by: handler::ha_open (handler.cc:2090)
by: open_table_from_share (table.cc:1889)
by: open_unireg_entry (sql_base.cc:3918)

this specific case complains about prebuilt->hint_need_to_fetch_extra_cols.
I have not seen a crash associated with this error yet.

How to repeat:
i'll try make a reduced testcase before vacation.