Assertion `field_pos < field_count' failed in Protocol_text::store in maria-5.3-mwl34
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MariaDB |
Fix Released
|
Critical
|
Michael Widenius |
Bug Description
Inserting a NULL into a blob causes future dynamic column operations to assert as follows:
mysqld: protocol.cc:908: virtual bool Protocol_
backtrace:
#8 0x006b0d98 in __assert_fail () from /lib/libc.so.6
#9 0x0828431a in Protocol_
#10 0x081d0e38 in Item::send (this=0xae612a40, protocol=0x9535200, buffer=0xae7fdf50) at item.cc:5784
#11 0x08277910 in select_
#12 0x08330e0f in end_send (join=0xae625fc8, join_tab=
#13 0x0832f312 in evaluate_
#14 0x0832eded in sub_select (join=0xae625fc8, join_tab=
#15 0x0832e077 in do_select (join=0xae625fc8, fields=0x9536920, table=0x0, procedure=0x0) at sql_select.cc:13500
#16 0x083148e2 in JOIN::exec (this=0xae625fc8) at sql_select.cc:2482
#17 0x083150fe in mysql_select (thd=0x9534ef0, rref_pointer_
group=0x0, having=0x0, proc_param=0x0, select_
#18 0x0830d95b in handle_select (thd=0x9534ef0, lex=0x9536594, result=0xae612da0, setup_tables_
#19 0x082aa308 in execute_
#20 0x082a1152 in mysql_execute_
#21 0x082ac8ab in mysql_parse (thd=0x9534ef0, rawbuf=0xae6125e0 "SELECT COLUMN_ADD(f1, 1, 'abc'), COLUMN_LIST(f1) FROM t1", length=57,
found_
#22 0x0829eddb in dispatch_command (command=COM_QUERY, thd=0x9534ef0, packet=0x958f869 "", packet_length=57) at sql_parse.cc:1215
#23 0x0829e239 in do_command (thd=0x9534ef0) at sql_parse.cc:904
#24 0x0829b2ec in handle_
#25 0x00821919 in start_thread () from /lib/libpthread
#26 0x0076acce in clone () from /lib/libc.so.6
test case:
CREATE TABLE t1 ( f1 blob );
INSERT INTO t1 VALUES (NULL);
INSERT INTO t1 SET f1 = COLUMN_CREATE( 2 , 'cde' );
SELECT COLUMN_ADD(f1, 1, 'abc'), COLUMN_LIST(f1) FROM t1;
Related branches
Changed in maria: | |
milestone: | none → 5.3 |
assignee: | nobody → Michael Widenius (monty) |
Changed in maria: | |
importance: | Undecided → Critical |
status: | New → In Progress |
Changed in maria: | |
status: | In Progress → Fix Released |