[MDEV-19132] Strange combination of JOIN with NULL crash the server Created: 2019-04-02 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery, Platform RedHat, Platform Windows, Server, Storage Engine - InnoDB |
| Affects Version/s: | 10.3.11, 10.3.12, 10.3.13, 10.3, 10.4, 10.5 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | David Rodrigues | Assignee: | Igor Babaev |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | crash, innodb | ||
| Environment: |
CentOS 6.10 x64, Windows 10 x64 |
||
| Attachments: |
|
||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
I had updated from MariaDB 10.1.38 to MariaDB 10.3.13 via WHM. In the process it updated to MariaDB 10.2.23 first. After the process ends, a single application has bugged. After dig a lot I discover what happen, but not why. Run this code:
The original query is very long, so I tried to simplificate this test case to the best that as I could. If you run this code the server will crash with the following error:
And the my.err will be (full log is attached):
I just run the server with: mysqld without any additional parameters. I did it based on my original code that crashes, so please consider the following changes (I did it to simplificate, but crashes happen anyway):
I did a lot of tests based on this simplified code that solves the crash, but will change the behaviour of query:
I test some previous versions, and the problems starts in MariaDB 10.3.11 and still affects MariaDB 10.3.12 and MariaDB 10.3.13 (current). Actually, the problem seems to be related with the `NULL AND`. For some reason it crashes the server. |
| Comments |
| Comment by David Rodrigues [ 2019-04-02 ] | ||||||||||||||||||||||||||||
|
Maybe related to | ||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2019-04-02 ] | ||||||||||||||||||||||||||||
|
Thanks a lot for the report and test case.
|