| Bug #13545 | Server crash caused by select query | ||
|---|---|---|---|
| Submitted: | 27 Sep 2005 21:12 | Modified: | 30 Sep 2005 17:36 |
| Reporter: | Olaf van der Spek (Basic Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
| Version: | 5.0.14-rc BK source | OS: | Linux (Linux/Windows) |
| Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[27 Sep 2005 21:12]
Olaf van der Spek
[27 Sep 2005 21:21]
Olaf van der Spek
Reduced test case: drop table if exists attachment; drop table if exists post; drop table if exists xbt_files; drop table if exists xbt_files_users; CREATE TABLE `attachment` ( `postid` int, `bt_info_hash` blob ); CREATE TABLE `post` ( `postid` int ); CREATE TABLE `xbt_files` ( `info_hash` blob ); CREATE TABLE `xbt_files_users` ( `info_hash` blob, `uid` int ); select ifnull(xf.completed, 0) completed from xbt_files xf inner join xbt_files_users xfu on xf.info_hash = xfu.info_hash inner join attachment a on a.bt_info_hash = xf.info_hash inner join post p using (postid);
[27 Sep 2005 21:25]
Olaf van der Spek
5.0.12-beta-Debian_2-log is also affected, so changing version from MySQL 5.0.13-rc-nt to * and OS to *.
[27 Sep 2005 21:27]
MySQL Verification Team
Thank you for the bug report.
mysql> select ifnull(xf.completed, 0) completed
-> from xbt_files xf
-> inner join xbt_files_users xfu on xf.info_hash = xfu.info_hash
-> inner join attachment a on a.bt_info_hash = xf.info_hash
-> inner join post p using (postid);
ERROR 2013 (HY000): Lost connection to MySQL server during query
050927 18:20:36 [Note] libexec/mysqld: ready for connections.
Version: '5.0.14-rc-debug' socket: '/tmp/mysql.sock' port: 3306 Source distribution
mysqld got signal 11;
Some pointers may be invalid and cause the dump to abort...
thd->query at 0x8e637d0 = select ifnull(xf.completed, 0) completed
from xbt_files xf
inner join xbt_files_users xfu on xf.info_hash = xfu.info_hash
inner join attachment a on a.bt_info_hash = xf.info_hash
inner join post p using (postid)
thd->thread_id=2
The manual page at http://www.mysql.com/doc/en/Crashing.html contains
information that should help you find out what is causing the crash.
miguel@hegel:~/dbs/5.0>
[29 Sep 2005 14:36]
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/internals/30512
[30 Sep 2005 8:08]
Ramil Kalimullin
fixed in 5.0.14
[30 Sep 2005 17:36]
Paul DuBois
Noted in 5.0.14 changelog.
