From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#38388: [2.9.5] Inaccurate source location info for unbound variables Date: Wed, 27 Nov 2019 10:53:56 +0100 Message-ID: <87o8wxabm3.fsf@igalia.com> References: <8736ea64vg.fsf@inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="60899"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 38388@debbugs.gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Nov 27 10:55:18 2019 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iZu2X-000Fb2-Qn for guile-bugs@m.gmane.org; Wed, 27 Nov 2019 10:55:18 +0100 Original-Received: from localhost ([::1]:36432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZu2Q-0001pq-M8 for guile-bugs@m.gmane.org; Wed, 27 Nov 2019 04:55:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58168) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iZu2K-0001pd-E5 for bug-guile@gnu.org; Wed, 27 Nov 2019 04:55:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iZu2J-0002RY-1V for bug-guile@gnu.org; Wed, 27 Nov 2019 04:55:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47481) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iZu2H-0002Qo-Tx for bug-guile@gnu.org; Wed, 27 Nov 2019 04:55:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iZu2H-0003gu-UG for bug-guile@gnu.org; Wed, 27 Nov 2019 04:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 27 Nov 2019 09:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38388 X-GNU-PR-Package: guile Original-Received: via spool by 38388-submit@debbugs.gnu.org id=B38388.157484845514123 (code B ref 38388); Wed, 27 Nov 2019 09:55:01 +0000 Original-Received: (at 38388) by debbugs.gnu.org; 27 Nov 2019 09:54:15 +0000 Original-Received: from localhost ([127.0.0.1]:53454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZu1X-0003fi-0X for submit@debbugs.gnu.org; Wed, 27 Nov 2019 04:54:15 -0500 Original-Received: from fanzine.igalia.com ([178.60.130.6]:44634) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iZu1U-0003fT-OQ for 38388@debbugs.gnu.org; Wed, 27 Nov 2019 04:54:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References:Subject:Cc:To:From; bh=pjL+JolKu9RIgx5X1TZxFncYEQdKvHZNFM0ObmS2e8Y=; b=GxkiZU+v44ZwhGr+ForiJmTRgNs9j5l8j/MISiJucLYPz0wYdiTe1RtRavfFVxxzfN3mt7JI2yxdkcewsJXz703b2X1WTEBcVGz+VXnVPWvgaUXnlpu6UeiYi08fLRwM1CWkrrc/MpOq6QKW+SW7tADacyvAdvxanlye7pX8ImMWVTU9AyrYfE7dglsWycTWEqmcWUjDyzY37lrkk/VhLvdpu6Tw9keWDOG2NChgUtadx/B30rvCC+aMyjIVW9yZFbIo11EThHp8UVa9DLQ7H29Un+yT1k6e7BwHhPjXq9JOrXTy4YTgiuxM6SiT5O0eJjVX2/84DCoqybWay7FnoA==; Original-Received: from lfbn-ann-1-376-195.w86-200.abo.wanadoo.fr ([86.200.91.195] helo=milano) by fanzine.igalia.com with esmtpsa (Cipher TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) id 1iZu1N-0000sd-Ht; Wed, 27 Nov 2019 10:54:05 +0100 In-Reply-To: <8736ea64vg.fsf@inria.fr> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22\?\= \=\?utf-8\?Q\?'s\?\= message of "Tue, 26 Nov 2019 16:20:51 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9474 Archived-At: Hi, On Tue 26 Nov 2019 16:20, Ludovic Court=C3=A8s w= rites: > I have a test that runs =E2=80=98guix system build=E2=80=99 on this file: > > (use-modules (gnu)) ; 1 > (use-service-modules networking) ; 2 > > (operating-system ; 4 > (host-name "antelope") ; 5 > (timezone "Europe/Paris") ; 6 > (locale "en_US.UTF-8") ; 7 > > (bootloader (GRUB-config (target "/dev/sdX"))) ; 9 > (file-systems (cons (file-system > (device (file-system-label "root")) > (mount-point "/") > (type "ext4")) > %base-file-systems))) > > Here, =E2=80=98GRUB-config=E2=80=99 is unbound, and the test expects to s= ee a stack > frame corresponding to line 9. > > However, the stack frame we get is for line 11, char 32, which > corresponds to (file-system-label "root"). > > So it would seem that the IP-to-source-location mapping is not quite > working as expected. > > Thoughts? What version is this with? Unfortunately as you know, bare identifiers don't have good source location information. There are small improvements that can be made but larger improvments are gnarly. Could be this is a case for a small improvement though! Andy