From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Issues using statprof (no samples taken) Date: Mon, 17 Nov 2008 17:02:00 +0100 Message-ID: <87abbybatj.fsf@gnu.org> References: <491DBAE5.5060100@mit.edu> <87prkx28cp.fsf@gnu.org> <49206D71.9070407@mit.edu> <87bpwecrsb.fsf@gnu.org> <49218F97.2000805@mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226937762 31125 80.91.229.12 (17 Nov 2008 16:02:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2008 16:02:42 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Nov 17 17:03:41 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L26ZU-00040E-E4 for guile-user@m.gmane.org; Mon, 17 Nov 2008 17:03:28 +0100 Original-Received: from localhost ([127.0.0.1]:41731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L26YM-0004xi-4D for guile-user@m.gmane.org; Mon, 17 Nov 2008 11:02:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L26YI-0004xd-Cw for guile-user@gnu.org; Mon, 17 Nov 2008 11:02:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L26YG-0004xL-1F for guile-user@gnu.org; Mon, 17 Nov 2008 11:02:13 -0500 Original-Received: from [199.232.76.173] (port=56001 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L26YF-0004xI-Rf for guile-user@gnu.org; Mon, 17 Nov 2008 11:02:11 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:50553 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L26YF-0001Ul-AJ for guile-user@gnu.org; Mon, 17 Nov 2008 11:02:11 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L26YB-00035B-1o for guile-user@gnu.org; Mon, 17 Nov 2008 16:02:07 +0000 Original-Received: from 195.83.213.140 ([195.83.213.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Nov 2008 16:02:07 +0000 Original-Received: from ludo by 195.83.213.140 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Nov 2008 16:02:07 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 195.83.213.140 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Brumaire an 217 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: i686-pc-linux-gnu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) Cancel-Lock: sha1:l0H/7q2GiZyydIMz+7nxnG0fAZg= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6933 Archived-At: Hello, Boris Zbarsky writes: > Sure. The wrong thing is that profile-signal-handler is not called, > so never resets the timer, so no more SIGPROFs. Unless I'm misreading > the code. Oh, right. > I can't check the values in the structs it's passed, unfortunately (no > symbols here for guile or the libc). Maybe with `strace(1)' or similar? >> Another (remote) possibility could be that the Scheme-level handler is >> not called, even though the C handler in libguile is called, since >> Scheme-level signal handlers are actually asyncs (info "(guile) >> Asyncs"). You can try to force the execution of asyncs by adding a call >> like "(select '() '() '() 0)" (technically, it invokes `SCM_TICK', which >> runs asyncs). > > Where would I add that? In some Scheme code that is run regularly. BTW, is Gnucash multithreaded? > For that matter, what's the C handler in > libguile? I should be able to breakpoint on that and see whether it's > called, hopefully... It's `take_signal ()' (scmsigs.c), at least in 1.8.x. Hope this helps, Ludo'.