Crash / segfault in add_found_match_trig_cond (tab=0x0, cond=0x1c778c8, root_tab=0x1c82c80) at drizzled/sql_select.cc:1209
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
High
|
Andrew Hutchings | ||
7.0 |
Fix Released
|
High
|
Andrew Hutchings |
Bug Description
Crashing bug / segfault. Similar to https:/
Query (test case attached):
SELECT STRAIGHT_JOIN table1 . `col_int_key` AS field1
FROM o AS table1 RIGHT OUTER JOIN b AS table2 LEFT JOIN f AS table3 ON table2 . `col_varchar_
Backtrace:
Program terminated with signal 11, Segmentation fault.
#0 add_found_
1209 if ((tmp= add_found_
(gdb) backtrace
#0 add_found_
#1 0x00000000005a660d in make_join_select (join=0x1c78dd0, select=<value optimized out>, cond=<value optimized out>) at drizzled/
#2 0x00000000005a99a8 in drizzled:
#3 0x000000000062a625 in drizzled:
og_num=2, order=0x1c78ce8, group=0x1c78b50, having=0x0, select_
at drizzled/
#4 0x000000000062afa0 in drizzled:
#5 0x0000000000624e23 in drizzled:
#6 0x0000000000624a3e in mysql_execute_
#7 drizzled:
#8 0x0000000000626e12 in drizzled:
packet=
#9 0x00000000005f508a in drizzled:
#10 0x00000000005f8132 in drizzled:
#11 0x00007f73f7193344 in MultiThreadSche
#12 session_thread (arg=<value optimized out>) at plugin/
#13 0x00007f73fad7b9ca in start_thread (arg=<value optimized out>) at pthread_
#14 0x00007f73faad86fd in clone () at ../sysdeps/
#15 0x0000000000000000 in ?? ()
Related branches
- Drizzle Developers: Pending requested
-
Diff: 46 lines (+19/-5)1 file modifieddrizzled/join.cc (+19/-5)
tags: | added: crash |
test-suite testcase:
try to record via ./test-run --record <test_case_name>
--disable_warnings
DROP TABLE IF EXISTS `o`;
DROP TABLE IF EXISTS `b`;
DROP TABLE IF EXISTS `f`;
DROP TABLE IF EXISTS `c`;
DROP TABLE IF EXISTS `e`;
DROP TABLE IF EXISTS `g`;
--enable_warnings
CREATE TABLE `o` (
`pk` int NOT NULL DEFAULT '0',
`col_int_key` int DEFAULT NULL
) ENGINE=InnoDB COLLATE = utf8_general_ci;
INSERT INTO `o` VALUES (1,4);
INSERT INTO `o` VALUES (2,-867368960);
INSERT INTO `o` VALUES (3,655032320);
INSERT INTO `o` VALUES (4,1);
INSERT INTO `o` VALUES (5,NULL);
INSERT INTO `o` VALUES (6,-118751232);
INSERT INTO `o` VALUES (7,7);
INSERT INTO `o` VALUES (8,1);
INSERT INTO `o` VALUES (9,3);
INSERT INTO `o` VALUES (10,-518324224);
INSERT INTO `o` VALUES (11,7);
INSERT INTO `o` VALUES (12,1129709568);
INSERT INTO `o` VALUES (13,-2081357824);
INSERT INTO `o` VALUES (14,6);
INSERT INTO `o` VALUES (15,NULL);
INSERT INTO `o` VALUES (16,NULL);
INSERT INTO `o` VALUES (17,NULL);
INSERT INTO `o` VALUES (18,NULL);
INSERT INTO `o` VALUES (19,4);
INSERT INTO `o` VALUES (20,1049690112);
INSERT INTO `o` VALUES (21,NULL);
INSERT INTO `o` VALUES (22,5);
INSERT INTO `o` VALUES (23,431292416);
INSERT INTO `o` VALUES (24,2);
INSERT INTO `o` VALUES (25,6);
CREATE TABLE `b` ( varchar_ 1024_key` varchar(1024) DEFAULT NULL, varchar_ 10_key` varchar(10) DEFAULT NULL, 'she',' okay',' we');
`pk` int NOT NULL DEFAULT '0',
`col_int_key` int DEFAULT NULL,
`col_
`col_
`col_varchar_10` varchar(10) DEFAULT NULL
) ENGINE=InnoDB COLLATE = utf8_general_ci;
INSERT INTO `b` VALUES (1,NULL,
CREATE TABLE `f` ( varchar_ 1024_key` varchar(1024) DEFAULT NULL -180486144, 'can\'t' ); NULL,'gbawadfsz kpoyxyczdvoleqx ermmjkovqnoqhpu bzfjxwqacdiwyek wemegyaluzytncc flbvqnqnmfvvlhi tckzgppyilihmle ccmmxqxcilxqvfi kqseftdkgtlqzbw pucapktdeqxndcq ytizhxaaiyashfu wbyynvenjcsmask lnxxtbzrqxmoupp pjcctptgoksleiz xkrbednzzwgvlnn ghjvvtlpajyalhs ygtjrhjxreywihg nxlevtsvfzsztft gvgzkqhwpnbztbc poqdmhgjffokjvo aejwgqpnhemopbm rkfnkwngdjiawsi arcbkgoudqpkecy mujxlwfzdeqnrum ctcfmndgknecfzk ndoohlpkgksukys orfgkvvkreijhly hznczsxfdezymeq jpdeydhvhrxolrl xmxxdmajqwizwmy vustnzbrbopxmsp xnazyxzmuysgonf ckdeurqnroljslh dnjmdetcftzsrkj zmhimfmsbhnsgri qkaejakxzbldvft dcaugaahtcwtnuj xmwqvkfepcswvrv qhibmuutnuhmvcn ctfzmswcmtsrpmy edqxpoluufzbhwb rmcdiwytofotjit '); NULL,'think' ); 'jqgbawadfszkpo yxyczdvoleqxerm mjkovqnoqhpubzf jxwqacdiwyekwem egyaluzytnccflb vqnqnmfvvlhitck zgppyilihmleccm mxqxcilxqvfikqs eftdkgtlqzbwpuc apktdeqxndcqyti zhxaaiyashfuwby ynvenjcsmasklnx xtbzrqxmoupppjc ctptgoksleizxkr bednzzwgvlnnghj vvtlpajyalhsygt jrhjxreywihgnxl evtsvfzsztftgvg zkqhwpnbztbcpoq dmhgjffokjvoaej wgqpnhemopbmrkf nkwngdjiawsiarc bkgoudqpkecymuj xlwfzdeqnrumctc fmndgknecfzkndo ohlpkgksukysorf gkvvkreijhlyhzn czsxfdezymeqjpd eydhvhrxolrlxmx xdm');
`pk` int NOT NULL DEFAULT '0',
`col_int` int DEFAULT NULL,
`col_int_key` int DEFAULT NULL,
`col_
) ENGINE=InnoDB COLLATE = utf8_general_ci;
INSERT INTO `f` VALUES (1,1230307328,
INSERT INTO `f` VALUES (2,NULL,
INSERT INTO `f` VALUES (3,NULL,
INSERT INTO `f` VALUES (4,0,NULL,
INSERT INTO `f` VALUES (5,2,0,'u');
INSERT INTO `f` VALUES (6,1,NULL,'your');
INSERT INTO `f` VALUES (7,NULL,9,'at');
CREATE TABLE `c` (
`pk` int NOT NULL DEF...