From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wLocGPnq1mCWJAEAgWs5BA (envelope-from ) for ; Sat, 26 Jun 2021 10:53:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id EPTOE/nq1mCQVgAA1q6Kng (envelope-from ) for ; Sat, 26 Jun 2021 08:53:13 +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 A375215E09 for ; Sat, 26 Jun 2021 10:53:12 +0200 (CEST) Received: from localhost ([::1]:33458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lx43r-0000iY-Ei for larch@yhetil.org; Sat, 26 Jun 2021 04:53:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lx43h-0000gC-Tp for bug-guix@gnu.org; Sat, 26 Jun 2021 04:53:01 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35560) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lx43h-0006wt-JH for bug-guix@gnu.org; Sat, 26 Jun 2021 04:53:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lx43h-0001P1-Iz for bug-guix@gnu.org; Sat, 26 Jun 2021 04:53:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48855: Segfault while attempting to use --with-git-url Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 26 Jun 2021 08:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48855 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Received: via spool by 48855-submit@debbugs.gnu.org id=B48855.16246975755379 (code B ref 48855); Sat, 26 Jun 2021 08:53:01 +0000 Received: (at 48855) by debbugs.gnu.org; 26 Jun 2021 08:52:55 +0000 Received: from localhost ([127.0.0.1]:47106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lx43b-0001Og-EF for submit@debbugs.gnu.org; Sat, 26 Jun 2021 04:52:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lx43Z-0001OT-IC for 48855@debbugs.gnu.org; Sat, 26 Jun 2021 04:52:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54264) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lx43S-0006lY-Ou; Sat, 26 Jun 2021 04:52:48 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42480 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lx43S-0007VT-EY; Sat, 26 Jun 2021 04:52:46 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <878s3nkha9.fsf@gmail.com> Date: Sat, 26 Jun 2021 10:52:44 +0200 In-Reply-To: <878s3nkha9.fsf@gmail.com> (Maxim Cournoyer's message of "Sat, 05 Jun 2021 19:45:02 -0400") Message-ID: <87bl7t2ejn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: 48855@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624697592; 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: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=1y7kWBzFPhN6TaLD8EObPaqrBdSM8XDYHLzSQv8OBOI=; b=JA98MUGU38rfxru5OQUGAYS0owIm65pSobRZBQ/FB5QcLiffSK9mZBQyT08R8paamYYG1t riOlgRf3hvffF1gI2CUBVppWWjr1d2n/xlIHdot66OzlN4etTcIK6Lkj6D5K9AsFECsXMy FxIF5JRjSPKdOXnTP0l1NFQp9toDwmzXnq9TTVWDMbN4PlVUKm9O0REAxXNficMTN5UchX aMt2imyLIRC6rc0XfqyTSzJ1WUMAi8pDSHbNeSwUuBuYsevlksKckQgFuAUasbRTcLkpj8 DbBAkLOyq4b2/Z5phzmxp3JcsOh4O/shfHQ55gCDuf/8q7mIBm+KuPfTgZr3ZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624697592; a=rsa-sha256; cv=none; b=FPlHqS5SoU9PiJlWwb9a6EQY5ZNJy8oGeJs37ddyg/nnS93heiLPjC1HVQsCpRsYBtxbnO x3Ht4xsZNVx5+rtcTxoH12WtSv1AcrJBWYnOWpa5SrZZ0qMfOgM+KeaUQBGNQJMjk5k4ME DAYKhOuNcgIS07ZKca20er4h8sdd4GtrBVb175m/cvqKowdkGoYFqX8jRG8UReHh5LyJ5g 4w4eO5App5FwMUn12X9c5DRhj/LTRVXthyM/OSL/W1Vvth/UmEXYYAogsCy275UxsXSdxk nRGNpQpupfMKHrAn21i+GrKj0r45brC/pM7cypEJ/74bXuMyq+gqGGdjBfVV5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.93 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@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: A375215E09 X-Spam-Score: -2.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: N1j50n2HRho0 --=-=-= Content-Type: text/plain Hello, Maxim Cournoyer skribis: > $ ./pre-inst-env guix build ppsspp \ > --with-git-url=ppsspp=https://github.com/hrydgard/ppsspp > > I get either > > updating submodule 'ext/SPIRV-Cross'... > indexing objects 91% [########################################################################################################################################################################## ]Segmentation fault > > > or > > updating checkout of 'https://github.com/hrydgard/ppsspp'... > updating submodule 'dx9sdk'... > updating submodule 'ext/SPIRV-Cross'... > updating submodule 'ext/armips'... > receiving objects 73% [######################################################################################################################################## ]Illegal instruction For the record, a possible workaround is: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/guix/git.scm b/guix/git.scm index 9c6f326c36..a180d12acc 100644 --- a/guix/git.scm +++ b/guix/git.scm @@ -291,7 +291,8 @@ dynamic extent of EXP." (format log-port (G_ "updating submodule '~a'...~%") name) (submodule-update submodule - #:fetch-options fetch-options) + #:fetch-options + (make-default-fetch-options)) ;; Recurse in SUBMODULE. (let ((directory (string-append --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable This has to do with fetch options/progress callbacks being reclaimed too early. The backtrace upon segfault looks like this: --8<---------------cut here---------------start------------->8--- (gdb) bt #0 0x00007f83dc798a3e in get_callee_vcode (thread=3Dthread@entry=3D0x7f83d= be2fd80) at vm.c:1499 #1 0x00007f83dc7a08a4 in scm_call_n ( proc=3Dproc@entry=3D0xe0,=20 argv=3Dargv@entry=3D0x7ffe6426d200, nargs=3D2) at vm.c:1606 #2 0x00007f83dc729fcc in invoke_closure (cif=3D0x7f83cbbfc580, ret=3D0x7ff= e6426d420, args=3D0x7ffe6426d270, data=3D0xe0) at foreign.c:1100 #3 0x00007f83dc463ed1 in ffi_closure_unix64_inner () from /gnu/store/bw15z9kh9c65ycc2vbhl2izwfwfva7p1-libffi-3.3/lib/libffi.s= o.7 #4 0x00007f83dc464800 in ffi_closure_unix64 () from /gnu/store/bw15z9kh9c65ycc2vbhl2izwfwfva7p1-libffi-3.3/lib/libffi.s= o.7 #5 0x00007f83c6e452a1 in do_progress_callback (stats=3Dstats@entry=3D0xd84= 3c0, idx=3D, idx=3D) at /tmp/guix-build-libgit2-1.1.0.drv-0/libgit2-1.1.0/src/indexer.c:562 #6 0x00007f83c6e457cb in git_indexer_append (idx=3D0xdc3930, data=3D, size=3D,=20 stats=3D0xd843c0) at /tmp/guix-build-libgit2-1.1.0.drv-0/libgit2-1.1.0/= src/indexer.c:809 #7 0x00007f83c6e9c6df in git_smart__download_pack (transport=3D0xda08a0, r= epo=3D, stats=3D0xd843c0,=20 progress_cb=3D0x7f83d8da50b8, progress_payload=3D) at /tmp/guix-build-libgit2-1.1.0.drv-0/libgit2-1.1.0/src/transports/sma= rt_protocol.c:582 #8 0x00007f83c6e7a15b in git_remote_download (remote=3Dremote@entry=3D0xd8= 42f0, refspecs=3Drefspecs@entry=3D0x0,=20 opts=3Dopts@entry=3D0x7ffe6426d808) at /tmp/guix-build-libgit2-1.1.0.dr= v-0/libgit2-1.1.0/src/remote.c:989 #9 0x00007f83c6e7ae0e in git_remote_fetch (remote=3D0xd842f0, refspecs=3Dr= efspecs@entry=3D0x0,=20 opts=3Dopts@entry=3D0x7ffe6426d808, reflog_message=3Dreflog_message@ent= ry=3D0x0) at /tmp/guix-build-libgit2-1.1.0.drv-0/libgit2-1.1.0/src/remote.c:1025 #10 0x00007f83c6e909d9 in git_submodule_update (sm=3D0xd81360, init=3D1, _u= pdate_options=3D) at /tmp/guix-build-libgit2-1.1.0.drv-0/libgit2-1.1.0/src/submodule.c:13= 52 #11 0x00007f83dc46466d in ffi_call_unix64 () from /gnu/store/bw15z9kh9c65ycc2vbhl2izwfwfva7p1-libffi-3.3/lib/libffi.s= o.7 #12 0x00007f83dc462ac0 in ffi_call_int () from /gnu/store/bw15z9kh9c65ycc2v= bhl2izwfwfva7p1-libffi-3.3/lib/libffi.so.7 #13 0x00007f83dc72a33e in scm_i_foreign_call (cif_scm=3D, po= inter_scm=3D,=20 errno_ret=3Derrno_ret@entry=3D0x7ffe6426dc9c, argv=3D0x7f83ce7d7880) at= foreign.c:1073 --8<---------------cut here---------------end--------------->8--- To be continued=E2=80=A6 Ludo=E2=80=99. --=-=-=--