From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wOBoLcIL7WKtngAAbAwnHQ (envelope-from ) for ; Fri, 05 Aug 2022 14:23:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aGI6LcIL7WKdkgAAauVa8A (envelope-from ) for ; Fri, 05 Aug 2022 14:23:30 +0200 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 564CA9064 for ; Fri, 5 Aug 2022 14:23:30 +0200 (CEST) Received: from localhost ([::1]:42616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJwMT-000357-Fn for larch@yhetil.org; Fri, 05 Aug 2022 08:23:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJwM2-0002sB-Kf for bug-guix@gnu.org; Fri, 05 Aug 2022 08:23:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38582) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJwM2-0006Kn-C0 for bug-guix@gnu.org; Fri, 05 Aug 2022 08:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJwM2-0008NR-6T for bug-guix@gnu.org; Fri, 05 Aug 2022 08:23:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55587: bug#55596: Guix/Guile segfaults on `guix import texlive` Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 05 Aug 2022 12:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55587 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Tobias Geerinckx-Rice Cc: jackhill@jackhill.us, 55596-done@debbugs.gnu.org, hugonobrega@ic.ufrj.br, 55587@debbugs.gnu.org Received: via spool by 55587-submit@debbugs.gnu.org id=B55587.165970217932164 (code B ref 55587); Fri, 05 Aug 2022 12:23:02 +0000 Received: (at 55587) by debbugs.gnu.org; 5 Aug 2022 12:22:59 +0000 Received: from localhost ([127.0.0.1]:56561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJwLz-0008Mh-6u for submit@debbugs.gnu.org; Fri, 05 Aug 2022 08:22:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJwLv-0008MQ-Fx; Fri, 05 Aug 2022 08:22:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59538) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJwLn-0006JP-I7; Fri, 05 Aug 2022 08:22:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=QmmQ0qhxBWfgMJ170jPJDVBeK/Wma+6M4v96oKboFic=; b=eK7NNUfwYUmGyJK24fcG LsZoeQ0MTYF3MdhP3FzmRaltqxqM38bC0nlS2NTxuDugKXQFplHs/3mzsdx/PDRIk6kPoNfTBxqcy 15D7yA+EjsNwUsbUw7cH81kFkWzVT+TXJyFEPb4umV/zeHEt8FWMgT09ersi7RW3VOCo3kWKot0AU riGA116oLQFYVHVZxtvmxG2lCLQoB0QuQNe7RkQGQT0Plgdzb/7kAFYXYLfG8KABmsK+xxxZZE9Zp zxbkx1321q20mqEiHmVuTmB9PTdVMVvMMDDakXbdEyRQphDseMDoA4MO+rDvwmsk7sjNveUqahsph hZNlXVuUi1iWxA==; Received: from [193.50.111.124] (port=34012 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJwLn-0002AF-4u; Fri, 05 Aug 2022 08:22:47 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87o7zpiaa8.fsf@gmail.com> <878rqpj3vz.fsf@gnu.org> <878rqpxhxy.fsf@gmail.com> <875ylpbmna.fsf_-_@gnu.org> <87y1ylwkm8@nckx> <87sfo5psp2.fsf_-_@gnu.org> Date: Fri, 05 Aug 2022 14:22:43 +0200 In-Reply-To: <87sfo5psp2.fsf_-_@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 15 Jun 2022 22:39:21 +0200") Message-ID: <87czdehobw.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659702210; 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:dkim-signature; bh=QmmQ0qhxBWfgMJ170jPJDVBeK/Wma+6M4v96oKboFic=; b=ooiULyV+k8GT+V2GkB9GcTfhWmEAh2x1kgd/pSTJtejIbiia/CalKBI1PKYk+wHr9aaYsE J+h2Axpi4O3SWVU/JWjmJgC0eyUMD8QLWIh+SylHS6kpM9Qiujw68wKwnghRkMONdL3+tp 7MU48fC57ftnRZL0hQ4LAT+2zRCVBXl1ecAIpReONOI09LAqAt4pJRCmaxgH8QPC6kX1dw x0d1qZ76S0YGZpZuUScbNafxOIgitRFz1a3yWgL+886UUFPlwZ5cEGwS8MR/sr5IkNIfqa beh4dG1A0FWC3wuLC3nCieBgw+EMSSIzoCwyFsjYxAwhZXzLRSuDmNShmuvGuw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659702210; a=rsa-sha256; cv=none; b=d+AIZdOV3d6mkcKnaRP23zkdoKKgP5aFVYzx747eu87in8JLVyVaxeKHmzAncmy5FfKwld qcHlL3OiJYH3ZPQT7EfvlM4qxD+At/D/I6K4H7fEUXP2ZEu6FGTuJ0vMse57Apyzwc9+wX 6Auv23WDA1FdSD3aXT+6fd5OXR4dcUHIxv+7F6mWygxiLoyfVCYAU43wLxg1Vq0Zhn07MK wZFhWSvwe9QxvBk7kpR8Fnw6KxOqzJvW3p+cvWY07o0WWtwzpsgbmO6a4tBpAe/9GI1rUX l1PcvE56rYjllBRxUJFjh126tBRN8j2pxY3jZig9ydn9XllHkVjzeYXU46b1Bw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=eK7NNUfw; 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.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=eK7NNUfw; 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: 564CA9064 X-Spam-Score: -3.80 X-Migadu-Scanner: scn1.migadu.com X-TUID: cuXUkID4PBLW Hi, Ludovic Court=C3=A8s skribis: > I don=E2=80=99t think so; the error message that was reported is: > > command "svn" "export" "--non-interactive" "--trust-server-cert" "-r" "= 59745" "svn://www.tug.org/texlive/tags/texlive-2021.3/Master/texmf-dist/doc= /latex/cite/" "/tmp/guix-directory.09UnsN/doc/latex/cite/" failed with sign= al 11 > > It=E2=80=99s a message from =E2=80=98report-invoke-error=E2=80=99 in (gui= x build utils). It=E2=80=99s > really svn that=E2=80=99s segfaulting. Maybe not! I can trigger it reproducibly: --8<---------------cut here---------------start------------->8--- ludo@ribbon ~/src/guix [env]$ guix describe Generation 223 Aug 01 2022 00:30:24 (current) guix ab59155 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: ab59155c5a38dda7efaceb47c7528578fcf0def4 ludo@ribbon ~/src/guix [env]$ rm -f core ludo@ribbon ~/src/guix [env]$ guix import texlive abstract command "svn" "export" "--non-interactive" "--trust-server-cert" "-r" "5974= 5" "svn://www.tug.org/texlive/tags/texlive-2021.3/Master/texmf-dist/doc/lat= ex/abstract/" "/tmp/guix-directory.HYEHpM/doc/latex/abstract/" failed with = signal 11 guix import: error: failed to download description for package 'abstract' ludo@ribbon ~/src/guix [env]$ file core core: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), SVR4-style, from = '/gnu/store/9z95jms1r801z1kxpiq5xw594cxaw5jx-guile-wrapper/bin/guile --no-a= uto-c', real uid: 1000, effective uid: 1000, real gid: 998, effective gid: = 998, execfn: '/home/ludo/.config/guix/current/bin/guix', platform: 'x86_64' --8<---------------cut here---------------end--------------->8--- Actually it happens when =E2=80=98svn=E2=80=99 is not in $PATH, triggering = a crash in Guile as it tries to display an error in the child process: --8<---------------cut here---------------start------------->8--- $ gdb /gnu/store/9z95jms1r801z1kxpiq5xw594cxaw5jx-guile-wrapper/bin/guile c= ore [...] Core was generated by `/gnu/store/9z95jms1r801z1kxpiq5xw594cxaw5jx-guile-wr= apper/bin/guile --no-auto-c'. Program terminated with signal SIGSEGV, Segmentation fault. #0 __vfprintf_internal (s=3D0x0, format=3D0x7f9da91744e2 "In execvp of %s:= %s\n",=20 ap=3Dap@entry=3D0x7ffd286a3c78, mode_flags=3Dmode_flags@entry=3D0) at v= fprintf-internal.c:1359 1359 vfprintf-internal.c: No such file or directory. (gdb) bt #0 __vfprintf_internal (s=3D0x0, format=3D0x7f9da91744e2 "In execvp of %s:= %s\n",=20 ap=3Dap@entry=3D0x7ffd286a3c78, mode_flags=3Dmode_flags@entry=3D0) at v= fprintf-internal.c:1359 #1 0x00007f9da8ed3589 in __fprintf (stream=3D, format=3D) at fprintf.c:32 #2 0x00007f9da913fd93 in ?? () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguil= e-3.0.so.1 #3 0x00007f9da9140e01 in scm_system_star () from /gnu/store/1jgcbdzx2ss6xv59w55g3kr3x4935dfb-guile-3.0.8/lib/libguil= e-3.0.so.1 [...] --8<---------------cut here---------------end--------------->8--- This is because the fdopen(2, "a") call in =E2=80=98start_child=E2=80=99 re= turns NULL: --8<---------------cut here---------------start------------->8--- $ ltrace -f -e fdopen /bin/sh -c 'guix import texlive abstract' [pid 22937] --- Called exec() --- [pid 22945] libguile-3.0.so.1->fdopen(2, 0x7fddfd364a4a, -1, -112) =3D 0 [pid 22945] --- SIGSEGV (Segmentation fault) --- --8<---------------cut here---------------end--------------->8--- It can be reproduced like this: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (parameterize ((current-output-port (current-error-por= t))) (system* "sdfsdf")) $1 =3D 139 scheme@(guile-user)> (status:term-sig $1) $2 =3D 11 scheme@(guile-user)> (version) $3 =3D "3.0.8" --8<---------------cut here---------------end--------------->8--- Fixed in Guile commit 56b1ea9002d2d3967b597aa0ee7595e815b21f23. Back to the original issue Jack and Hugo reported: you need to add =E2=80= =98svn=E2=80=99 to $PATH to make things work. :-) Thanks, Ludo=E2=80=99.