From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OMZ/GJKO5WHvcQAAgWs5BA (envelope-from ) for ; Mon, 17 Jan 2022 16:43:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eM4DFZKO5WHNngAAauVa8A (envelope-from ) for ; Mon, 17 Jan 2022 16:43:14 +0100 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 1F2C83DAF7 for ; Mon, 17 Jan 2022 16:43:14 +0100 (CET) Received: from localhost ([::1]:36314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9UA5-0002dC-6C for larch@yhetil.org; Mon, 17 Jan 2022 10:43:13 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9U9u-0002Ye-Qh for bug-guix@gnu.org; Mon, 17 Jan 2022 10:43:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9U9u-0001Kr-FG for bug-guix@gnu.org; Mon, 17 Jan 2022 10:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9U9u-0001EN-Ax for bug-guix@gnu.org; Mon, 17 Jan 2022 10:43:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53296: Intermittent segfaults when parsing (?) custom package from repo. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 17 Jan 2022 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53296 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: elaexuotee@wilsonb.com Received: via spool by 53296-submit@debbugs.gnu.org id=B53296.16424341574682 (code B ref 53296); Mon, 17 Jan 2022 15:43:02 +0000 Received: (at 53296) by debbugs.gnu.org; 17 Jan 2022 15:42:37 +0000 Received: from localhost ([127.0.0.1]:47646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9U9U-0001DS-Pr for submit@debbugs.gnu.org; Mon, 17 Jan 2022 10:42:37 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:46788) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9U9P-0001DA-BJ for 53296@debbugs.gnu.org; Mon, 17 Jan 2022 10:42:35 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id C9DD11D2; Mon, 17 Jan 2022 16:42:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NDziGGNoqjlo; Mon, 17 Jan 2022 16:42:24 +0100 (CET) Received: from ribbon (91-160-117-201.subs.proxad.net [91.160.117.201]) by hera.aquilenet.fr (Postfix) with ESMTPSA id A5328197; Mon, 17 Jan 2022 16:42:23 +0100 (CET) From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <3E4C9P1M7LAZ4.3OM9BXEOU8OKP@wilsonb.com> Date: Mon, 17 Jan 2022 16:42:23 +0100 In-Reply-To: <3E4C9P1M7LAZ4.3OM9BXEOU8OKP@wilsonb.com> (elaexuotee@wilsonb.com's message of "Sun, 16 Jan 2022 15:12:08 +0900") Message-ID: <87pmoqmkrk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Rspamd-Server: hera X-Rspamd-Queue-Id: C9DD11D2 X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 53296@debbugs.gnu.org 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=1642434194; h=from:from:sender:sender: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: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=KGHHTfo1srOs59zDBIwkiPzIM4lPfYqiuK+5CMBOisQ=; b=ZaLdOgHlq8/EQkrpobv26ZKSljerOR+Qasn4FfO0ZOKLUtg/QxFYmbO0il3QIFUi6dfE9F Onlwpk1En9g3sypsnGEUmSAzRrkmX2VpVtM4GnD38uKZa0lqFOd8qu/pIqgjTXMp+B9ub4 2jSAIaPKq60/X2GrKWoIFAghfxA9mgn+R1bwwUXfFzmq8DX61ze0DB8IpgXGNcU/gl34Gd 2Afeqh6J0dEUwg65RAZ+PRD1tK59KZoWXi1T8maz0pgX6NjgGn8oy/AoCmBE5VYJ/bMTZ5 VJZxQEgpLGZhecQU6Wp03wB0WSf/W2JCRUc5H/PYTozAodAJVmYt4zct8Q1BEQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642434194; a=rsa-sha256; cv=none; b=EXCfgWTcbx7ayk3pRLTM6j6/OHHNiup+g3zalzzs0zndQ4brCHgGbtRStIZp+ptZYZ8nyh 9PEQ9rR+OEHHLLj9xesGzEQRm3vYqv/59Vyq7Ps3PT02r43u9qHjgwK//mLga3NHs2Zutl 7xT84nZrv8WojeSovX5+GKA+aSbSXSUxYvCZKkkhn9SV8JzM5r2ChUdaGl1Q85nTeNzL3U 2aDajTK/FwWCJgdU9xE8ya2bGpfb48JkWRf6MDUfANVGCt83yihKwzB+cua2lPgP5n1tE9 fCHxpgXGwMwki6jxIujaE4lL0yOt47nLpsgQZE4Vjyeqyh2xhmWhYcPNlW0w5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.62 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 1F2C83DAF7 X-Spam-Score: -3.62 X-Migadu-Scanner: scn1.migadu.com X-TUID: irqPi4mOfSFo Hi, elaexuotee@wilsonb.com skribis: > Recently working on a package, I have been encounting intermittent segfau= lt > during a build. > > The segfault seems to only occur when I have some error in my code that c= auses > a crash, and the segfaults tend to cluster, appearing unexpectedly for a = few > build attempts, and then disappearing right as I think they are reproduci= ble > and try to grab an strace or something. Unfortunately, that's about the e= xtent > of information I have been able to gleen. > > The latest segfault happened with the attached package definition. Note, = the > offending code is at line 77, where I forgot to remove a docstring from a > variable that used to be a procedure. Here=E2=80=99s how I tried (and failed) to reproduce the segfault: --8<---------------cut here---------------start------------->8--- $ find /tmp/test /tmp/test /tmp/test/gnu /tmp/test/gnu/packages /tmp/test/gnu/packages/jsoftware.scm $ guix build -L /tmp/test jsoftware /tmp/test/gnu/packages/jsoftware.scm:76:0: warning: source expression faile= d to match any pattern guix build: error: jsoftware: nekonata pako $ guix build -f /tmp/test/gnu/packages/jsoftware.scm=20 /tmp/test/gnu/packages/jsoftware.scm:76:0: error: (define ijconsole "G-exp = script that detects AVX/AVX2 support at runtime and executes jconsole\n wi= th the appropriate libj.so and profile.ijs." (with-imported-modules (quote = ((guix cpu) (guix memoization) (guix profiling) (guix sets) (srfi srfi-26))= ) (program-file "ijconsole" (gexp (begin (use-modules ((guix cpu) #:select = (cpu-flags current-cpu)) ((guix sets) #:select (set-contains?)) ((srfi srfi= -26) #:select (cute))) (define %basedir (dirname (dirname (current-filename= )))) (let* ((jconsole (string-append %basedir "/libexec/j/jconsole")) (cpu-= has-flag? (cute set-contains? (cpu-flags (current-cpu)) <>)) (libj (format = #f "~a/lib/j/libj~a.so" %basedir (cond ((cpu-has-flag? "avx2") "-avx2") ((c= pu-has-flag? "avx") "-avx") (else "")))) (jprofile (string-append %basedir = "/etc/j/profile.ijs"))) (apply execl jconsole "ijconsole" "-lib" libj "-jpr= ofile" jprofile (cdr (command-line))))))))): source expression failed to ma= tch any pattern $ guix describe Generacio 201 Jan 12 2022 23:15:13 (nuna) guix 0052c3b repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 0052c3b0458fba32920a1cfb48b8311429f0d6b5 --8<---------------cut here---------------end--------------->8--- Is there another way to reproduce it? Is the =E2=80=98LD_LIBRARY_PATH=E2=80=99 variable set on your system? Thanks, Ludo=E2=80=99.