From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 04C073858D28; Mon, 6 May 2024 07:21:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04C073858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1714980084; bh=8zr1J+MQYLFX0xLD8CzH8ZKEVU7CDkz0ewKC7w7Z054=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aPW0mni70l+9fgr7senBMKmeb9Bo/SihbbHckhUhAJ/YZtECGKGMKCKbtjCwgmibu LjLvKYBDBL/rRyJk/ai4SH+j+/GstJMhaJmfT2WUnHI+Z1TlCT2V+pdmUUh9V4S0Kz DO4osJ3lXs6+xsmPgRKzLdcEEebPreYFKIO6yqgI= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/114956] [11/12/13/14/15 regression] Segmentation fault with -fsanitize=address -fsanitize=null -O2 when attribute no_sanitize_address is enabled Date: Mon, 06 May 2024 07:21:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 15.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114956 Sam James changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Segmentation fault with |[11/12/13/14/15 regression] |-fsanitize=3Daddress |Segmentation fault with |-fsanitize=3Dnull -O2 when |-fsanitize=3Daddress |attribute |-fsanitize=3Dnull -O2 when |no_sanitize_address is |attribute |enabled |no_sanitize_address is | |enabled --- Comment #1 from Sam James --- testing on godbolt gives.. gcc 8.2: ``` :2:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) int *c() { ^ : In function 'd': :2:37: error: inlining failed in call to always_inline 'c': function attribute mismatch :6:61: note: called from here __attribute__((no_sanitize_address)) static char d() { *a =3D c(); } ^~~ Compiler returned: 1 ``` gcc 8.3: ``` :2:37: warning: always_inline function might not be inlinable [-Wattributes] __attribute__((always_inline)) int *c() { ^ during GIMPLE pass: sanopt : In function 'd': :6:50: internal compiler error: Segmentation fault __attribute__((no_sanitize_address)) static char d() { *a =3D c(); } ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Compiler returned: 1 ``` so a regression in that we ICE.=