public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107451] Segmentation fault with vectorized code. Date: Fri, 28 Oct 2022 19:19:04 +0000 [thread overview] Message-ID: <bug-107451-4-6yomUXjbZ5@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107451-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107451 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The bug is in the testcase: gcc -fsanitize=undefined,address -g -o /tmp/pr107451{,.c}; /tmp/pr107451 ================================================================= ==2296364==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffca382d798 at pc 0x00000040148c bp 0x7ffca382d680 sp 0x7ffca382d678 READ of size 8 at 0x7ffca382d798 thread T0 #0 0x40148b in dot /tmp/pr107451.c:9 #1 0x4019f8 in main /tmp/pr107451.c:21 #2 0x7f8c74de858f in __libc_start_call_main (/lib64/libc.so.6+0x2958f) #3 0x7f8c74de8648 in __libc_start_main@GLIBC_2.2.5 (/lib64/libc.so.6+0x29648) #4 0x4010f4 in _start (/tmp/pr107451+0x4010f4) Address 0x7ffca382d798 is located in stack of thread T0 at offset 40 in frame #0 0x401922 in main /tmp/pr107451.c:19 This frame has 2 object(s): [32, 40) 'x' (line 20) <== Memory access at offset 40 overflows this variable [64, 72) 'y' (line 20) HINT: this may be a false positive if your program uses some custom stack unwind mechanism, swapcontext or vfork (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow /tmp/pr107451.c:9 in dot Shadow bytes around the buggy address: 0x1000146fdaa0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000146fdab0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000146fdac0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000146fdad0: 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 00 00 0x1000146fdae0: 00 00 f3 f3 f3 f3 00 00 00 00 00 00 00 00 f1 f1 =>0x1000146fdaf0: f1 f1 00[f2]f2 f2 00 f3 f3 f3 00 00 00 00 00 00 0x1000146fdb00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000146fdb10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000146fdb20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000146fdb30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x1000146fdb40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb ==2296364==ABORTING x[ix+1] or y[ix+1] when ix is 0 and x is &x in main or y &y in main is an out of bounds access.
next prev parent reply other threads:[~2022-10-28 19:19 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-10-28 19:07 [Bug tree-optimization/107451] New: " bartoldeman at users dot sourceforge.net 2022-10-28 19:19 ` jakub at gcc dot gnu.org [this message] 2022-10-28 19:19 ` [Bug tree-optimization/107451] [11/12/13 Regression] " pinskia at gcc dot gnu.org 2022-10-29 0:12 ` bartoldeman at users dot sourceforge.net 2022-10-31 3:29 ` crazylht at gmail dot com 2022-11-05 10:21 ` rguenth at gcc dot gnu.org 2022-11-05 10:29 ` [Bug tree-optimization/107451] [11/12/13 Regression] Segmentation fault with vectorized code since r11-6434 jakub at gcc dot gnu.org 2022-11-17 9:06 ` rguenth at gcc dot gnu.org 2022-11-17 14:48 ` rguenth at gcc dot gnu.org 2022-11-17 14:57 ` bartoldeman at users dot sourceforge.net 2022-11-17 14:58 ` rguenth at gcc dot gnu.org 2022-12-22 11:21 ` cvs-commit at gcc dot gnu.org 2022-12-22 11:21 ` [Bug tree-optimization/107451] [11/12 " rguenth at gcc dot gnu.org 2023-03-15 9:47 ` cvs-commit at gcc dot gnu.org 2023-05-02 12:03 ` [Bug tree-optimization/107451] [11 " cvs-commit at gcc dot gnu.org 2023-05-02 12:05 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-107451-4-6yomUXjbZ5@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).