public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/101425] New: [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806
@ 2021-07-12 5:16 marxin at gcc dot gnu.org
2021-07-12 5:16 ` [Bug other/101425] " 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-07-12 5:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425
Bug ID: 101425
Summary: [12 Regression] AddressSanitizer: heap-buffer-overflow
at candidates_list_and_hint since
r12-1903-gaf9987e817f54806
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: burnus at gcc dot gnu.org
Target Milestone: ---
Since the revision, I see:
$ echo "" | valgrind --trace-children=yes gcc -foffload=amdgcn-amdhsa -c -x c -
==22404== Memcheck, a memory error detector
==22404== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==22404== Using Valgrind-3.17.0.GIT and LibVEX; rerun with -h for copyright
info
==22404== Command: gcc -foffload=amdgcn-amdhsa -c -x c -
==22404==
gcc: error: GCC is not configured to support 'amdgcn-amdhsa' as offload target
==22404== Invalid write of size 1
==22404== at 0x4237A7: candidates_list_and_hint(char const*, char*&,
auto_vec<char const*, 0ul> const&) (opts-common.c:1294)
==22404== by 0x40BF08: check_offload_target_name(char const*, long)
(gcc.c:4018)
==22404== by 0x40CA73: handle_foffload_option (gcc.c:4105)
==22404== by 0x40CA73: driver_handle_option(gcc_options*, gcc_options*,
cl_decoded_option const*, unsigned int, int, unsigned int, cl_option_handlers
const*, diagnostic_context*, void (*)()) (gcc.c:4582)
==22404== by 0x42420E: handle_option(gcc_options*, gcc_options*,
cl_decoded_option const*, unsigned int, int, unsigned int, cl_option_handlers
const*, bool, diagnostic_context*) (opts-common.c:1181)
==22404== by 0x42435C: read_cmdline_option(gcc_options*, gcc_options*,
cl_decoded_option*, unsigned int, unsigned int, cl_option_handlers const*,
diagnostic_context*) (opts-common.c:1431)
==22404== by 0x40E59E: process_command(unsigned int, cl_decoded_option*)
(gcc.c:4912)
==22404== by 0x4171D5: driver::set_up_specs() const (gcc.c:8294)
==22404== by 0x40676C: driver::main(int, char**) (gcc.c:8102)
==22404== by 0x406D0F: main (gcc-main.c:47)
==22404== Address 0x4bb7b1f is 1 bytes before a block of size 1 alloc'd
==22404== at 0x483C70F: malloc (vg_replace_malloc.c:380)
==22404== by 0x4A640B: xmalloc (xmalloc.c:147)
==22404== by 0x423754: candidates_list_and_hint(char const*, char*&,
auto_vec<char const*, 0ul> const&) (opts-common.c:1286)
==22404== by 0x40BF08: check_offload_target_name(char const*, long)
(gcc.c:4018)
==22404== by 0x40CA73: handle_foffload_option (gcc.c:4105)
==22404== by 0x40CA73: driver_handle_option(gcc_options*, gcc_options*,
cl_decoded_option const*, unsigned int, int, unsigned int, cl_option_handlers
const*, diagnostic_context*, void (*)()) (gcc.c:4582)
==22404== by 0x42420E: handle_option(gcc_options*, gcc_options*,
cl_decoded_option const*, unsigned int, int, unsigned int, cl_option_handlers
const*, bool, diagnostic_context*) (opts-common.c:1181)
==22404== by 0x42435C: read_cmdline_option(gcc_options*, gcc_options*,
cl_decoded_option*, unsigned int, unsigned int, cl_option_handlers const*,
diagnostic_context*) (opts-common.c:1431)
==22404== by 0x40E59E: process_command(unsigned int, cl_decoded_option*)
(gcc.c:4912)
==22404== by 0x4171D5: driver::set_up_specs() const (gcc.c:8294)
==22404== by 0x40676C: driver::main(int, char**) (gcc.c:8102)
==22404== by 0x406D0F: main (gcc-main.c:47)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/101425] [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806
2021-07-12 5:16 [Bug other/101425] New: [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806 marxin at gcc dot gnu.org
@ 2021-07-12 5:16 ` marxin at gcc dot gnu.org
2021-07-12 8:00 ` [Bug sanitizer/101425] " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-07-12 5:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Last reconfirmed| |2021-07-12
Status|UNCONFIRMED |NEW
Blocks| |86656
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 sanitizer/101425] [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806
2021-07-12 5:16 [Bug other/101425] New: [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806 marxin at gcc dot gnu.org
2021-07-12 5:16 ` [Bug other/101425] " marxin at gcc dot gnu.org
@ 2021-07-12 8:00 ` rguenth at gcc dot gnu.org
2021-07-12 8:59 ` marxin at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-07-12 8:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|other |sanitizer
CC| |dodji at gcc dot gnu.org,
| |dvyukov at gcc dot gnu.org,
| |jakub at gcc dot gnu.org,
| |kcc at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug sanitizer/101425] [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806
2021-07-12 5:16 [Bug other/101425] New: [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806 marxin at gcc dot gnu.org
2021-07-12 5:16 ` [Bug other/101425] " marxin at gcc dot gnu.org
2021-07-12 8:00 ` [Bug sanitizer/101425] " rguenth at gcc dot gnu.org
@ 2021-07-12 8:59 ` marxin at gcc dot gnu.org
2021-07-12 9:35 ` cvs-commit at gcc dot gnu.org
2021-07-12 9:37 ` marxin at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-07-12 8:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
I've got a patch for it.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug sanitizer/101425] [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806
2021-07-12 5:16 [Bug other/101425] New: [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806 marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2021-07-12 8:59 ` marxin at gcc dot gnu.org
@ 2021-07-12 9:35 ` cvs-commit at gcc dot gnu.org
2021-07-12 9:37 ` marxin at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-07-12 9:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425
--- 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:9b8b37d1b6301855213b8d4860feaeb74d464c6b
commit r12-2240-g9b8b37d1b6301855213b8d4860feaeb74d464c6b
Author: Martin Liska <mliska@suse.cz>
Date: Mon Jul 12 10:59:06 2021 +0200
offloading: fix -foffload hinting
PR sanitizer/101425
gcc/ChangeLog:
* gcc.c (check_offload_target_name): Call
candidates_list_and_hint only if we have a candidate.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug sanitizer/101425] [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806
2021-07-12 5:16 [Bug other/101425] New: [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806 marxin at gcc dot gnu.org
` (3 preceding siblings ...)
2021-07-12 9:35 ` cvs-commit at gcc dot gnu.org
@ 2021-07-12 9:37 ` marxin at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-07-12 9:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101425
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- 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-07-12 9:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 5:16 [Bug other/101425] New: [12 Regression] AddressSanitizer: heap-buffer-overflow at candidates_list_and_hint since r12-1903-gaf9987e817f54806 marxin at gcc dot gnu.org
2021-07-12 5:16 ` [Bug other/101425] " marxin at gcc dot gnu.org
2021-07-12 8:00 ` [Bug sanitizer/101425] " rguenth at gcc dot gnu.org
2021-07-12 8:59 ` marxin at gcc dot gnu.org
2021-07-12 9:35 ` cvs-commit at gcc dot gnu.org
2021-07-12 9:37 ` 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).