Bug #92046 | mysql client crashes in libedit/terminal.c | ||
---|---|---|---|
Submitted: | 16 Aug 2018 15:21 | Modified: | 3 Feb 2021 14:46 |
Reporter: | Boris Ulasevich (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S2 (Serious) |
Version: | 8 | OS: | Linux |
Assigned to: | CPU Architecture: | ARM | |
Tags: | Contribution |
[16 Aug 2018 15:21]
Boris Ulasevich
[17 Aug 2018 10:30]
Terje Røsten
Hi! Thanks for report! Can provide information about your platform? Which Linux distro and specific GCC versions is used?
[17 Aug 2018 14:37]
Boris Ulasevich
1. I have to admit there was an user error on build configuration step: I got error message proposing to install libncurses5-dev, I installed the library and restarted configuration without CMakeCache.txt cleanup. This way leads to wrong configuration with HAVE_TERM_H disabled, which consequently leads to crash in runtime. 2. I prepared the patch to handle given problem on build time with minor libedit component cleanup. I am not sure how to publish it (just submit in comments?). 3. > Can provide information about your platform? > Which Linux distro and specific GCC versions is used? Cavium ARM64 + Ubuntu 16.04.2 LTS + gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609
[20 Aug 2018 8:17]
Terje Røsten
Hi again, please read the document "Contributing Code to MySQL": https://community.oracle.com/docs/DOC-914911
[3 Sep 2018 12:00]
Boris Ulasevich
Please consider following pull request to fix the issue: https://github.com/mysql/mysql-server/pull/221
[4 Sep 2018 13:43]
OCA Admin
Contribution submitted via Github - Bug #92046: mysql client crashes in libedit/terminal.c (*) Contribution by Boris Ulasevich (Github bulasevich, mysql-server/pull/221#issuecomment-418343391): I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: git_patch_212724823.txt (text/plain), 4.14 KiB.
[13 Nov 2018 13:50]
Rob Ratcliff
Just saw this bug when compiling MySQL 5.7.24 with boost on SUSE 11.4 with gcc 5.3.
[17 Nov 2018 7:10]
MySQL Verification Team
Thank you for the report and contribution.
[3 Feb 2021 14:46]
Paul DuBois
Posted by developer: Fixed in 5.7.30, 8.0.20 by this change: The bundled libedit library was upgraded to version 3.1.