[MDEV-9619] Assertion `null_ref_table' failed in virtual table_map Item_direct_view_ref::used_tables() const on 2nd execution of PS Created: 2016-02-23 Updated: 2017-10-13 Resolved: 2017-10-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer, Prepared Statements |
| Affects Version/s: | 5.5.43, 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 5.5.58, 10.0.33, 10.1.29, 10.2.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Sprint: | 5.5.55, 5.5.58 |
| Description |
|
The problem appeared in 5.5 tree with this revision:
|
| Comments |
| Comment by Oleksandr Byelkin [ 2017-02-16 ] |
|
It looks like f1 lost its NULL reference table |
| Comment by Oleksandr Byelkin [ 2017-02-16 ] |
|
f1 was never inner table of outer JOIN so it does not need NULL table reference |
| Comment by Oleksandr Byelkin [ 2017-02-16 ] |
|
So it must (and was) set to 0x1 (NO_NULL_TABLE) but somehow was reset. |
| Comment by Oleksandr Byelkin [ 2017-02-16 ] |
|
the field was cleaned up, but fix_field() was not called for it again. |
| Comment by Oleksandr Byelkin [ 2017-02-16 ] |
|
It looks like saving old link on Item when other already allocated |
| Comment by Oleksandr Byelkin [ 2017-02-16 ] |
|
The link on the old item stuck in sj_outer_expr_list |
| Comment by Oleksandr Byelkin [ 2017-02-16 ] |
|
Need to discuss sj_outer_expr_list & convert_subq_to_sj() with psergey |
| Comment by Oleksandr Byelkin [ 2017-02-18 ] |
|
revision-id: e0a1e632e4e6084cd989f217943618f4e9ac9179 (mariadb-5.5.54-25-ge0a1e63)
Refer left expression indirectly in case it changes from execution to execution. — |
| Comment by Oleksandr Byelkin [ 2017-02-18 ] |
|
bb-5.5- |
| Comment by Oleksandr Byelkin [ 2017-02-22 ] |
|
revision-id: ffa50282e2ba147019e77972ae14972d77a0354b (mariadb-5.5.54-30-gffa5028)
Refer left expression indirectly in case it changes from execution to execution. — |
| Comment by Oleksandr Byelkin [ 2017-02-27 ] |
|
revision-id: 144b1552d2c3dced53d8e111e213117861ff8b95 (mariadb-5.5.54-38-g144b155)
Refer left expression indirectly in case it changes from execution to execution. — |
| Comment by Elena Stepanova [ 2017-09-03 ] |
|
10.3 is also affected. |