Bug #53236 Segfault in DTCollation::set(DTCollation&)
| Submitted: | 28 Apr 2010 7:50 | Modified: | 23 Nov 2010 3:28 |
|---|---|---|---|
| Reporter: | Tor Didriksen | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
| Version: | Celosia, Dahlia, 6.0-codebase-bugfixing | OS: | Any |
| Assigned to: | Tor Didriksen | CPU Architecture: | Any |
[28 Apr 2010 7:50]
Tor Didriksen
[28 Apr 2010 10:53]
Tor Didriksen
Simplified test case for mtr:
CREATE TABLE t1 (
pk INTEGER AUTO_INCREMENT,
col_varchar VARCHAR(1),
PRIMARY KEY (pk)
)
;
INSERT INTO t1 (col_varchar)
VALUES
('w'),
('m')
;
SELECT table1 . pk
FROM ( t1 AS table1 JOIN t1 AS table2 ON (table1 . col_varchar = table2 . col_varchar ) )
WHERE ( 4, 6 ) IN ( SELECT SUBQUERY1_t1 . pk AS SUBQUERY1_field1 ,
SUBQUERY1_t1 . pk AS SUBQUERY1_field2
FROM ( t1 AS SUBQUERY1_t1 JOIN t1 AS SUBQUERY1_t2
ON (SUBQUERY1_t2 . col_varchar = SUBQUERY1_t1 . col_varchar ) ) )
;
drop table t1;
[28 Apr 2010 14:56]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/106852 3844 Tor Didriksen 2010-04-28 Bug#53236 Segfault in DTCollation::set(DTCollation&) Don't call member functions for a NIL pointer. @ mysql-test/r/subselect4.result Add test case. @ mysql-test/t/subselect4.test Add test case. @ sql/sql_select.cc If the (virtual) member function clone_item() returns NULL, there is no substitution to be made, and we don't need to set the collation. The test was invoking Item_cache::clone_item()
[29 Apr 2010 8:44]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/106900 3846 Tor Didriksen 2010-04-28 Bug#53236 Segfault in DTCollation::set(DTCollation&) Don't call member functions for a NIL pointer. @ mysql-test/r/subselect4.result Add test case. @ mysql-test/t/subselect4.test Add test case. @ sql/sql_select.cc If the (virtual) member function clone_item() returns NULL, there is no substitution to be made, and we don't need to set the collation. The test was invoking Item_cache::clone_item()
[29 Apr 2010 9:01]
Tor Didriksen
Pushed to bzr+ssh://bk-internal.mysql.com/bzrroot/server/mysql-6.0-codebase-bugfixing/
[7 May 2010 9:20]
Bugs System
Pushed into 6.0.14-alpha (revid:alik@sun.com-20100507091908-vqyhpwf2km0aokno) (version source revid:alik@sun.com-20100507091737-12vceffs11elb25g) (merge vers: 6.0.14-alpha) (pib:16)
[10 May 2010 9:30]
Tor Didriksen
The server could crash when processing subqueries with empty results.
[10 May 2010 14:28]
Paul DuBois
Noted in 6.0.14 changelog.
[18 May 2010 9:27]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/108486 3180 Tor Didriksen 2010-05-18 Bug#53236 Segfault in DTCollation::set(DTCollation&) Backport of tor.didriksen@sun.com-20100428145548-w2fk06r9bnlnqkzr Backported even though the test does not fail in this tree. Don't call member functions for a NIL pointer. @ mysql-test/r/subselect4.result Add test case. @ mysql-test/t/subselect4.test Add test case. @ sql/sql_select.cc If the (virtual) member function clone_item() returns NULL, there is no substitution to be made, and we don't need to set the collation. The test was invoking Item_cache::clone_item()
[17 Jun 2010 11:02]
Tor Didriksen
Verified that the bug exists in trunk-bugfixing, and that the patch from 6.0 fixes it.
[23 Jun 2010 6:13]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/111853 3070 Tor Didriksen 2010-06-23 Backport of Bug#53236 Segfault in DTCollation::set(DTCollation&) Don't call member functions for a NIL pointer. @ mysql-test/r/subselect4.result Add test case. @ mysql-test/t/subselect4.test Add test case. @ sql/sql_select.cc If the (virtual) member function clone_item() returns NULL, there is no substitution to be made, and we don't need to set the collation. The test was invoking Item_cache::clone_item()
[23 Jun 2010 6:28]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/111854 3266 Tor Didriksen 2010-06-23 [merge] Merge from trunk-bugfixing Backport of Bug#53236 Segfault in DTCollation::set(DTCollation&)
[23 Jun 2010 6:29]
Tor Didriksen
Backported and pushed to trunk-bugfixing. Merged and pushed to next-mr-bugfixing.
[23 Jul 2010 12:24]
Bugs System
Pushed into mysql-trunk 5.5.6-m3 (revid:alik@sun.com-20100723121820-jryu2fuw3pc53q9w) (version source revid:vasil.dimov@oracle.com-20100531152341-x2d4hma644icamh1) (merge vers: 5.5.5-m3) (pib:18)
[23 Jul 2010 12:31]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100723121929-90e9zemk3jkr2ocy) (version source revid:vasil.dimov@oracle.com-20100531152341-x2d4hma644icamh1) (pib:18)
[29 Jul 2010 19:18]
Paul DuBois
Noted in 5.5.6 changelog.
[4 Aug 2010 8:05]
Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@ibmvm-20100804080001-bny5271e65xo34ig) (version source revid:vasil.dimov@oracle.com-20100531152341-x2d4hma644icamh1) (merge vers: 5.5.5-m3) (pib:18)
[4 Aug 2010 8:21]
Bugs System
Pushed into mysql-trunk 5.6.1-m4 (revid:alik@ibmvm-20100804081533-c1d3rbipo9e8rt1s) (version source revid:vasil.dimov@oracle.com-20100531152341-x2d4hma644icamh1) (merge vers: 5.5.5-m3) (pib:18)
[4 Aug 2010 23:12]
Paul DuBois
Bug does not appear in any released 5.6.x version.
[16 Aug 2010 6:34]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100816062819-bluwgdq8q4xysmlg) (version source revid:alik@sun.com-20100816062612-enatdwnv809iw3s9) (pib:20)
[13 Nov 2010 16:18]
Bugs System
Pushed into mysql-trunk 5.6.99-m5 (revid:alexander.nozdrin@oracle.com-20101113155825-czmva9kg4n31anmu) (version source revid:vasil.dimov@oracle.com-20100629074804-359l9m9gniauxr94) (merge vers: 5.6.99-m4) (pib:21)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.059 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.