A query on empty table with BLOBs may crash server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL Server |
Unknown
|
Unknown
|
|||
Percona Server moved to https://jira.percona.com/projects/PS |
Fix Released
|
High
|
Sergei Glushchenko | ||
5.1 |
Invalid
|
Undecided
|
Unassigned | ||
5.5 |
Invalid
|
Undecided
|
Unassigned | ||
5.6 |
Fix Released
|
High
|
Sergei Glushchenko |
Bug Description
2014-10-18 15:51:15 1209 [Note] /sda/Percona-
Version: '5.6.21-69.0-debug' socket: '/dev/shm/
2014-10-18 15:51:16 7f12043ac700 [Info] InnoDB: the file format in the system tablespace is now set to Barracuda.
2014-10-18 15:51:17 1209 [Note] Event Scheduler: scheduler thread started with id 5
2014-10-18 15:51:17 1209 [Warning] Did not write failed 'GRANT INSERT ON mysql.plugin TO bug51770@localhost' into binary log while storing table level and column level grants in the privilege tables.
2014-10-18 15:51:17 1209 [Warning] Did not write failed 'grant select on test.* to 'user_with'
2014-10-18 15:51:17 1209 [Warning] Did not write failed 'grant usage on *.* to 'quota'
04:51:17 UTC - mysqld got signal 11 ;
[...]
Query (7f11a0004e90): select * from t2 x, t2 y where (x.a <= 2 or (x.a,x.b) in ((0,0),
Connection ID (thread ID): 4
Single threaded run, single mysqld involved
Thread 1 (Thread 0x7f12043ed700 (LWP 1351)):
+bt
#0 0x00007f120c9ed771 in pthread_kill () from /lib64/
#1 0x0000000000ab7586 in my_write_core (sig=11) at /mnt/workspace/
#2 0x000000000072f9ff in handle_fatal_signal (sig=11) at /mnt/workspace/
#3 <signal handler called>
#4 0x00007f120b709080 in __memmove_
#5 0x00000000008456d8 in String::copy (this=0x7f11a10
#6 0x00000000006915a0 in cmp_item_
#7 0x0000000000686b6a in cmp_item_
#8 0x0000000000687f74 in Item_func_
#9 0x00000000006ad302 in Item_func:
#10 0x0000000000687353 in Item_func_
#11 0x0000000000688e49 in Item_cond:
#12 0x0000000000688e49 in Item_cond:
#13 0x000000000077cc83 in setup_conds (thd=0x3449c20, tables=
#14 0x000000000080ea2b in setup_without_group (thd=0x3449c20, ref_pointer_
#15 0x000000000080c537 in JOIN::prepare (this=0x7f11a10
#16 0x0000000000813eeb in mysql_prepare_
#17 0x00000000008141c5 in mysql_select (thd=0x3449c20, tables=
#18 0x00000000008123a6 in handle_select (thd=0x3449c20, result=
#19 0x00000000007ea892 in execute_
#20 0x00000000007e2de9 in mysql_execute_
#21 0x00000000007ed193 in mysql_parse (thd=0x3449c20, rawbuf=
#22 0x00000000007df5fc in dispatch_command (command=COM_QUERY, thd=0x3449c20, packet=0x3c3a061 "select * from t2 x, t2 y where (x.a <= 2 or (x.a,x.b) in ((0,0),
#23 0x00000000007de528 in do_command (thd=0x3449c20) at /mnt/workspace/
#24 0x00000000008c2c30 in threadpool_
#25 0x00000000008c5572 in handle_event (connection=
#26 0x00000000008c57a2 in worker_main (param=0x1898400 <all_groups+2048>) at /mnt/workspace/
#27 0x0000000000dc5bac in pfs_spawn_thread (arg=0x3bfd040) at /mnt/workspace/
#28 0x00007f120c9e8df3 in start_thread () from /lib64/
#29 0x00007f120b6b201d in clone () from /lib64/libc.so.6
Related branches
- Laurynas Biveinis (community): Approve
- George Ormond Lorch III (community): Approve
-
Diff: 45 lines (+25/-0)3 files modifiedmysql-test/r/percona_bug1384568.result (+9/-0)
mysql-test/t/percona_bug1384568.test (+13/-0)
sql/table.cc (+3/-0)
summary: |
- mysqld got signal 11 ; on EXPLAIN (single threaded) | - handle_fatal_signal (sig=11) in __memmove_ssse3_back from String::copy + EXPLAIN crashes server |
tags: | added: upstream |
summary: |
- EXPLAIN crashes server + A query on empty table with BLOBs crashes server |
summary: |
- A query on empty table with BLOBs crashes server + A query on empty table with BLOBs may crash server |
DROP DATABASE test;CREATE DATABASE test;USE test; (5,0),( 4,3))) and y.a=x.d and y.b=x.b;
CREATE TABLE t1(a INT KEY,B TEXT)ENGINE=InnoDB;
explain extended select * FROM t1 x,t1 y where(x.a=2 or (x.a,x.b)in ((0,0),