[MDEV-8114] server crash on updates with joins still on 10.0.18 Created: 2015-05-07 Updated: 2015-06-06 Resolved: 2015-06-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery, Data Manipulation - Update |
| Affects Version/s: | 5.5.43, 10.0.18 |
| Fix Version/s: | 5.5.44, 10.0.20 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Max Bubenick | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | crash, verified | ||
| Environment: |
any |
||
| Issue Links: |
|
||||||||
| Sprint: | 5.5.44 | ||||||||
| Description |
|
The bug still on 10.0.18
|
| Comments |
| Comment by Elena Stepanova [ 2015-05-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Sorry about that.
The test case is in | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Moshe L [ 2015-06-01 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I am using the last version (10.0.19) and from times to times see this error message on the slave. I am thinking that is the same error, but not sure.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-06-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
join_tab has somehow unassigned reference to JOIN (valgrund?) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-06-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
valgrind shows several problems but they looks like part of bigger problem of using something uninitialiyed... The interesting moment is only check of unsigned of fixed Item which has uninitialized value... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-06-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
One of the problem is that leaf list stored before preparing subqueries | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-06-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
--source include/have_innodb.inc CREATE TABLE `t1` ( CREATE TABLE `t2` ( CREATE TABLE `t3` ( CREATE TABLE `t4` ( CREATE ALGORITHM=UNDEFINED VIEW `v1` AS select `t4`.`c1` AS `c1`,`t4`.`c2` AS `c2`,`t4`.`c3` AS `c3` from `t4`; UPDATE t1 a JOIN t2 b ON a.c1 = b.c1 JOIN v1 vw ON b.c2 = vw.c1 JOIN t3 del ON vw.c2 = del.c2 SET a.c2 = ( SELECT max(t.c1) FROM t3 t, v1 i WHERE del.c2 = t.c2 AND vw.c3 = i.c3 AND t.c3 = 4 ) WHERE a.c2 IS NULL OR a.c2 < '2011-05-01'; drop view v1; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2015-06-04 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
revision-id: d4b5dd21a91085cf434c5838d28f3436b50c6719
Check that leaf table list is really built before storing it. — | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2015-06-05 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Ok to push. |