[MDEV-3598] LP:627370 - 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement Created: 2010-08-31 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip Stoev (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
When after executing the following queries: 7 Query /* GenTest::Transform::ExecuteAsPreparedTwice */ PREPARE prep_stmt_12942 FROM ' SELECT table1 . `pk` AS field1 , table1 . `pk` AS field2 , table2 . `col_int` AS field3 , MIN( table1 . `pk` ) AS field4 FROM AA AS table1 LEFT JOIN D AS table2 ON table1 . `pk` = table2 . `col_int_key` RIGHT JOIN I AS table3 ON table1 . `col_int_key` = table3 . `col_int_key` WHERE ( table2 . `col_int` IS NULL OR table3 . `pk` IS NULL ) GROUP BY field1, field2, field3 ORDER BY field1, field2, field3, field4 LIMIT 2 ' the server entered into a 100% CPU loop with the following backtrace: #0 find_field_in_tables (thd=0xadf6e90, item=0x99be4980, first_table=0xaec871e0, last_table=0x0, ref=0x9a0dc24c, report_error=IGNORE_ERRORS, bzr version-info: revision-id: <email address hidden> |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2010-08-31 ] |
|
Re: 100% CPU loop in find_field_in_tables Test case: CREATE TABLE `AA` ( PREPARE st1 FROM 'SELECT table1 . `pk` AS field1 , table1 .`pk` AS field2 , table2 . `col_int` AS field3 , MIN( table1 . `pk` ) AS field4 EXECUTE st1; |
| Comment by Philip Stoev (Inactive) [ 2011-09-05 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement |
| Comment by Oleksandr Byelkin [ 2011-09-08 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement |
| Comment by Oleksandr Byelkin [ 2011-09-08 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement |
| Comment by Philip Stoev (Inactive) [ 2011-09-08 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement |
| Comment by Philip Stoev (Inactive) [ 2011-09-08 ] |
|
A new, unsimplified test case. |
| Comment by Oleksandr Byelkin [ 2012-03-23 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement |
| Comment by Oleksandr Byelkin [ 2012-03-27 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement create table t1 (a int, b int); select t1.b, t2.b from t1 right join t2 on (t2.a=t1.a) where t1.a > 5; drop table t1, t2; |
| Comment by Oleksandr Byelkin [ 2012-03-27 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement |
| Comment by Oleksandr Byelkin [ 2012-03-27 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement prepare st1 from 'SELECT alias1 . `pk` AS field1 |
| Comment by Oleksandr Byelkin [ 2012-03-27 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement |
| Comment by Timour Katchaounov (Inactive) [ 2012-05-07 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement
|
| Comment by Timour Katchaounov (Inactive) [ 2012-05-07 ] |
|
Re: 100% CPU loop in find_field_in_tables on 2nd execution of a prepared statement revno: 2661.806.1 This bug is a duplicate of bug 12567331, which was pushed to the |
| Comment by Rasmus Johansson (Inactive) [ 2012-05-07 ] |
|
Launchpad bug id: 627370 |