[MDEV-26139] Spider crashes with segmentation fault (signal 11) on CREATE TABLE when COMMENT does not contain embedded double quotes Created: 2021-07-14 Updated: 2021-07-15 Resolved: 2021-07-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Spider |
| Affects Version/s: | 10.5.9, 10.4.20, 10.6.3 |
| Fix Version/s: | 10.4.21, 10.5.12, 10.6.4 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Nayuta Yanagisawa (Inactive) | Assignee: | Nayuta Yanagisawa (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Crash, not-10.3, regression | ||
| Issue Links: |
|
||||
| Description |
|
On MariaDB Server 10.5.9 on Ubuntu 20.04, Spider causes a crash when the following CREATE TABLE statement is executed:
The error log says that the crash occurred in st_spider_param_string_parse::get_next_parameter_head(). Especially, it appears to refer to this line of code: https://github.com/MariaDB/server/blob/mariadb-10.5.9/storage/spider/spd_table.h#L197
|
| Comments |
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-07-14 ] | |||
|
The bug is reproducible on 10.5.7 but not on 10.5.6, and it seems to be introduced by the following commit: https://github.com/MariaDB/server/commit/314a90e12b72a4c889278847b8d2a8c3f21f41e3 | |||
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-07-14 ] | |||
|
The bug is not reproducible on 10.3. However, the bug is also reproducible on 10.4 because a commit similar to the above one was merged to 10.4 https://github.com/MariaDB/server/commit/5c8a1249ddeff70a3ffb6ce963a6eed3d55d4510 | |||
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-07-14 ] | |||
|
A simpler table definition is enough for reproduction:
| |||
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-07-14 ] | |||
|
I pushed a patch. My analysis is in the commit message. https://github.com/MariaDB/server/commit/e3814a74eee4f47b5d58997f90c8ee9742452681 | |||
| Comment by Sergei Golubchik [ 2021-07-15 ] | |||
|
perfect! ok to push! | |||
| Comment by Nayuta Yanagisawa (Inactive) [ 2021-07-15 ] | |||
|
Thank you for your review! I've pushed it to 10.4. |