From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: Backtraces in modules? Date: Tue, 03 May 2005 12:56:28 +0200 Message-ID: <427758DC.1020107@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1115226681 26585 80.91.229.2 (4 May 2005 17:11:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 17:11:21 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed May 04 19:11:19 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTNOO-0004pk-LP for guile-devel@m.gmane.org; Wed, 04 May 2005 19:10:37 +0200 Original-Received: from [127.0.0.1] (helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTCIr-0005Jj-R0 for guile-devel@m.gmane.org; Wed, 04 May 2005 01:20:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DSvdH-0002fn-G3 for guile-devel@gnu.org; Tue, 03 May 2005 07:32:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DSvMY-0006Zx-VV for guile-devel@gnu.ORg; Tue, 03 May 2005 07:14:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DSv67-0002xj-V9 for guile-devel@gnu.ORg; Tue, 03 May 2005 06:57:52 -0400 Original-Received: from [194.109.24.33] (helo=smtp-vbr13.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DSv7p-000550-8p for guile-devel@gnu.ORg; Tue, 03 May 2005 06:59:38 -0400 Original-Received: from [192.168.123.107] (muurbloem.xs4all.nl [213.84.26.127]) by smtp-vbr13.xs4all.nl (8.12.11/8.12.11) with ESMTP id j43AsqnR082525 for ; Tue, 3 May 2005 12:54:52 +0200 (CEST) (envelope-from hanwen@xs4all.nl) User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) X-Accept-Language: en-us, en Original-To: guile-devel@gnu.ORg X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:4940 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4940 Hi there, I have trouble getting backtraces in code evalled within loaded modules. I do String mod_nm = "scm framework-" + output_backend_global; SCM mod = scm_c_resolve_module (mod_nm.to_str0 ()); if (make_print) { SCM func = scm_c_module_lookup (mod, "output-framework"); func = scm_variable_ref (func); scm_apply_0 (func, .. ) iow. I load the scm/framework-foo.scm module, which contains (define-public (output-framework basename book scopes fields) (debug-enable 'backtrace) (foobar) then I get Calculating line breaks... [2]ERROR: Unbound variable: foobar muurbloem:~/src/lilypond$ how do I get a stack trace? I've traced the problem to scm_make_stack(), which cannot construct a frame, since scm_i_last_debug_frame() returns 0x0. any pointers? -- Han-Wen Nienhuys - hanwen@xs4all.nl - http://www.xs4all.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel