[MDEV-16957] Server crashes in Field_iterator_natural_join::next upon 2nd execution of SP Created: 2018-08-13 Updated: 2021-02-21 Resolved: 2018-08-31 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Stored routines |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3 |
| Fix Version/s: | 5.5.62, 10.0.37, 10.1.36, 10.2.18, 10.3.10 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | affects-tests | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Reproducible with at least MyISAM and InnoDB. On some builds it causes effects described in MDEV-16789, and in general it's similar, only this crashes on all of 5.5-10.3. |
| Comments |
| Comment by Elena Stepanova [ 2018-08-21 ] |
|
Badly affects tests |
| Comment by Oleksandr Byelkin [ 2018-08-29 ] |
|
It looks like problem is in bad cleanup of join setup after error |
| Comment by Oleksandr Byelkin [ 2018-08-30 ] |
|
The problem was that join_columns creation was not finished due to error of notfound column in USING, but next execution tried to use join_columns lists. |
| Comment by Oleksandr Byelkin [ 2018-08-30 ] |
|
revision-id: 1e40186998b1c609059f8840f05af031f68b6647 (mariadb-5.5.61-10-g1e40186998b)
The problem was that join_columns creation was not finished due to error of notfound column in USING, but next execution tried to use join_columns lists. Solution is cleanup the lists on error. It can eat memory in statement MEM_ROOT but it is an error and error will be fixed or statement/procedure removed/altered. — |
| Comment by Oleksandr Byelkin [ 2018-08-30 ] |
|
revision-id: 10edeb4d0292d52e06e66dbe19e6a80ea903a64a (mariadb-5.5.61-10-g10edeb4d029)
The problem was that join_columns creation was not finished due to error of notfound column in USING, but next execution tried to use join_columns lists. Solution is cleanup the lists on error. It can eat memory in statement MEM_ROOT but it is an error and error will be fixed or statement/procedure removed/altered. — |
| Comment by Oleksandr Byelkin [ 2018-08-31 ] |
|
revision-id: a69cb800d3a2001589dea6f2b189d4aeee661e60 (mariadb-5.5.61-10-ga69cb800d3a)
The problem was that join_columns creation was not finished due to error of notfound column in USING, but next execution tried to use join_columns lists. Solution is cleanup the lists on error. It can eat memory in statement MEM_ROOT but it is an error and error will be fixed or statement/procedure removed/altered. — |
| Comment by Sergei Petrunia [ 2018-08-31 ] |
|
Ok to push |