GNU bug report logs

#47797 Segmentation fault when calling 'git-predicate' in a package file

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #5 received at submit@debbugs.gnu.org (full text, mbox, reply):

Received: (at submit) by debbugs.gnu.org; 15 Apr 2021 13:22:01 +0000
From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 15 09:22:01 2021
Received: from localhost ([127.0.0.1]:36756 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1lX1wW-0000RC-Pj
	for submit@debbugs.gnu.org; Thu, 15 Apr 2021 09:22:01 -0400
Received: from lists.gnu.org ([209.51.188.17]:40680)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <grumbel@gmail.com>) id 1lX1wR-0000R0-VP
 for submit@debbugs.gnu.org; Thu, 15 Apr 2021 09:22:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33264)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <grumbel@gmail.com>) id 1lX1wR-0003xr-Nh
 for bug-guix@gnu.org; Thu, 15 Apr 2021 09:21:55 -0400
Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:33428)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <grumbel@gmail.com>) id 1lX1wP-00040H-O1
 for bug-guix@gnu.org; Thu, 15 Apr 2021 09:21:55 -0400
Received: by mail-lj1-x22f.google.com with SMTP id p23so23384046ljn.0
 for <bug-guix@gnu.org>; Thu, 15 Apr 2021 06:21:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:from:date:message-id:subject:to;
 bh=vbyyBanbQTzp0Gh0q6OQ+SYaHMVeu+yR0G4RGiIp1Bk=;
 b=hekaAKd/Go+5EwPDWzOAZYEGuMCJ/5tlIKQfsvHaeGkfXcsOSrihJKc1KCXJsoaNE8
 DrUscZsnoWsmp0gf++Dks3ahyCHplV/vP41Ct/MirLz5LZJn0XhhOqpXtIO7PZnEN5np
 7PfSzXyE0FIE1c/prRzb/wTeTbaMgNj2e7NNWIX1kDHWQTdz55IcFBQ/iiubmz5lMmgT
 nJekiK0as8frk8bln5B0oL/E/9PAOnbYkSULoPnB4y7H3Xi7S7mPrCgEEPOK6/hNgPnK
 jjOU+tNYBhtrjzCMH6VfKd5OSiUBzKkmAKQZPlduhJcbGL9/MMaSGIbzWfCRrFnsEqcD
 6JQQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:from:date:message-id:subject:to;
 bh=vbyyBanbQTzp0Gh0q6OQ+SYaHMVeu+yR0G4RGiIp1Bk=;
 b=pmApv/Qp//HCE+pirH8C7LUvlI7TmYHFoTpnWsKiZkDWNW0Rkmajo3BWJmRjUYqAXS
 JscfpwPP4QwBR/6Qjg6APaNZoBgy7P8iQ7ypZQaeZTyGJHbDoOvd+IsEh5ROnpsOW8oV
 Uo68eAX5AKOm5/NcZ46SFTSLFMYXLjq6g3TPyx6FKapvftyCX2RON3ByVvs5AXPe12nE
 g7ge15Fk4Et1KycqJ/3L2lo0ljgixRuSDhsq/pTNidVuwDDfacm2FwMeMpvMk/VIrs0x
 IL1rgj3rjl5Brn8m8N0/gj1mpGO8LwkykJ/VphdKf93fn54zUmrw0iv8rPH4bb9LWS/U
 9x7w==
X-Gm-Message-State: AOAM532eASq7chaB01mfBpH8BYcBvH9xGifrZUR5rP90wAfLaGdjk6SE
 YjrdQcZYsqyUyaqodz4bQochWsrhJqDxN3l29t6J7Bk3swV3MA==
X-Google-Smtp-Source: ABdhPJxT6M8MEU0ac/qKwuWTa8KuBW85/6dz1TPjAHEcnWDOrd/qlRsH+eT/sQs7cflrjx8Zn6FpMtwGr1tooBF/5HI=
X-Received: by 2002:a2e:b88b:: with SMTP id r11mr1809317ljp.227.1618492910464; 
 Thu, 15 Apr 2021 06:21:50 -0700 (PDT)
MIME-Version: 1.0
From: Ingo Ruhnke <grumbel@gmail.com>
Date: Thu, 15 Apr 2021 15:21:39 +0200
Message-ID: <CAHz1FYjJcFcfs7N-=defK8VWUSw5PHBnMQOKdSVy0Yg79nkKPQ@mail.gmail.com>
Subject: Segmentation fault when calling 'git-predicate' in a package file
To: bug-guix@gnu.org
Content-Type: multipart/alternative; boundary="000000000000fff25505c002becb"
Received-SPF: pass client-ip=2a00:1450:4864:20::22f;
 envelope-from=grumbel@gmail.com; helo=mail-lj1-x22f.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -2.3 (--)
[Message part 1 (text/plain, inline)]
Calling git-predicate from a simple package file causes guix to segfault.
Bisect traced it down to this commit:


commit c1940fde43c7aca37d67589cc5cb248086d17d56
Author: Ludovic Courtès <ludo@gnu.org>
Date:   Fri Mar 19 11:51:20 2021 +0100

    git-download: Autoload Guile-Git.

    * guix/git-download.scm: Autoload (git ...) modules.


Steps to reproduce the issue:

$ cat mypkg.scm
(use-modules (guix git-download))
(git-predicate "/tmp")

$ guix package -f mypkg.scm
Segmentation fault (core dumped)

$ guix --version
guix (GNU Guix) 1bab9b9f17256a9e4f45f5b0cceb8b52e0a1b1ed

(gdb) where
#0  0x0000000000000000 in ?? ()
#1  0x00007fffeb0f44c4 in git_buf_try_grow () from
/gnu/store/jil14glx1j7mrj4cvzmw876rzyv7i960-libgit2-1.1.0/lib/libgit2.so
#2  0x00007fffeb0f47a5 in git_buf_set () from
/gnu/store/jil14glx1j7mrj4cvzmw876rzyv7i960-libgit2-1.1.0/lib/libgit2.so
#3  0x00007fffeb146fe7 in git_path_prettify () from
/gnu/store/jil14glx1j7mrj4cvzmw876rzyv7i960-libgit2-1.1.0/lib/libgit2.so
#4  0x00007fffeb15b3ad in find_repo () from
/gnu/store/jil14glx1j7mrj4cvzmw876rzyv7i960-libgit2-1.1.0/lib/libgit2.so
#5  0x00007fffeb15c28b in git_repository_discover () from
/gnu/store/jil14glx1j7mrj4cvzmw876rzyv7i960-libgit2-1.1.0/lib/libgit2.so
#6  0x00007ffff7c1266d in ffi_call_unix64 () from
/gnu/store/bw15z9kh9c65ycc2vbhl2izwfwfva7p1-libffi-3.3/lib/libffi.so.7
#7  0x00007ffff7c10ac0 in ffi_call_int () from
/gnu/store/bw15z9kh9c65ycc2vbhl2izwfwfva7p1-libffi-3.3/lib/libffi.so.7
#8  0x00007ffff7edefbe in scm_i_foreign_call () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#9  0x00007ffff7f4d904 in foreign_call () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#10 0x00007ffff7f54118 in vm_regular_engine () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#11 0x00007ffff7f555b5 in scm_call_n () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#12 0x00007ffff7ed2d27 in scm_primitive_eval () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#13 0x00007ffff7ed2d83 in scm_eval () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#14 0x00007ffff7f2b830 in scm_shell () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#15 0x00007ffff7eea73d in invoke_main_func () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#16 0x00007ffff7eccb0a in c_body () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#17 0x00007ffff7f54149 in vm_regular_engine () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#18 0x00007ffff7f555b5 in scm_call_n () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#19 0x00007ffff7ed1bba in scm_call_2 () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#20 0x00007ffff7ed33ba in scm_c_with_exception_handler () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#21 0x00007ffff7f4ac3d in scm_c_catch () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#22 0x00007ffff7ecd0b3 in scm_i_with_continuation_barrier () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#23 0x00007ffff7ecd145 in scm_c_with_continuation_barrier () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#24 0x00007ffff7f496df in with_guile () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#25 0x00007ffff7c56a68 in GC_call_with_stack_base () from
/gnu/store/iycnpxxrg8m9wf9w58d6zvp9sdby6m9d-libgc-7.6.12/lib/libgc.so.1
#26 0x00007ffff7f499f8 in scm_with_guile () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#27 0x00007ffff7eea8b2 in scm_boot_guile () from
/gnu/store/q8brh7j5mwy0hbrly6hjb1m3wwndxqc8-guile-3.0.5/lib/libguile-3.0.so.1
#28 0x000000000040119a in main ()
[Message part 2 (text/html, inline)]

Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 08:53:13 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.