[MDEV-31304] Assertion failure in trx_rollback_last_sql_stat_for_mysql Created: 2023-05-18 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Stored routines, XA |
| Affects Version/s: | 10.5, 10.6, 10.8, 10.9, 10.10, 10.11, 11.0 |
| Fix Version/s: | 10.5, 10.6, 10.11, 11.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Reproducible on debug- and non-debug builds alike. The failure started happening after this commit in 10.5.4:
|
| Comments |
| Comment by Elena Stepanova [ 2023-05-18 ] | ||||||||||||||||||||||||||||||||
|
Despite the commit header, there are a lot of "other things" in that commit, which is why I'm pasting the whole commit comment. | ||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2023-05-18 ] | ||||||||||||||||||||||||||||||||
|
For the record, an almost identical test case (EXPLAIN instead of SELECT, otherwise the same) produces a somewhat different stack trace.
| ||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2023-05-19 ] | ||||||||||||||||||||||||||||||||
|
This seems to be a bug with stored routines. If I replace the function call
with the equivalent SQL statement
then the error will be properly caught and reported outside the storage engine layer:
|