Memory Leak in get_best_ror_intersect(). Exposed in innodb.test case

Bug #524557 reported by Jay Pipes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
Medium
Brian Aker
Cherry
Fix Released
Medium
Brian Aker

Bug Description

Been seeing this a while, figured I'd add it as a bug...

==9466== 200 bytes in 13 blocks are definitely lost in loss record 7 of 13
==9466== at 0x4C2726C: operator new(unsigned long) (vg_replace_malloc.c:230)
==9466== by 0x5C2032: void std::vector<drizzled::st_ror_scan_info*, std::allocator<drizzled::st_ror_scan_info*> >::_M_assign_aux<drizzled::st_ror_scan_info**>(drizzled::st_ror_scan_info**, drizzled::st_ror_scan_info**, std::forward_iterator_tag) (new_
llocator.h:92)
==9466== by 0x5BA3A0: drizzled::get_best_ror_intersect(drizzled::optimizer::Parameter const*, drizzled::SEL_TREE*, double, bool*) (stl_vector.h:1002)
==9466== by 0x5C0583: drizzled::optimizer::SqlSelect::test_quick_select(drizzled::Session*, std::bitset<72ul>, unsigned long, unsigned long, bool, bool) (range.cc:1081)
==9466== by 0x61B566: drizzled::get_quick_record_count(drizzled::Session*, drizzled::optimizer::SqlSelect*, drizzled::Table*, std::bitset<72ul> const*, unsigned long) (sql_select.cc:476)
==9466== by 0x599947: drizzled::make_join_statistics(drizzled::JOIN*, drizzled::TableList*, drizzled::Item*, drizzled::st_dynamic_array*) (join.cc:5955)
==9466== by 0x59AAE6: drizzled::JOIN::optimize() (join.cc:554)
==9466== by 0x61B96C: drizzled::mysql_select(drizzled::Session*, drizzled::Item***, drizzled::TableList*, unsigned int, drizzled::List<drizzled::Item>&, drizzled::Item*, unsigned int, drizzled::order_st*, drizzled::order_st*, drizzled::Item*, unsigned
long, drizzled::select_result*, drizzled::Select_Lex_Unit*, drizzled::Select_Lex*) (sql_select.cc:412)
==9466== by 0x5A7E5A: drizzled::optimizer::ExplainPlan::explainUnion(drizzled::Session*, drizzled::Select_Lex_Unit*, drizzled::select_result*) (explain_plan.cc:576)
==9466== by 0x6159BC: drizzled::execute_sqlcom_select(drizzled::Session*, drizzled::TableList*) (sql_parse.cc:556)
==9466== by 0x615669: drizzled::mysql_execute_command(drizzled::Session*) (sql_parse.cc:512)
==9466== by 0x616CF6: drizzled::mysql_parse(drizzled::Session*, char const*, unsigned int, char const**) (sql_parse.cc:801)
==9466== by 0x6170F9: drizzled::dispatch_command(drizzled::enum_server_command, drizzled::Session*, char*, unsigned int) (sql_parse.cc:220)
==9466== by 0x5E3C30: drizzled::Session::executeStatement() (session.cc:739)
==9466== by 0x5E6481: drizzled::Session::run() (session.cc:591)
==9466== by 0x14C96231: ???

Tags: valgrind
Jay Pipes (jaypipes)
Changed in drizzle:
status: Confirmed → In Progress
Jay Pipes (jaypipes)
Changed in drizzle:
milestone: 2010-03-01 → 2010-03-29
Jay Pipes (jaypipes)
Changed in drizzle:
assignee: Jay Pipes (jaypipes) → Brian Aker (brianaker)
status: In Progress → Confirmed
Changed in drizzle:
milestone: 2010-04-26 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.