SHOW CREATE TABLE of PBXT table crashes server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Critical
|
Paul McCullagh | ||
Dexter |
Fix Released
|
Critical
|
Paul McCullagh |
Bug Description
Server crash on Ubuntu 10.04 with revno 1711.
Start the server with pbxt:
sbin/drizzled --datadir=$PWD/var --plugin-add=pbxt
Run the following:
create database test;
use test;
create table t (id int) engine=pbxt;
show create table t;
Program terminated with signal 11, Segmentation fault.
#0 0x00007f74f2d2ec57 in myxt_setup_
at plugin/
2656 min_data_size = curr_field-
(gdb) bt
#0 0x00007f74f2d2ec57 in myxt_setup_
at plugin/
#1 0x00007f74f2d2f739 in myxt_load_
db=0x2050a18, tab_path=0x233f298) at plugin/
#2 0x00007f74f2d49b2f in tab_new_handle (self=0x2346208,
r_tab=
missing_ok=0, dic=0x0) at plugin/
#3 0x00007f74f2d4af70 in xt_use_
name=0x233f298, no_load=0, missing_ok=0, dic=0x0)
at plugin/
#4 0x00007f74f2d4f4ac in xt_use_table (self=0x2346208, name=0x233f298,
no_load=0, missing_ok=0) at plugin/
#5 0x00007f74f2ce269e in ha_open_share (self=0x2346208, share=0x2345eb8)
at plugin/
#6 0x00007f74f2ce5b17 in ha_pbxt::open (this=0x23458d0,
table_
#7 0x00000000006081f9 in drizzled:
identifier=..., mode=2, test_if_locked=2) at drizzled/
#8 0x00000000006082c4 in drizzled:
identifier=..., table_arg=
test_
#9 0x0000000000819dd9 in drizzled:
this=0x2344470, session=
alias=0x233cfc0 "t", db_stat=39, ha_open_flags=0, outparam=...)
at drizzled/
#10 0x000000000078923f in open_unireg_entry (session=
entry=
at drizzled/
#11 0x00000000007886b7 in drizzled:
table_
at drizzled/
#12 0x0000000000789553 in drizzled:
this=
at drizzled/
#13 0x000000000076f116 in drizzled:
tables=
#14 0x00000000007828d3 in drizzled:
session=
at drizzled/
#15 0x0000000000802783 in drizzled:
this=0x2344920) at drizzled/
#16 0x00000000007a82df in mysql_execute_
at drizzled/
#17 0x00000000007a8fd5 in drizzled:
inBuf=0x23428b8 "show create table t", length=19)
at drizzled/
#18 0x00000000007a7c79 in drizzled:
command=
packet=
at drizzled/
#19 0x000000000076a5bb in drizzled:
this=
#20 0x0000000000769ea3 in drizzled:
at drizzled/
#21 0x00007f74f2fb0a56 in MultiThreadSche
session=
#22 0x00007f74f2fae9c2 in session_thread (arg=0x7f74d401
at plugin/
#23 0x00007f74f60509ca in start_thread () from /lib/libpthread
#24 0x00007f74f5dad6fd in clone () from /lib/libc.so.6
#25 0x0000000000000000 in ?? ()
Related branches
- Monty Taylor: Approve
-
Diff: 41 lines (+6/-3)3 files modifiedplugin/pbxt/src/memory_xt.cc (+1/-1)
plugin/pbxt/src/myxt_xt.cc (+4/-1)
plugin/pbxt/src/xt_defs.h (+1/-1)
Changed in drizzle: | |
assignee: | nobody → Paul McCullagh (paul-mccullagh) |
Changed in drizzle: | |
status: | Confirmed → In Progress |
Changed in drizzle: | |
status: | In Progress → Fix Committed |
Changed in drizzle: | |
status: | Fix Committed → In Progress |
Changed in drizzle: | |
status: | In Progress → Fix Released |
It seems ANY operation on a PBXT table (like SELECT, etc) causes the server die.