From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8D0B93858D33; Wed, 22 Feb 2023 15:41:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D0B93858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677080460; bh=kjxhuSPDXpZQkO/vf1tDrDVF03fAcgD+WJJPx35Vie0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=evmfdaerSGdO93JOZKW6KSW3Vg9kNcp2n7xNdZxYEKfr9xgVpqRr1s8XNDOIP/G/6 h60yNp6Rux9Dbt9oKcRUAfgZZntSbALcK1kNeggnNFR8qC4up17+igjR5naK5+i3qE 3IVfVitkWMc6vY6RVScnjMFbJRqZXzc8dRRzi6ZI= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/108854] [10/11/12/13 Regression] tbb-2021.8.0 fails on i686-linux (32-bit), internal compiler error: in expand_expr_real_1, at expr.c:10281 Date: Wed, 22 Feb 2023 15:40:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.3.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords priority target_milestone cc 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=3D108854 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-reduction | Priority|P3 |P2 Target Milestone|--- |10.5 CC| |hubicka at gcc dot gnu.org, | |jamborm at gcc dot gnu.org Summary|tbb-2021.8.0 fails on |[10/11/12/13 Regression] |i686-linux (32-bit), |tbb-2021.8.0 fails on |internal compiler error: in |i686-linux (32-bit), |expand_expr_real_1, at |internal compiler error: in |expr.c:10281 |expand_expr_real_1, at | |expr.c:10281 --- Comment #10 from Jakub Jelinek --- Reduced testcase for -m32 -O3 -std=3Dc++11 -fPIC: struct unique_scoped_lock { unique_scoped_lock(int); ~unique_scoped_lock(); }; struct rw_scoped_lock { rw_scoped_lock(int, bool); ~rw_scoped_lock(); }; template struct Trans_NS___cxx11_list { typedef _Tp value_type; void push_front(value_type); void push_back(value_type &&); }; class receiver typedef node_priority_t; struct graph_node { virtual void reset_node(); }; template struct sender { typedef receiver successor_type; virtual bool register_successor(successor_type &); }; struct receiver { virtual node_priority_t priority() { return receiver(); } }; void fgt_make_edge(void *, void *); struct successor_cache { int my_mutex; Trans_NS___cxx11_list my_successors; void register_successor(receiver &r) { rw_scoped_lock l(my_mutex, true); r.priority(); my_successors.push_front(&r); my_successors.push_back(&r); } }; struct input_node : graph_node, sender { template input_node(int, Body); bool register_successor(successor_type &r) { unique_scoped_lock lock(my_mutex); my_successors.register_successor(r); if (my_active) return true; } int my_mutex; bool my_active; successor_cache my_successors; }; inline void make_edge(sender &p) { receiver s, __trans_tmp_2; p.register_successor(__trans_tmp_2); fgt_make_edge(&p, &s); } enum TestNodeTypeEnum { nonThrowing, isThrowing }; template struct absorber_body; template void run_one_priority_queue_node_test() { int g, input_count; InputNodeType input(g, input_count); make_edge(input); } template void run_priority_queue_node_test() { run_one_priority_queue_node_test>(); } void test_priority_queue_node() { run_priority_queue_node_test(); run_priority_queue_node_test(); } This started to ICE (segfault in same_node_or_its_all_contexts_clone_p) with r10-4511-g6cf67b62c8cda035dccac and starting with r10-5061-g68188fff88d0c302e6002 it gets the ICE that shows up to latest trunk.=