[MDEV-14183] aria_pack segfaults in compress_maria_file Created: 2017-10-28 Updated: 2020-08-25 Resolved: 2020-01-21 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients, Storage Engine - Aria |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.1.26, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.2.31, 10.3.22, 10.4.12, 10.5.1 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Kenneth Penza | Assignee: | Vladislav Lesin |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | None | ||
| Environment: |
Debian 9.2 running on AMD Phenom(tm) II X4 955 Processor |
||
| Attachments: |
|
| Description |
|
I am currently running MariaDB version 10.1.26-MariaDB-0+deb9u1 on Debian 9.2. aria_pack is failing with the "Segmentation fault" when the table as 39639 or more, aria_pack fails as per below output.
Test case:
|
| Comments |
| Comment by Kenneth Penza [ 2017-10-29 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I have replicated the problem on Ubuntu 16.10 running "Server version: 10.1.26-MariaDB-1~yakkety mariadb.org binary distribution". Executed the test case as below and generated the backtrace using gdb. Test case:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2017-10-31 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report and test case. Reproducible on all of 5.5-10.3. The test cases below are based on the provided one, just slightly reduced and converted into MTR-friendly form. They are only applicable to 10.x, because 5.5 does not have include/shutdown_mysqld.inc, but 5.5 is also affected. Not reproducible with MyISAM.
The second test case only differs from the first one in the amount of data, it inserts less into the table. Instead of SIGSEGV, it causes an assertion failure on debug builds.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2019-05-01 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
10.4 fails with
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vladislav Lesin [ 2020-01-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Pushed the fix for testing. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vladislav Lesin [ 2020-01-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Pushed the fix in 10.2. |