dropping table with corrupt table proto message results in segv
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Low
|
Stewart Smith | ||
Cherry |
Fix Released
|
Low
|
Stewart Smith |
Bug Description
found in testing for create_
corrupt table proto message will result in SIGSEGV:
#0 0x0000000000527507 in drizzled:
this=0x0, error=-1, errflag=0, table=0x0)
at drizzled/
#1 0x0000000000525b07 in drizzled:
session=..., identifier=..., generate_
at drizzled/
#2 0x000000000058bda7 in mysql_rm_
tables=
at drizzled/
#3 0x00000000005b6692 in mysql_rm_table (session=0xb6ee70, tables=0x1379a78,
if_
at drizzled/
#4 0x00000000005b67a2 in drizzled:
this=0x1371410) at drizzled/
#5 0x0000000000574501 in mysql_execute_
at drizzled/
#6 0x000000000057529b in mysql_parse (session=0xb6ee70,
inBuf=0x13799f8 "DROP TABLE test.t1", length=18,
found_
#7 0x0000000000573cf2 in dispatch_command (command=COM_QUERY,
session=
at drizzled/
#8 0x00000000005376cf in Session:
as engine is NULL and we try and use it.
Related branches
- Brian Aker: Pending requested
- Drizzle Developers: Pending requested
-
Diff: 654 lines (+479/-8)18 files modifieddrizzled/error.cc (+3/-1)
drizzled/error.h (+2/-1)
drizzled/message/table_writer.cc (+69/-5)
drizzled/plugin/storage_engine.cc (+16/-1)
drizzled/table.cc (+6/-0)
plugin/blackhole/ha_blackhole.cc (+7/-0)
plugin/tableprototester/plugin.ini (+5/-0)
plugin/tableprototester/tableprototester.cc (+292/-0)
plugin/tableprototester/tableprototester.h (+58/-0)
plugin/tableprototester/tests/r/basic.result (+3/-0)
plugin/tableprototester/tests/r/drop_table.result (+2/-0)
plugin/tableprototester/tests/r/missing_engine.result (+5/-0)
plugin/tableprototester/tests/t/basic-master.opt (+1/-0)
plugin/tableprototester/tests/t/basic.test (+1/-0)
plugin/tableprototester/tests/t/drop_table-master.opt (+1/-0)
plugin/tableprototester/tests/t/drop_table.test (+2/-0)
plugin/tableprototester/tests/t/missing_engine-master.opt (+1/-0)
plugin/tableprototester/tests/t/missing_engine.test (+5/-0)
Changed in drizzle: | |
status: | In Progress → Fix Released |
Changed in drizzle: | |
milestone: | 2010-04-26 → 2010-02-15 |