[MDEV-13232] Assertion `(&(&share->intern_lock)->m_mutex)->count > 0 && pthread_equal(pthread_self(), (&(&share->intern_lock)->m_mutex)->thread)' failed in _ma_state_info_write Created: 2017-07-02 Updated: 2018-04-23 Resolved: 2018-04-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer, Server, Storage Engine - Aria |
| Affects Version/s: | 10.3 |
| Fix Version/s: | 10.3.7 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||
| Description |
|
Reproducible on 10.3 with UNION, INTERSECT, EXCEPT.
|
| Comments |
| Comment by Oleksandr Byelkin [ 2018-02-21 ] | ||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-12 ] | ||||||||||||||||||||||||||
|
It is rnd_next failed:
| ||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-12 ] | ||||||||||||||||||||||||||
|
Trigger of the problem is type responce of @a which is max length string and trigger creation of aria table with a blob | ||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-13 ] | ||||||||||||||||||||||||||
|
SET @a= CAST('10' AS CHAR); CURRENT_TEST: main.test So probably temporary table lack check on column length. | ||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-13 ] | ||||||||||||||||||||||||||
|
Or it try to create varchar where blob is needed... | ||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-13 ] | ||||||||||||||||||||||||||
|
probably arithmetic operations should not let super-long maximum length path throug, because it will be error (or truncation with warning) or it will be converted and then length will not be more then max length for int/double/decimal | ||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-13 ] | ||||||||||||||||||||||||||
|
After discussing with bar : | ||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-16 ] | ||||||||||||||||||||||||||
|
revision-id: 1a8c82161aa2924c2bf368d376b967212f0d824f (mariadb-10.3.5-144-g1a8c82161aa)
Length of numegic function results limited by matsimum really possible length. (Problem was that negation did not limited it and then was not possible to create so long field) — | ||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-23 ] | ||||||||||||||||||||||||||
|
revision-id: a20e1ce85ec56616fa048e9ba39c25c65b098fce (mariadb-10.3.6-36-ga20e1ce85ec)
Limit length of result of "negative" operation to something reasonable — | ||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2018-04-23 ] | ||||||||||||||||||||||||||
|
Ok to push: [Commits] a20e1ce85ec: |