From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id CE0BA3858C1F for ; Tue, 12 Sep 2023 18:38:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CE0BA3858C1F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694543932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L/I9An++6N6XKoI8Xp/IsoE8fB17K0Iwwxm2dBEgTQI=; b=NtXg8sfir4z8YmNCWtvw2twYERsv7tPjrmi+AZISMjhaJonYaAt9dUVsvaOFnsRYSSKOgc 72yOCfMI7/Ng3tCGNaupf+qxcP4ubQv9Dagb//VguT4UaFermsCiXe5rS6kkkbG5g6FwkL 50sbWFsQ7wj1GSKaKq5Ffgz2EHJhmK8= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-140-ZVepfZ2jNFaUWFFG46BH0A-1; Tue, 12 Sep 2023 14:38:49 -0400 X-MC-Unique: ZVepfZ2jNFaUWFFG46BH0A-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-76ef03effdcso714639185a.2 for ; Tue, 12 Sep 2023 11:38:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694543929; x=1695148729; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=L/I9An++6N6XKoI8Xp/IsoE8fB17K0Iwwxm2dBEgTQI=; b=ZdGvjABU+tsSaxee37WeK0tA3FTsa2p4h4NSy33XYyQHaZ6HIFvXgBf8SSitHEk/7u 1ukqIHb7LMAJdo8dusiMYKbc0s2AmRxjVPjNc0TSK3TKEWwfiaJT19B+sJ9uCDbE1y3D C6f4XNGGBfnoSesLu9l135o6t+qyhYaVmfPOwjybcWvSyYITY4w7Rk+bushbT43kQCyO 7e8CtvTboG93u44ttSFLXYetO+2OqQQ8ZRqOm5MJzp8tLIHIXs3AVZSSuZu3UfD7sr4e ran7j4OOQXsx9GftEseJXi2hJU4LH3ZsB7HaEz01Bc2mn812yCRaf97kW0COy1IQYqWN cP8g== X-Gm-Message-State: AOJu0YyIVfmOea0Zzk7ZoN+YIoOsSg2lkAIPMCMk9vtav65cM9m10/gC KDsiw3rH4E+T3Mz+08IZkLo2GkEPLFbQpEPZVlCQIgYPS7arvB+FOHvFwSjFedHn72DTc9YIkEP zV1lQmis= X-Received: by 2002:a05:620a:394d:b0:768:1572:e9af with SMTP id qs13-20020a05620a394d00b007681572e9afmr340400qkn.8.1694543928834; Tue, 12 Sep 2023 11:38:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDjaXOb4TaLfYHRv5o1L+3sOskSd+KfywntWjq7f+AsdrzDICUrECkk7eBIYsSTjWjcMlDtg== X-Received: by 2002:a05:620a:394d:b0:768:1572:e9af with SMTP id qs13-20020a05620a394d00b007681572e9afmr340389qkn.8.1694543928624; Tue, 12 Sep 2023 11:38:48 -0700 (PDT) Received: from t14s.localdomain (c-76-28-97-5.hsd1.ma.comcast.net. [76.28.97.5]) by smtp.gmail.com with ESMTPSA id b8-20020a05620a126800b00767f00a9c67sm3351858qkl.95.2023.09.12.11.38.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 11:38:48 -0700 (PDT) Message-ID: Subject: Re: [PATCH] ggc, jit: forcibly clear GTY roots in jit From: David Malcolm To: Antoni Boucher Cc: gcc-patches@gcc.gnu.org, jit@gcc.gnu.org Date: Tue, 12 Sep 2023 14:38:47 -0400 In-Reply-To: <2e5a9a1f4714e7946b11f929ae2a7ae0786d9c4a.camel@zoho.com> References: <20230906134001.681629-1-dmalcolm@redhat.com> <2e5a9a1f4714e7946b11f929ae2a7ae0786d9c4a.camel@zoho.com> User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,BODY_8BITS,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_WEB,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 2023-09-12 at 13:36 -0400, Antoni Boucher wrote: > In the mean time, here's a (Rust) reproducer for the issue: >=20 > fn main() { > =C2=A0=C2=A0=C2=A0 for _ in 0..5 { > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 let context =3D Context::defau= lt(); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 context.add_command_line_optio= n("-flto"); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 > context.set_optimization_level(OptimizationLevel::Aggressive); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 context.add_driver_option("-no= stdlib"); >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 let int_type =3D context.new_t= ype::(); >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 let function =3D context.new_f= unction(None, > FunctionType::Exported, int_type, &[], "main", false); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 let block =3D function.new_blo= ck("start"); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 let value =3D context.new_rval= ue_from_int(int_type, 42); > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 block.end_with_return(None, va= lue); >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 context.compile_to_file(Output= Kind::Executable, "my_exe"); > =C2=A0=C2=A0=C2=A0 } > } Can we get this in bugzilla please? If you generate a .c version of the context (via gcc_jit_context_dump_reproducer_to_file) I can try to debug it. Thanks Dave