From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adriano Peluso Newsgroups: gmane.lisp.guile.user Subject: tracepoint Date: Tue, 11 May 2021 08:31:04 +0200 Message-ID: <288ca88aa665af6d9e33aa63d1d35807b3838dce.camel@riseup.net> Reply-To: randomlooser@riseup.net Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17324"; mail-complaints-to="usenet@ciao.gmane.io" To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue May 11 08:52:05 2021 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 1lgMFQ-0004JL-EN for guile-user@m.gmane-mx.org; Tue, 11 May 2021 08:52:04 +0200 Original-Received: from localhost ([::1]:35288 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgMFP-0004jz-9d for guile-user@m.gmane-mx.org; Tue, 11 May 2021 02:52:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgLvT-0001aF-JC for guile-user@gnu.org; Tue, 11 May 2021 02:31:27 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:58138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgLvM-0006VY-Qy for guile-user@gnu.org; Tue, 11 May 2021 02:31:27 -0400 Original-Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4FfSjn0r2LzDqBy for ; Mon, 10 May 2021 23:31:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1620714669; bh=m4cLp9/sqGviPeB9+IDHmTd4JcA1tVlB/+6ZoZcFpLU=; h=Subject:From:Reply-To:To:Date:From; b=Ifn4m9dAhlkYZx75s+IDZXccofz1QXplKC3wdA2z0MoFwfIf4tS83Lz4PFdHC7cAa BmPwdXVactzONqC6yGr9fHxU5U54OTJxL72leRRCoB3RHgnA0G2Ct3xpwRxP1Q7A41 kr2TMAJMt4IiH0vxpPqKgJFVUofWW2vV2vXLYNTE= X-Riseup-User-ID: 9A12A0F7E10961619F90984D8DD604C68329650591155D330F89488ADF19E7E3 Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4FfSjm2w7kz5w5b for ; Mon, 10 May 2021 23:31:08 -0700 (PDT) Received-SPF: pass client-ip=198.252.153.129; envelope-from=randomlooser@riseup.net; helo=mx1.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.23 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" Xref: news.gmane.io gmane.lisp.guile.user:17522 Archived-At: I can't get tracepointing to work. What follows is on Guile 3.0.5 fron Guix the package manager but the same happens with the Guile 3.0.4 from Ubuntu I have 2 procedures One of them makes a so called recursive process and the other one makes an iterative process I can trace them This is the recursive one scheme@(guile-user)> ,trace (f 5) trace: | (f 5) trace: | | (f 4) trace: | | | (f 3) trace: | | | | (f 2) trace: | | | | 2 trace: | | | | (f 1) trace: | | | | 1 trace: | | | | (f 0) trace: | | | | 0 trace: | | | 4 trace: | | | (f 2) trace: | | | 2 trace: | | | (f 1) trace: | | | 1 trace: | | 11 trace: | | (f 3) trace: | | | (f 2) trace: | | | 2 trace: | | | (f 1) trace: | | | 1 trace: | | | (f 0) trace: | | | 0 trace: | | 4 trace: | | (f 2) trace: | | 2 trace: | 25 and this is the iterative one scheme@(guile-user)> ,trace (f-it 5) trace: | (f-it 5) trace: | (f-it-iter 2 1 0 5) trace: | (f-it-iter 4 2 1 4) trace: | (f-it-iter 11 4 2 3) trace: | (f-it-iter 25 11 4 2) trace: | 25 but I can't tracePOINT them scheme@(guile-user)> ,tp f Trap 0: Tracepoint at #. scheme@(guile-user)> (f 6) Trap 0: (f 6) Trap 0: | (f 5) Trap 0: | | (f 4) Trap 0: | | | (f 3) Trap 0: | | | | (f 2) ice-9/boot-9.scm:1669:16: In procedure raise-exception: Wrong number of arguments to # Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> and the iterative one scheme@(guile-user)> ,tp f-it Trap 1: Tracepoint at #. scheme@(guile-user)> (f-it 6) ice-9/boot-9.scm:1669:16: In procedure raise-exception: Wrong number of arguments to # Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]>