public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/99687] New: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 @ 2021-03-20 19:56 marxin at gcc dot gnu.org 2021-03-20 19:56 ` [Bug c++/99687] " marxin at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2021-03-20 19:56 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99687 Bug ID: 99687 Summary: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: nathan at gcc dot gnu.org Blocks: 86656 Target Milestone: --- I noticed this issue: $ ./xg++ -B. /home/marxin/Programming/gcc2/gcc/testsuite/g++.dg/modules/keyword-1_a.C -c -std=c++17 -fmodules-ts ================================================================= ==26209==ERROR: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 #0 0x7ffff7674f47 in operator delete(void*, unsigned long) (/usr/lib64/libasan.so.6+0xb3f47) #1 0xf4cfd6 in fini_modules() /home/marxin/Programming/gcc2/gcc/cp/module.cc:20012 #2 0xda5f20 in c_parse_final_cleanups() /home/marxin/Programming/gcc2/gcc/cp/decl2.c:5239 #3 0x1493a37 in c_common_parse_file() /home/marxin/Programming/gcc2/gcc/c-family/c-opts.c:1240 #4 0x27a4946 in compile_file /home/marxin/Programming/gcc2/gcc/toplev.c:457 #5 0x27add07 in do_compile /home/marxin/Programming/gcc2/gcc/toplev.c:2201 #6 0x27ae56b in toplev::main(int, char**) /home/marxin/Programming/gcc2/gcc/toplev.c:2340 #7 0x5179dcb in main /home/marxin/Programming/gcc2/gcc/main.c:39 #8 0x7ffff7095b24 in __libc_start_main ../csu/libc-start.c:332 #9 0xab9c1d in _start (/home/marxin/Programming/gcc2/objdir/gcc/cc1plus+0xab9c1d) 0x604000000d50 is located 0 bytes inside of 40-byte region [0x604000000d50,0x604000000d78) allocated by thread T0 here: #0 0x7ffff767295f in __interceptor_malloc (/usr/lib64/libasan.so.6+0xb195f) #1 0x53c4a47 in xrealloc /home/marxin/Programming/gcc2/libiberty/xmalloc.c:177 #2 0xf64061 in void va_heap::reserve<binding_slot>(vec<binding_slot, va_heap, vl_embed>*&, unsigned int, bool) /home/marxin/Programming/gcc2/gcc/vec.h:290 #3 0xf5ac8d in bool vec_safe_reserve<binding_slot, va_heap>(vec<binding_slot, va_heap, vl_embed>*&, unsigned int, bool) /home/marxin/Programming/gcc2/gcc/vec.h:698 #4 0xf4bbc0 in init_modules(cpp_reader*) /home/marxin/Programming/gcc2/gcc/cp/module.cc:19779 #5 0xce903a in cxx_init_decl_processing() /home/marxin/Programming/gcc2/gcc/cp/decl.c:4708 #6 0xe42537 in cxx_init() /home/marxin/Programming/gcc2/gcc/cp/lex.c:330 #7 0x27ac419 in lang_dependent_init /home/marxin/Programming/gcc2/gcc/toplev.c:1889 #8 0x27adc03 in do_compile /home/marxin/Programming/gcc2/gcc/toplev.c:2186 #9 0x27ae56b in toplev::main(int, char**) /home/marxin/Programming/gcc2/gcc/toplev.c:2340 #10 0x5179dcb in main /home/marxin/Programming/gcc2/gcc/main.c:39 #11 0x7ffff7095b24 in __libc_start_main ../csu/libc-start.c:332 SUMMARY: AddressSanitizer: alloc-dealloc-mismatch (/usr/lib64/libasan.so.6+0xb3f47) in operator delete(void*, unsigned long) ==26209==HINT: if you don't care about these errors you may set ASAN_OPTIONS=alloc_dealloc_mismatch=0 ==26209==ABORTING Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86656 [Bug 86656] [meta-bug] Issues found with -fsanitize=address ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/99687] AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 2021-03-20 19:56 [Bug c++/99687] New: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 marxin at gcc dot gnu.org @ 2021-03-20 19:56 ` marxin at gcc dot gnu.org 2021-03-20 19:56 ` marxin at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2021-03-20 19:56 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99687 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-03-20 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- I've git a patch candidate. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/99687] AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 2021-03-20 19:56 [Bug c++/99687] New: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 marxin at gcc dot gnu.org 2021-03-20 19:56 ` [Bug c++/99687] " marxin at gcc dot gnu.org @ 2021-03-20 19:56 ` marxin at gcc dot gnu.org 2021-03-20 19:58 ` marxin at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2021-03-20 19:56 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99687 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/99687] AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 2021-03-20 19:56 [Bug c++/99687] New: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 marxin at gcc dot gnu.org 2021-03-20 19:56 ` [Bug c++/99687] " marxin at gcc dot gnu.org 2021-03-20 19:56 ` marxin at gcc dot gnu.org @ 2021-03-20 19:58 ` marxin at gcc dot gnu.org 2021-03-22 12:01 ` cvs-commit at gcc dot gnu.org 2021-03-22 12:01 ` marxin at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2021-03-20 19:58 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99687 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |11.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/99687] AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 2021-03-20 19:56 [Bug c++/99687] New: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 marxin at gcc dot gnu.org ` (2 preceding siblings ...) 2021-03-20 19:58 ` marxin at gcc dot gnu.org @ 2021-03-22 12:01 ` cvs-commit at gcc dot gnu.org 2021-03-22 12:01 ` marxin at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-03-22 12:01 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99687 --- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>: https://gcc.gnu.org/g:c4519fe3db366d781f342b7f04c4a09e4cc9fbd9 commit r11-7761-gc4519fe3db366d781f342b7f04c4a09e4cc9fbd9 Author: Martin Liska <mliska@suse.cz> Date: Sat Mar 20 20:57:13 2021 +0100 C++ modules: fix alloc-dealloc-mismatch ASAN issue gcc/cp/ChangeLog: PR c++/99687 * module.cc (fini_modules): Call vec_free instead of delete. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/99687] AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 2021-03-20 19:56 [Bug c++/99687] New: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 marxin at gcc dot gnu.org ` (3 preceding siblings ...) 2021-03-22 12:01 ` cvs-commit at gcc dot gnu.org @ 2021-03-22 12:01 ` marxin at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: marxin at gcc dot gnu.org @ 2021-03-22 12:01 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99687 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-03-22 12:01 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-03-20 19:56 [Bug c++/99687] New: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x604000000d50 marxin at gcc dot gnu.org 2021-03-20 19:56 ` [Bug c++/99687] " marxin at gcc dot gnu.org 2021-03-20 19:56 ` marxin at gcc dot gnu.org 2021-03-20 19:58 ` marxin at gcc dot gnu.org 2021-03-22 12:01 ` cvs-commit at gcc dot gnu.org 2021-03-22 12:01 ` marxin at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).