[MDEV-30791] killed query shows in processlist forever Created: 2023-03-06 Updated: 2023-03-07 Resolved: 2023-03-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.6.9 |
| Fix Version/s: | 10.6.10, 10.7.6, 10.8.5, 10.9.3, 10.10.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Allen Lee (Inactive) | Assignee: | Marko Mäkelä |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
There are 2 problems: 1. SET STATEMENT max_statement_time=XXX select .. query did not kill itself once it passed max_statement_time. 2. show proceslist shows above session as killed, but innodb status shows it is running. |
| Comments |
| Comment by Marko Mäkelä [ 2023-03-07 ] | ||||||||||||||||||||||||||||||||
|
Here is the relevant part of the stack trace output:
Even though it looks like the debug information for mariadbd was not installed (we can see it being installed for {{libstdc++ in frame 1 above), in this case all we need to know is the line number. This hang is a duplicate of
At least one thread will remain blocked and one in an infinite loop. Among the stack traces, we have several threads waiting in buf0buf.cc:2584 (possibly on different page latches; the information is not available), at least 2 in buf0buf.cc:2536 and some in buf0buf.cc:2630. Let us check those lines as well:
The fix of |