From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: wolf Newsgroups: gmane.lisp.guile.user Subject: Re: How to get better stack trace from a script executed via shebang? Date: Thu, 2 Feb 2023 17:52:38 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BjklAVDfGjVHAFuR" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19578"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Fabrizio Bianchi Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Feb 02 17:53:08 2023 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNcpg-0004rc-OT for guile-user@m.gmane-mx.org; Thu, 02 Feb 2023 17:53:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNcpJ-0001er-1j; Thu, 02 Feb 2023 11:52:45 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNcpG-0001eE-LU for guile-user@gnu.org; Thu, 02 Feb 2023 11:52:42 -0500 Original-Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNcpF-0005SG-58 for guile-user@gnu.org; Thu, 02 Feb 2023 11:52:42 -0500 Original-Received: by wolfsden.cz (Postfix, from userid 104) id DE6081C5AF; Thu, 2 Feb 2023 16:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1675356759; bh=45nmviRBA4qS8xL/PWYA+tpnLYIyHnrqAz0bXfEUSF8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=plPat2Wv6s2C4UI3lHEtoZj5B4Zq/rxJoio60QnpjLA56hdOrdyokkI0e30FEk2sd 1tQCLbwOcRRJamy4ao2/5bmSdzaNSzr/+HLjOl/UBesms4O1suxuAD9oCX7zfof+oe IKxPcsyHWH7jTNRUoG8Tdy7LSONtqZ3lsQIp+0+Ir2pappKdkcfe20exvDVnDftsrj qkdyuDx9/DxA9JW0jWicVMU70ap7dZYq0Ys4liSGQL15E4nnUCpr8ImnybJcfxZDxY m/hMTelM4GsJ1hq7wy+6lxnlEinZz8lKOqaNEhulQ79i9j3AfMAIH2Q/uDBGcAv9Tp Q9TfLMektO46q7Oe4R+iHaXbogFhgPDLKD/MYJKXjXIetE8CjO6NfJRuoOvC2mupmX 4Xy6AAyhwkYnUC25rvfE4dh26t5eDfPB2hFbLEaa1b+3SDuzkW/28AYY7oSrx1tlRA vnhR2kTr6YKoVy1pgk8JBEuUCIkdGDv/kh8lc6csd7ywHijQn14Wo+ip8rW1IL8IFc +3z1dbwy+h0SPeAe/mB7BM+AGxtSHeIcXG4QVk2/FAZ7p7tZU5at3Mz/23C56I2+5T h6LcmFXhluclrXo65pqwZxnF07f4KilmR0ZcaG2YfP+kC4yCNpVAttCgiPRFq7g1+x 6/MJg/WUZ2xgayWi0jmNUmuQ= Original-Received: from localhost (unknown [128.0.188.242]) by wolfsden.cz (Postfix) with ESMTPSA id 123BE1CA87; Thu, 2 Feb 2023 16:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1675356759; bh=45nmviRBA4qS8xL/PWYA+tpnLYIyHnrqAz0bXfEUSF8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=plPat2Wv6s2C4UI3lHEtoZj5B4Zq/rxJoio60QnpjLA56hdOrdyokkI0e30FEk2sd 1tQCLbwOcRRJamy4ao2/5bmSdzaNSzr/+HLjOl/UBesms4O1suxuAD9oCX7zfof+oe IKxPcsyHWH7jTNRUoG8Tdy7LSONtqZ3lsQIp+0+Ir2pappKdkcfe20exvDVnDftsrj qkdyuDx9/DxA9JW0jWicVMU70ap7dZYq0Ys4liSGQL15E4nnUCpr8ImnybJcfxZDxY m/hMTelM4GsJ1hq7wy+6lxnlEinZz8lKOqaNEhulQ79i9j3AfMAIH2Q/uDBGcAv9Tp Q9TfLMektO46q7Oe4R+iHaXbogFhgPDLKD/MYJKXjXIetE8CjO6NfJRuoOvC2mupmX 4Xy6AAyhwkYnUC25rvfE4dh26t5eDfPB2hFbLEaa1b+3SDuzkW/28AYY7oSrx1tlRA vnhR2kTr6YKoVy1pgk8JBEuUCIkdGDv/kh8lc6csd7ywHijQn14Wo+ip8rW1IL8IFc +3z1dbwy+h0SPeAe/mB7BM+AGxtSHeIcXG4QVk2/FAZ7p7tZU5at3Mz/23C56I2+5T h6LcmFXhluclrXo65pqwZxnF07f4KilmR0ZcaG2YfP+kC4yCNpVAttCgiPRFq7g1+x 6/MJg/WUZ2xgayWi0jmNUmuQ= Mail-Followup-To: Fabrizio Bianchi , guile-user@gnu.org Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=37.205.8.62; envelope-from=wolf@wolfsden.cz; helo=wolfsden.cz 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:18884 Archived-At: --BjklAVDfGjVHAFuR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023-02-02 17:35:33 +0100, Fabrizio Bianchi wrote: > salve. Ho letto il vostro messaggio. > Purtroppo non capisco quale sia il problema. > Provi a sentire la community. Ho installato dal sito FSF.org il guile 3.0= =2E9 > bianchi fabrizio Sorry, I don't speak Italian(?), so I have no idea what this message says. >=20 >=20 > Il giorno gio 2 feb 2023 alle ore 17:13 Wolf ha scritt= o: >=20 > > Hello, > > > > I'm having a problem of getting borderline useless stack traces from a > > script > > executed via a shebang. For example, let's consider following script: > > > > $ cat /tmp/x.scm > > #!/bin/sh > > exec guile --no-auto-compile -e main -s "$0" "$@" > > !# > > > > (define (main args) > > (foo)) > > > > (define (foo) > > (bar)) > > > > (define (bar) > > (error "x")) > > > > When I execute it directly, the error message is not great: > > > > $ /tmp/x.scm > > Backtrace: > > In ice-9/boot-9.scm: > > 1752:10 4 (with-exception-handler _ _ #:unwind? _ #:unwind-for-t= ype > > _) > > In unknown file: > > 3 (apply-smob/0 #) > > In ice-9/boot-9.scm: > > 724:2 2 (call-with-prompt ("prompt") # > ice-9/eval.scm:330:13 ()> #) > > In ice-9/eval.scm: > > 619:8 1 (_ #(#(#))) > > In ice-9/boot-9.scm: > > 2007:7 0 (error _ . _) > > > > ice-9/boot-9.scm:2007:7: In procedure error: > > x > > > > The /tmp/x.scm file is not even mentioned once in the output. Can this = be > > somehow (command line arguments, changing the exec line, ...) improved? > > Currently it's not very useful when I need to find out what the problem > > was. > > > > Thank you, > > W. > > > > -- > > There are only two hard things in Computer Science: > > cache invalidation, naming things and off-by-one errors. > > W. --=20 There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --BjklAVDfGjVHAFuR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmPb6lYACgkQL7/ufbZ/ wanrAw/+OI420Zqka4MkJLyE+oCV6LIQXhUxGf5h+byCSPIlikowt+gUpf8hvU/e VEfbVdCDtj/PXWM4P+/hdEw80giDeE9/C1LBWfDR7u6Diz+n7GT9+sAtVegFG466 9e/Hnmj2cNFHJOn61r3+IjEcJsWFYsswogJnGSXbUIJTC49bU6gYWq6x0kOcM5Kd MAZb3Tq3AGgJKh//phcqh+YqYAjvFy4jHwHXh0vOz9fgWEFgCdWbHUmc7fJbtC+/ xXK+k7phCqFTYN28A3d3mo0zMPgoeCnvcaJ/WWV3B4NOTgxl25Hxp70+fEwvzb9S IW4TlpXZQb1f0ek5EgxNI7LIwVvN1hz9+elHhyRqx7TnmvdSoi2bJtSYb5iY30iN hzCykON3bXQRSQ0684OMZYsCaZqX0lq8avNdB7WuaY/DluJ6fbMNO5DRkKVq1Tgr vecuM9AWh5D5dQWZWicuzVES0sb39+jPhNCGhg7uc5TMsOJcopShxYdoCMlmbk5+ ose6UgoteZxPjQixPI7pi+QXgqpyRi7vK7cX9zaxsZ+o2t2wAEVw822gzbZguzfr FFXCGM9d6lsvS4+MTpXVizT5NLo1IVH+JPKUzyMmZ2ldI+MlDQ+jOoptIUBpF6eZ bYNk8pwLvUzv/anxyt9D4EeYM/K6DicP3XOHUHh2WRM5gHB/too= =1WPO -----END PGP SIGNATURE----- --BjklAVDfGjVHAFuR--