From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B6B20385771F; Wed, 7 Jun 2023 12:20:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B6B20385771F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686140429; bh=CUxq10idd8LE5/S4PLavC1CFgQkgHVkjpbyE8gsIpiw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HflWI5ixIj0QmNWpSPJK0z8bX6CMZ0M9/yUamx8WeFrFqVP5XrTn8gkRF74s1loZq RvCKlXtO8AUBlpA96Tsh9zSkKyozS7KcrhbF/D1tcP7lqRBSfZQ4bY80m8hAMhS8sQ CaOKNU7FDEjHfUac7kSaj/m5XPRDfvZdBGdWoUTU= From: "carlosgalvezp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgcc/109712] [13/14 Regression] Segmentation fault in linear_search_fdes Date: Wed, 07 Jun 2023 12:20:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgcc X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlosgalvezp at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: fw at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D109712 --- Comment #28 from Carlos Galvez --- The proposed patch fixes the issue on our side, thank you! I realize my comment about doesn't make sense - I was mixing unions in C (w= here type punning is fine) and C++ (UB). But then I don't understand why valgrind would point at that variable as uninitialized...=