Crash / segfault in drizzled::Item_func::arguments (this=0x35) at ./drizzled/function/func.h:165
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
High
|
Andrew Hutchings | ||
7.0 |
Fix Released
|
High
|
Andrew Hutchings |
Bug Description
Crashing bug / segfault:
Query:
SELECT SQL_SMALL_RESULT table1 . `col_bigint_key` AS field1 FROM ( CC AS table1 RIGHT JOIN ( ( BB AS table2 LEFT JOIN BB AS table3 ON (table3 . `col_char_
Backtrace:
#0 0x00000000006b0b28 in drizzled:
#1 0x00000000007c4096 in propagate_
#2 0x00000000007c460a in drizzled:
at drizzled/
#3 0x00000000006eeee5 in drizzled:
#4 0x00000000007be72d in drizzled:
og_num=5, order=0x7f66cc0
at drizzled/
#5 0x00000000007be071 in drizzled:
#6 0x00000000007ba67b in drizzled:
#7 0x0000000000813ebb in drizzled:
#8 0x00000000007ba206 in mysql_execute_
#9 0x00000000007bafc8 in drizzled:
inBuf=
#10 0x00000000007b9b5a in drizzled:
packet=
#11 0x000000000077d2e3 in drizzled:
#12 0x000000000077cb8f in drizzled:
#13 0x00007f66e472ab54 in MultiThreadSche
#14 0x00007f66e47289e2 in session_thread (arg=0x2d6c000) at plugin/
#15 0x00007f66e84389ca in start_thread (arg=<value optimized out>) at pthread_
#16 0x00007f66e81956fd in clone () at ../sysdeps/
#17 0x0000000000000000 in ?? ()
Related branches
- Drizzle Developers: Pending requested
-
Diff: 202 lines (+103/-16)4 files modifieddrizzled/sql_select.cc (+13/-11)
drizzled/sql_select.h (+2/-5)
tests/suite/regression/r/628912.result (+39/-0)
tests/suite/regression/t/628912.test (+49/-0)
- Drizzle Developers: Pending requested
-
Diff: 110 lines (+89/-1)3 files modifieddrizzled/sql_select.cc (+1/-1)
tests/suite/regression/r/628912.result (+39/-0)
tests/suite/regression/t/628912.test (+49/-0)
Changed in drizzle: | |
assignee: | nobody → Andrew Hutchings (linuxjedi) |
Test case:
--disable_warnings
DROP TABLE IF EXISTS `aa`;
DROP TABLE IF EXISTS `bb`;
DROP TABLE IF EXISTS `cc`;
--enable_warnings
CREATE TABLE `aa` ( int_not_ null` int NOT NULL
`pk` int NOT NULL DEFAULT '0',
`col_
) ENGINE=InnoDB COLLATE = utf8_general_ci;
INSERT INTO `aa` VALUES (1,-1974206464) ,(2,3), (3,-274595840) ,(4,295501824) ,(5,9), (6,2),( 7,-1601306624) ,(8,-1770323968 ),(9,256311296) ,(10,4) ;
CREATE TABLE `bb` ( char_1024_ not_null` varchar(1024) NOT NULL, char_10_ not_null_ key` varchar(10) NOT NULL, char_1024_ not_null_ key` varchar(1024) NOT NULL, int_not_ null_key` int NOT NULL
`pk` int NOT NULL DEFAULT '0',
`col_
`col_text` text,
`col_
`col_
`col_
) ENGINE=InnoDB COLLATE = utf8_general_ci;
INSERT INTO `bb` VALUES (1,'o', NULL,'DCJRX' ,'IHTVZ' ,1),(2, 'a',NULL, 'x','a' ,1),(3, 'have', NULL,'ZMHDL' ,'s',-153642598 4),(4,' u',NULL, 'SJGHS' ,'d',-144349593 6),(5,' o',NULL, 'his',' TTNNK', 2),(6,' r',NULL, 'm','GKTRR' ,0),(7, 'on',NULL, 'i','ZZDWO' ,8),(8, 'IMULJ' ,NULL,' d','up' ,476315648) ,(9,'DXSXG' ,NULL,' from',' would', 5),(10, 'y',NULL, 'h','JNAFV' ,5);
CREATE TABLE `cc` ( char_1024_ not_null_ key` varchar(1024) NOT NULL,
`pk` int NOT NULL DEFAULT '0',
`col_char_10_key` varchar(10) DEFAULT NULL,
`col_bigint_key` bigint DEFAULT NULL,
`col_
`col_int_key` int DEFAULT NULL,
`col_char_10` varchar(10) DEFAULT NULL
) ENGINE=InnoDB COLLATE = utf8_general_ci;
INSERT INTO `cc` VALUES (1,'the' ,3,'i', -1463025664, 'YUGVN' ),(2,'f' ,NULL,' XECLG', 1,'v'), (3,'CHXCP' ,8,'d', NULL,'DXDTX' ),(4,'o' ,NULL,' t',6,'KPDSD' ),(5,'then' ,-8566972391165 526016, 'u',6,' good'), (6,'PUPFZ' ,34652384382848 86016,' o',-1792737280, 'i'),(7, 'GBRLW' ,5,'c', NULL,'f' ),(8,'JIOBF' ,50865343041382 64576,' at',NULL, 'hey'), (9,'t', -55754563386846 74048,' ZNRQD', -697434112, 'oh'),( 10,'GSUJC' ,45841014707097 43616,' here',5, 'LTSIE' ),(11,' h',4,'o' ,NULL,' do'),(12, 'e',-5623870034 67890688, 'x',-590413824, 'y'),(13, 'IICAV' ,-4543569074063 409152, 'u',-1361444864 ,'AUKYO' ),(14,' ICGLZ', NULL,'LDJHS' ,4,'up' ),(15,' s',572632692620 1585664, 'UPJBO' ,-1007222784, 'got'), (16,'SLJVT' ,NULL,' m',1,'will' ),(17,' h',268555275279 6368896, 'good', 1218904064, 'get'), (18,'e' ,4,'some' ,-173867008, 't'),(19, 'of',5556878990 221770752, 'your', 1303904256, 'n'),(20, 'CMAUM' ,NULL,' BDKSY', NULL,'DKZIN' ),(21,' p',5,'HOAIC' ,4,'about' ),(22,' there', 5,'it\' s',NULL, 'h'),(23, 'FROKO' ,8,'EFUWM' ,-1373306880, 'r'),(24, 'q',NULL, 'h',-1661861888 ,'c'),( 25,'USSFF' ,6,'back' ,NULL,' v'),(26, 'MHEWI' ,84605748499688 98048,' ZGLZY', NULL,'okay' ),(27,' MGUNW', NULL,'h' ,1,'ARMAV' ),(28,' I',8,'SUIER' ,NULL,' y'),(29, 'would' ,NULL,' h',2,'NJMOR' ),(30,' w',5,'yeah' ,1109327872, 'XPTLS' ),(31,' QQRWR', -87276946028673 10592,' f',-118751232, 'z'),(32, 'MILUI' ,2,'b', NULL,'want' ),(33,' think', NULL,'e' ,NULL,' WJNIY') ,(34,'OLMSJ' ,NULL,' TYOJE', 1,'just' ),(35,' he',NULL, 'l',NULL, 'NXTLD' ),(36,' PRZKV', 9,'s',- 758710272, 'well') ,(37,'XSTUZ' ,4,'TJUWY' ,NULL,' you\'re' ),(38,' AQEZP', 453709514959906 4064,'i' ,NULL,' and'),( 39,'she' ,4,'he\ 's',7,' FLKCN') ,(40,'ASQVK' ,33002941019324 41600,' they',4, 'but'), (41,'n' ,15095503000992 48128,' EOKCZ', 1064828928, 'RYFVG' ),(42,' PWKPB', NULL,'have' ,-228655104, 'u'),(43, 'SLXQG' ,14237004322024 98048,' AILLJ', 1790443520, 'of'),( 44,'BJDGL' ,71801451809121 23904,' when',1, 'y'),(45, 'they', NULL,'z' ,NULL,' HVBAT') ,(46,'UYZTE' ,9,'how. ..