From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YARJFukTvGEveQEAgWs5BA (envelope-from ) for ; Fri, 17 Dec 2021 05:36:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +GYHEukTvGEFPwAA1q6Kng (envelope-from ) for ; Fri, 17 Dec 2021 04:36:57 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 20E9B374D2 for ; Fri, 17 Dec 2021 05:36:57 +0100 (CET) Received: from localhost ([::1]:46698 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1my4zI-0007db-8I for larch@yhetil.org; Thu, 16 Dec 2021 23:36:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59674) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1my4pi-0006EB-Sj for bug-guix@gnu.org; Thu, 16 Dec 2021 23:27:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54246) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1my4pi-0008EI-JH for bug-guix@gnu.org; Thu, 16 Dec 2021 23:27:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1my4pi-0000ZV-GC for bug-guix@gnu.org; Thu, 16 Dec 2021 23:27:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#52140: [core-updates-frozen] tcc fails to build References: <8735nhamm4.fsf@kitej> In-Reply-To: <8735nhamm4.fsf@kitej> Resent-From: Robby Zambito Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 17 Dec 2021 04:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52140 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 52140@debbugs.gnu.org Received: via spool by 52140-submit@debbugs.gnu.org id=B52140.16397152162182 (code B ref 52140); Fri, 17 Dec 2021 04:27:02 +0000 Received: (at 52140) by debbugs.gnu.org; 17 Dec 2021 04:26:56 +0000 Received: from localhost ([127.0.0.1]:37559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1my4pc-0000Z8-8P for submit@debbugs.gnu.org; Thu, 16 Dec 2021 23:26:56 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:44583) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1my4pa-0000Yl-B0 for 52140@debbugs.gnu.org; Thu, 16 Dec 2021 23:26:55 -0500 Received: (Authenticated sender: contact@robbyzambito.me) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 57819C0007; Fri, 17 Dec 2021 04:26:45 +0000 (UTC) Date: Thu, 16 Dec 2021 23:26:37 -0500 From: Robby Zambito Message-ID: <20211217042637.jfk433lhwgznmbyv@robby-Ryzen-RX-PC.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Thu, 16 Dec 2021 23:36:42 -0500 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: 8735nhamm4.fsf@kitej Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639715817; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=tsAFDHshFYAWmywulVWklOXLUht+iftXy1TF9TSF/74=; b=FY4kRS/mSyaNZ3cG53pVIzf5qxLfp5p7NbX/ZD1XtE8I6GpmQSiMQPFGCNbl4aoZSPheV0 /MIEhz0Pr6KiQmurOJ1syIwWGMIIiLga+h/tPX42cUdNFLKELMU0wcmpa3hHo3b6Tm8W9B g0HCsfKk31yl2cgLXZDe9QIzqhCph/uSYk3RQRgfQ5M5dHe+KM1i5r90w9g0nPquhl9Y1g WwUQKwur1xQZVnzkkYLCoIVirIRj5lnGXEPBfMTgdPCnjYedLZwQPGbsUEPWpNgJRUxKEg L420757xDJqsbq484CromQav0cNeywLS6nS7ikDSp8upfSXiHCvicdeKGy+UXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639715817; a=rsa-sha256; cv=none; b=aMDijzdhSM+Fj6Qrr8ScHDmsGd/3Vnrh7AhSz//e1/JL3DDrD+gwmhbIJzkZmd7Qgfk7Ss y4huBErjXqRld5f2eBET2dvnZ5ibHM8Lb5RWKm2622pQ1AkZt4ZnTsfeq6d5bSlC1SZ+eA 7ceX+2a7hml8VyEVGIWEM0SO3YAFKmbLAzUEizaut8ERLY5gQwxBX8SGaF7rs7SDbXm1Kr V/udMzVh3EDCoeOnvGudrSDqv7oBIy97oNYqC2ts7t4hrEUVEGW1NqTTBpajRSEj2aybVh XEbC7tiWb1A4QE3uKR5JIZlpMn0qT0RyNyni0WevAG0zTzqWfzFkGqrINzeTUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.09 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 20E9B374D2 X-Spam-Score: -4.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: AMg0nAQw5102 Hi, I've noticed tcc seems to be failing for me on the current master branch of guix (commit b2ae164b211f4da6a3cc5dcb97eeeff3c6c7ebed according to guix describe). I tried to see if I could debug the issue, but I've reached the limit of my knowledge. The issue occurs on line 168 of tcc_run.c. That function call that is executed seems to overwrite the memory of s1, which is a struct that includes a FILE*. Because that FILE* is changed, the later call to fclose(ppfp) on line 369 of tcc.c causes a segfault, because it no longer points to a valid FILE. I have no idea how to start debugging the function call at line 168 of tcc_run.c, since that is code that has actually been compiled by tcc, rather than tcc itself (though obviously code that is a part of the test suite). I hope we can get this working again. Thanks, Robby