Bug #80014 | mysql build fails, memory leak in gen_lex_hash, clang address sanitizer | ||
---|---|---|---|
Submitted: | 16 Jan 2016 17:51 | Modified: | 21 Sep 2016 21:29 |
Reporter: | Richard Prohaska | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S3 (Non-critical) |
Version: | 5.6.28 | OS: | Ubuntu (14.04) |
Assigned to: | CPU Architecture: | Any |
[16 Jan 2016 17:51]
Richard Prohaska
[18 Jan 2016 7:45]
MySQL Verification Team
Hello Richard Prohaska, Thank you for the report and contribution. In order to submit contributions you must first sign the Oracle Contribution Agreement (OCA). For additional information please check http://www.oracle.com/technetwork/community/oca-486395.html. If you have any questions, please contact the MySQL community team. Thanks, Umesh
[18 Aug 2016 11:40]
Roel Van de Paar
Could we please have this bug fixed?
[21 Sep 2016 17:31]
Paul DuBois
Posted by developer: Noted in 5.6.34 changelog. Compiling using Clang 3.5 or higher with AddressSanitizer (ASAN) enabled caused the gen_lex_hash utility to abort on Clang LeakSanitizer memory leak check failures.
[21 Sep 2016 21:29]
Richard Prohaska
I dont understand that status of this bug report. Is the bug fixed or documented away?
[22 Sep 2016 5:53]
Laurynas Biveinis
The changelog entry applies to GCC too, not only clang.
[22 Sep 2016 5:54]
Tor Didriksen
Posted by developer: commit cb04f126c6373950f07e75ac2462182c4acad428 Author: Tor Didriksen <tor.didriksen@oracle.com> Date: Fri Sep 2 12:46:33 2016 +0200 Bug#22558597 MYSQL BUILD FAILS, MEMORY LEAK IN GEN_LEX_HASH, CLANG ADDRESS SANITIZER If we use clang-3.5+ instead of gcc and enable its AddessSanitizer (ASAN), the gen_lex_hash utility aborts on clang's LeakSanitizer memory leak checks. This patch adds memory deallocation to gen_lex_hash.cc to make LeakSanitizer happy (normally this is superfluous, since gen_lex_has is a compile-time utility, and OS does the job itself). Note: for for 5.6 only. Fixed in 5.7 and up by patch for Bug#20720615
[28 Sep 2016 15:00]
Paul DuBois
Posted by developer: Noted in 5.6.35 (not 5.6.34) changelog. Richard: Fixed.