[MDEV-21997] Server crashes in LEX::create_item_ident_sp upon use of unknown identifier Created: 2020-03-22 Updated: 2021-04-19 Resolved: 2020-07-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Parser |
| Affects Version/s: | 10.4, 10.5 |
| Fix Version/s: | 10.4.14, 10.5.5 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Reproducible on 10.4-10.5, on debug and non-debug alike.
10.3 does not crash, but it doesn't detect the unknown identifier, either, which might be wrong. |
| Comments |
| Comment by Alexander Barkov [ 2020-06-03 ] | |||||||||||||||||||||||||||||||||||
|
Repeatable with the following scripts:
| |||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2020-06-03 ] | |||||||||||||||||||||||||||||||||||
|
sanja, this crash is related to select stack refactoring. Reassigning to you. | |||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2020-07-21 ] | |||||||||||||||||||||||||||||||||||
|
commit ec20992e1ecd928be5dee65c272e54de369c0c48 (HEAD If there is no current_select and variable is not found among SP variables it can be only an error. | |||||||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2020-07-22 ] | |||||||||||||||||||||||||||||||||||
|
The patch github.com/MariaDB/server/commit/ec20992e1ecd928be5dee65c272e54de369c0c48 looks OK to push. Thanks. |