Bug #2048 | some subselect queries crashes mysqld in case of innodb tables | ||
---|---|---|---|
Submitted: | 8 Dec 2003 12:12 | Modified: | 17 Jan 2004 3:04 |
Reporter: | Aleksey Kishkin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.1.2-alfa | OS: | Linux (Linux slackware 9.0) |
Assigned to: | Oleksandr Byelkin | CPU Architecture: | Any |
[8 Dec 2003 12:12]
Aleksey Kishkin
[8 Dec 2003 12:13]
Aleksey Kishkin
perl dbi script to reproduce this bug
Attachment: testcase.pl (application/octet-stream, text), 1.73 KiB.
[9 Dec 2003 4:02]
Oleksandr Byelkin
Thank you for bugreport, but I can't repeat it on current 4.1 tree (with your data from testcase.pl): + select (select max(id) from bench6 where b=1 group by b) as x,b from bench5 where b=1; + x b + 902 1 + 902 1 + 902 1 + 902 1 + 902 1 + 902 1 + 902 1 + 902 1 + 902 1 + 902 1 feel free to reopen ticket if you know how to repeat it.
[9 Dec 2003 4:41]
Oleksandr Byelkin
OK, I found my problem tables was creted with wrong type
[9 Dec 2003 6:02]
Heikki Tuuri
Hi! This looks like this could be yet another case of releasing the MySQL table locks too early. I will add some diagnostic printf to InnoDB to print an error message if MySQL tries to perform a SELECT on an already committed transaction. In the AUTOCOMMIT=1 mode, InnoDB commits the transaction when thne last MySQL table lock is released in ::external_lock(). Regards, Heikki
[10 Dec 2003 12:50]
Oleksandr Byelkin
ChangeSet 1.1665 03/12/10 22:46:14 bell@sanja.is.com.ua +6 -0 fixed unlocking tables during subquery execution (BUG#2048)
[17 Jan 2004 3:04]
Oleksandr Byelkin
Thank you for bugreport, patch for this bug is pushed to our source repository