[MDEV-20367] SIGSEGV with "Found wrong key definition..." warning Created: 2019-08-16 Updated: 2019-09-06 Resolved: 2019-08-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Views |
| Affects Version/s: | 10.2.17 |
| Fix Version/s: | 10.0.37, 10.1.36, 10.2.18, 10.3.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jonathan Monahan | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu Xenial and Precise |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
The attached issue_28287_bad.sql script kills MariaDb 10.2.17. The mysql-error.log contains
The attached issue_28287_ok.sql script is virtually identical but it does not kill MariaDb 10.2.17. Instead the final statement has warnings, the same as in the error log:
|
| Comments |
| Comment by Elena Stepanova [ 2019-08-17 ] | |||||||||||||||||||||||||||||||
|
I am not getting the crash, but the warnings are indeed present in 10.2.17, and don't appear starting from 10.2.18 (also 10.0.37 and 1.1.36). | |||||||||||||||||||||||||||||||
| Comment by Jonathan Monahan [ 2019-08-19 ] | |||||||||||||||||||||||||||||||
|
I can see the "Found wrong key definition" warning in table.cc in all branches from 10.2 to 10.5. Are you able to point to a bug fix that will fix this crash? | |||||||||||||||||||||||||||||||
| Comment by Jonathan Monahan [ 2019-08-19 ] | |||||||||||||||||||||||||||||||
|
issue_28287_bad.sql With further investigation I have found that the ROUND(...,0) is the probable original cause of the crash. Changing it to ROUND(...,2) works OK too. | |||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2019-08-21 ] | |||||||||||||||||||||||||||||||
|
Reproduced on 10.2.17. fixed by
| |||||||||||||||||||||||||||||||
| Comment by Jonathan Monahan [ 2019-08-21 ] | |||||||||||||||||||||||||||||||
|
I am surprised that this is a duplicate of My script kills MariaDb 10.2.17 with SIGSEGV (signal 11) whilst in | |||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2019-08-21 ] | |||||||||||||||||||||||||||||||
|
fix for the bug is merged up, please see https://github.com/mariadb/server/commit/f195286a3eae6328a1f90948205e90201c0479c5, | |||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2019-08-21 ] | |||||||||||||||||||||||||||||||
|
jonathan.monahan@workbooks.com, | |||||||||||||||||||||||||||||||
| Comment by Steve [ 2019-09-06 ] | |||||||||||||||||||||||||||||||
|
Is there any way of avoiding this issue as it may be easier for us to modify our application code that upgrade a suite of production servers. For example, if it is triggered by a specific style of query, we could avoid it. I also noticed that the test case that was fixed in |