Crash/segfault #1 0x0000000000849721 in drizzled::TransactionServices::getInsertStatement (this=0xe84990, in_session=0x284eca0, in_table=0x7f8e800e5760, next_segment_id=0x7f8e949d75bc) at drizzled/transaction_services.cc:1115
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Invalid
|
Undecided
|
David Shrewsbury | ||
7.0 |
Invalid
|
Undecided
|
David Shrewsbury |
Bug Description
Crashing bug / segfault. Still working on analyzing / producing a test case. Unsure if this is related to concurrent users or just a single, badly-handled query. Will update the bug as I know more.
Server built:
./config/autorun.sh && ./configure --with-debug
Server started:
./test-run --start-and-exit --mysqld=
Randgen command line:
perl ./gentest.pl --dsn=dbi:
Backtrace:
#0 0x00007f8e8c068f60 in ?? ()
#1 0x0000000000849721 in drizzled:
in_
#2 0x0000000000849b9e in drizzled:
in_
#3 0x0000000000621796 in log_row_
after_
#4 0x0000000000621c1c in drizzled:
at drizzled/
#5 0x00000000007bcb5e in drizzled:
at drizzled/
#6 0x00000000007bdb0b in drizzled:
#7 0x0000000000707fa2 in drizzled::end_send (join=0x2b0a9e8, end_of_
#8 0x0000000000707886 in drizzled:
#9 0x00000000007d7f2f in drizzled:
at drizzled/
#10 0x00000000007d7b15 in drizzled::do_select (join=0x2b0a9e8, fields=0x2b0c030, table=0x0) at drizzled/
#11 0x0000000000705973 in drizzled:
#12 0x00000000007d0d71 in drizzled:
wild_num=0, fields=..., conds=0x0, og_num=26, order=0x7f8e8c0
result=
#13 0x00000000007d0625 in drizzled:
setup_
#14 0x000000000081bb31 in drizzled:
at drizzled/
#15 0x00000000007cc7ba in mysql_execute_
#16 0x00000000007cd57c in drizzled:
inBuf=0x2847588 "INSERT INTO `c` ( `col_char_10` , `col_char_10_key` , `col_char_
at drizzled/
#17 0x00000000007cc10e in drizzled:
packet=
at drizzled/
#18 0x000000000078ef41 in drizzled:
---Type <return> to continue, or q <return> to quit---
#19 0x000000000078e7db in drizzled:
#20 0x00007f8ea6970b54 in MultiThreadSche
at ./plugin/
#21 0x00007f8ea696e9e2 in session_thread (arg=0x284eca0) at plugin/
#22 0x00007f8eaa6509ca in start_thread (arg=<value optimized out>) at pthread_
#23 0x00007f8eaa3ad6fd in clone () at ../sysdeps/
#24 0x0000000000000000 in ?? ()
Changed in drizzle: | |
status: | New → Confirmed |
tags: | added: replication |
Changed in drizzle: | |
assignee: | nobody → David Shrewsbury (dshrews) |
This occurs in single-thread testing.
Query (note that it is badly-formed - where_insert rather than a proper WHERE clause): 10_not_ null` , `col_char_ 10_not_ null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_ 1024_not_ null` , `col_char_ 1024_not_ null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_ not_null_ key` , `col_bigint` , `col_bigint_key` , `col_bigint_ not_null` , `col_bigint_ not_null_ key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_ not_null_ key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_ not_null_ key` ) 10_not_ null` , `col_char_ 10_not_ null_key` , `col_char_1024` , `col_char_1024_key` , `col_char_ 1024_not_ null` , `col_char_ 1024_not_ null_key` , `col_int` , `col_int_key` , `col_int_not_null` , `col_int_ not_null_ key` , `col_bigint` , `col_bigint_key` , `col_bigint_ not_null` , `col_bigint_ not_null_ key` , `col_enum` , `col_enum_key` , `col_enum_not_null` , `col_enum_ not_null_ key` , `col_text` , `col_text_key` , `col_text_not_null` , `col_text_ not_null_ key` ,`col_bigint_ key`,`col_ bigint_ not_null` ,`col_bigint_ not_null_ key`,`col_ char_10` ,`col_char_ 1024`,` col_char_ 1024_key` ,`col_char_ 1024_not_ null`,` col_char_ 1024_not_ null_key` ,`col_char_ 10_key` ,`col_char_ 10_not_ null`,` col_char_ 10_not_ null_key` ,`col_enum` ,`col_enum_ key`,`col_ enum_not_ null`,` col_enum_ not_null_ key`,`col_ int`,`col_ int_key` ,`col_int_ not_null` ,`col_int_ not_null_ key`,`col_ text`,` col_text_ key`,`col_ text_not_ null`,` col_text_ not_null_ key`,`pk` LIMIT 50
INSERT INTO `cc`
( `col_char_10` , `col_char_10_key` , `col_char_
SELECT
`col_char_10` , `col_char_10_key` , `col_char_
FROM `aa`
where_insert
ORDER BY pk, `col_bigint`