From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 55AC43858D35; Tue, 7 May 2024 22:13:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 55AC43858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715119987; bh=of2vV+of3lkEkSkcZAk47Ocdx2ogPgrjcYJNXT3/yjw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=shTk+K0yslqncAW6ckOD3c2Gxszot/C1VR8fzoHmsxB58bbismMrLxljEk8Yw3W/j ouvw3/khGw3fHg4b+mvkaR/CVajCXJhQZ5y08X02gkBM/v+dKDgw7WBB/0FofYDz9C dqbmHRQe2b3GzoXtpAiiRKl0s8rXyWWx+voZfTPw= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114872] [13/14/15 Regression] Miscompilation with -O2 after commit r13-8037 Date: Tue, 07 May 2024 22:13:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox 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: 13.3 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=3D114872 --- Comment #22 from Sergei Trofimovich --- Trying again to catch more precise place for SIGABRT. Beginning at the start of the possibly aborting function: (gdb) break __pyx_pf_4sage_4libs_3gap_7element_19GapElement_Function_2__cal= l__ (gdb) continue Running step by step to get the rough location: (gdb) continue # many times (gdb) 26459 __pyx_t_6 =3D __Pyx_GetItemInt_List(__pyx_v_a, 2, long, 1, __Pyx_PyInt_From_long, 1, 0, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 252= 8, __pyx_L14_error) (gdb) 26469 __pyx_v_result =3D GAP_CallFunc3Args(__pyx_v_self->__pyx_base.value, ((struct __pyx_obj_4sage_4libs_3gap_7element_GapElement *)__pyx_t_5)->value, ((struct __pyx_obj_4sage_4libs_3gap_7element_GapElement *)__pyx_t_4)->value, ((struct __pyx_obj_4sage_4libs_3gap_7element_GapElement *)__pyx_t_6)->value); (gdb) Thread 1 "sage-ipython" received signal SIGABRT, Aborted. 0x00007f73e4a617a7 in __GI_kill () at ../sysdeps/unix/syscall-template.S:120 120 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS) Don't know why backtrace does not point at element.c:26459. It is this snip= pet: /* "sage/libs/gap/element.pyx":2525 * (a[1]).value) * elif n =3D=3D 3: * result =3D GAP_CallFunc3Args(self.value, # <<<<<<<<<<<<<< * (a[0]).value, * (a[1]).value, */ __pyx_v_result =3D GAP_CallFunc3Args(__pyx_v_self->__pyx_base.value, ((struct __pyx_obj_4sage_4libs_3gap_7element_GapElement *)__pyx_t_5)->value, ((struct __pyx_obj_4sage_4libs_3gap_7element_GapElement *)__pyx_t_4)->value, ((struct __pyx_obj_4sage_4libs_3gap_7element_GapElement *)__pyx_t_6)->value= );=