Bug #19136 | Crashing log-bin and uninitialized user variables in a derived table | ||
---|---|---|---|
Submitted: | 17 Apr 2006 9:23 | Modified: | 13 May 2006 4:45 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 4.1.18,5.0.19, 5.0.20, 5.0-bk | OS: | Linux (RHEL4, Windows) |
Assigned to: | Andrei Elkin | CPU Architecture: | Any |
[17 Apr 2006 9:23]
Shane Bester
[17 Apr 2006 9:27]
MySQL Verification Team
bt full (I masked the original query)
Attachment: gdb_1_thread_sensored.txt (plain/text, text), 3.54 KiB.
[17 Apr 2006 11:21]
MySQL Verification Team
Updated synopsis. How to repeat: start server as mysqld --log-bin: launch new client connection and run: <snip> DROP TABLE IF EXISTS t1; CREATE TABLE t1(id INT); INSERT INTO t1(id) VALUES(1),(2),(3); #SET @var1=1; #SET @var2=2; INSERT INTO t1 SELECT id FROM ( SELECT id FROM t1 WHERE id BETWEEN @var1 AND @var2 UNION SELECT id FROM t1 WHERE id BETWEEN @var1 AND @var2 ) AS t2 ; </snip> If you uncomment the above #SET lines, no crash occurs. If you start a server without binlogging, no crash occurs.
[19 Apr 2006 18:03]
MySQL Verification Team
Affects 4.1.18 also..
[5 May 2006 8:21]
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/5994
[5 May 2006 13:39]
Andrei Elkin
Mats approved.
[7 May 2006 16:55]
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/6069
[12 May 2006 9:46]
Andrei Elkin
fixed in 4.1.20, 5.0.22, 5.1.11-beta
[13 May 2006 4:45]
Paul DuBois
Noted in 4.1.20, 5.0.22, 5.1.11 changelogs. Use of uninitialized user variables in a subquery in the <literal>FROM</literal> clause results in bad entries in the binary log.