Crash/segfault in drizzled::subselect_single_select_engine::exec (this=0x19a7008) at drizzled/item/subselect.cc:2204
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Medium
|
PrafullaT | ||
Dexter |
Fix Released
|
Medium
|
PrafullaT |
Bug Description
The randgen test order_by_validator (using subquery_
Proper test-suite test case is coming
Crashing query:
SELECT DISTINCT MIN(DISTINCT OUTR . `col_bigint_key` ) AS X FROM AA AS OUTR WHERE ( OUTR . `col_bigint` , OUTR . `col_int_not_null` ) IN ( SELECT DISTINCT INNR . `pk` AS X , INNR . `col_int_key` AS Y FROM CC AS INNR2 LEFT JOIN BB AS INNR ON ( INNR2 . `col_char` <> INNR . `col_char` ) WHERE OUTR . `col_char_
Backtrace:
#0 0x0000000000573628 in drizzled:
#1 0x0000000000575bb8 in drizzled:
#2 drizzled:
#3 0x0000000000572fd7 in drizzled:
#4 0x0000000000550c8c in drizzled:
#5 0x000000000054901c in drizzled:
#6 0x00000000005501f9 in drizzled:
#7 0x000000000054ffad in drizzled:
#8 0x0000000000588584 in drizzled:
#9 0x00000000006134ee in drizzled:
#10 0x00000000006185e0 in drizzled::do_select (join=0x1a77b28, fields=0x1a791a0, table=0x0) at drizzled/
#11 0x000000000058dfbc in drizzled:
#12 0x0000000000614822 in drizzled:
conds=<value optimized out>, og_num=2, order=0x1a778e0, group=0x0, having=0x1a77658, select_
at drizzled/
#13 0x0000000000615120 in drizzled:
#14 0x000000000060ecd5 in drizzled:
#15 0x000000000060e94e in mysql_execute_
#16 drizzled:
#17 0x0000000000610b12 in drizzled:
at drizzled/
#18 0x00000000005de61f in drizzled:
#19 0x00000000005dffe2 in drizzled:
#20 0x00007f2ecfa39083 in MultiThreadSche
#21 session_thread (arg=<value optimized out>) at plugin/
#22 0x00007f2ed38c09ca in start_thread (arg=<value optimized out>) at pthread_
#23 0x00007f2ed361e6cd in clone () at ../sysdeps/
#24 0x0000000000000000 in ?? ()
Related branches
- Brian Aker: Approve
-
Diff: 32 lines (+4/-0)1 file modifieddrizzled/join.cc (+4/-0)
Changed in drizzle: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in drizzle: | |
assignee: | nobody → Prafulla Tekawade (prafulla-tekawade) |
Changed in drizzle: | |
status: | Fix Committed → Fix Released |
Changed in drizzle: | |
milestone: | none → 2010-07-19 |
Test case. Attempting to record this test will demonstrate the crash
DROP TABLE IF EXISTS `aa`; char_not_ null_key` varchar(1) NOT NULL, int_not_ null` int NOT NULL, text_not_ null` text NOT NULL, not_null_ key` (`col_char_ not_null_ key`),
CREATE TABLE `aa` (
`pk` int NOT NULL AUTO_INCREMENT,
`col_
`col_int` int DEFAULT NULL,
`col_bigint` bigint DEFAULT NULL,
`col_bigint_key` bigint DEFAULT NULL,
`col_
`col_
PRIMARY KEY (`pk`),
KEY `col_char_
KEY `col_bigint_key` (`col_bigint_key`)
) ENGINE=InnoDB;
INSERT INTO `aa` VALUES (1,'a', NULL,2125417549 142163456, 174795960537317 3760,9, ''),(2, 'n',733020160, 532972868401627 1360,-366452272 1796030464, -2059927552, ''),(3, 'o',1023148032, 441887565938058 8544,9, 1967128576, ''),(4, 'r',NULL, NULL,2, 6,''),( 5,'k',- 15728640, 6,-421930990089 273344, -704249856, ''),(6, 'p',NULL, NULL,-284289726 4777625600, 90570752, ''),(7, 't',2,- 474735695720192 4096,-470260243 5904929792, 1734213632, ''),(8, 'd',3,- 756745474886598 6560,NULL, 9,''),( 9,'t',150555852 8,NULL, -57266084011782 96320,- 1584463872, ''),(10, 'q',NULL, NULL,5418393301 68012800, 0,'');
DROP TABLE IF EXISTS `bb`;
CREATE TABLE `bb` (
`col_int_key` int DEFAULT NULL,
`pk` int NOT NULL AUTO_INCREMENT,
`col_char` varchar(1) DEFAULT NULL,
PRIMARY KEY (`pk`),
KEY `col_int_key` (`col_int_key`)
) ENGINE=InnoDB;
INSERT INTO `bb` VALUES (-622067712, 1,'h'), (858587136, 2,'p'), (-1110966272, 3,'w'), (2,4,'f' ),(546701312, 5,'k'), (4,6,'m' ),(6,7, 'z'),(NULL, 8,'h'), (2,9,'y' ),(NULL, 10,'t') ;
DROP TABLE IF EXISTS `cc`;
CREATE TABLE `cc` (
`col_char` varchar(1) DEFAULT NULL,
`pk` int NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`pk`)
) ENGINE=InnoDB;
INSERT INTO `cc` VALUES ('h',1) ,('m',2) ,('m',3) ,('c',4) ,('h',5) ,('w',6) ,('a',7) ,('I',8) ,('i',9) ,('n',10) ,('s',11) ,('m',12) ,('e',13) ,('f',14) ,('u',15) ,('I',16) ,('v',17) ,('j',18) ,('h',19) ,('l',20) ,('y',21) ,('w',22) ,('n',23) ,('t',24) ,('t',25) ,('f',26) ,('f',27) ,('w',28) ,('y',29) ,('t',30) ,('j',31) ,('i',32) ,('j',33) ,('q',34) ,('s',35) ,('o',36) ,('b',37) ,('s',38) ,('h',39) ,('w',40) ,('g',41) ,('t',42) ,('o',43) ,('h',44) ,('n',45) ,('i',46) ,('y',47) ,('e',48) ,('t',49) ,('n',50) ,('b',51) ,('k',52) ,('h',53) ,('k',54) ,('x',55) ,('f',56) ,('h',57) ,('q',58) ,('b',59) ,('i',60) ,('w',61) ,('c',62) ,('r',63) ,('n',64) ,('v',65) ,('g',66) ,('t',67) ,('e',68) ,('w',69) ,('b',70) ,('y',71) ,('n',72) ,('p',73) ,('r',74) ,('o',75) ,('w',76) ,('y',77) ,('p',78) ,('o',79) ,('w',80) ,('t',81) ,('j',82) ,('o',83) ,('m',84) ,('g',85) ,('x',86) ,('v',87) ,('w',88) ,('m',89) ,('o',90) ,('o',91) ,('w',92) ,('f',93) ,('p',94) ,('I',95) ,('c',96) ,('t',97) ,('a',98) ,('w',99) ,('s',100) ;
SELECT DISTINCT MIN(DISTINCT OUTR . `col_bigint_key` ) AS X FROM AA AS OUTR WHERE ( OUTR . `col_bigint` , OUTR . `col_int_not_null` ) IN ( SELECT DISTINCT INNR . `pk` AS X , INNR . `col_int_key` AS Y FROM CC AS INNR2 LEFT JOIN BB AS INNR ON ( INNR2 . `col_char` <> INNR . `col_char` ) WHERE OUTR . `col_char_ not_null_ key` IS NULL ) AND OUTR . `col_int` IS NULL XOR OUTR . `col_char_ not_null_ key` IS NOT NULL HAVING X >= '2000-03-23 22:49:30' ORDER BY OUTR . `col_text_not_null` , OUTR . `pk` ;
DROP TABLE AA;
DROP TABLE BB;
DROP TABLE CC;