From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rob Browning Newsgroups: gmane.lisp.guile.devel,gmane.linux.ports.ia64 Subject: Problem with Guile on ia64 (possibly "getcontext" related) Date: Sat, 15 Jul 2006 15:24:31 -0700 Message-ID: <87ac7ajylc.fsf@raven.defaultvalue.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1153002293 905 80.91.229.2 (15 Jul 2006 22:24:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 15 Jul 2006 22:24:53 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Jul 16 00:24:48 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G1sYx-0006cQ-8X for guile-devel@m.gmane.org; Sun, 16 Jul 2006 00:24:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1sYw-0001VB-Oz for guile-devel@m.gmane.org; Sat, 15 Jul 2006 18:24:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G1sYr-0001SU-W7 for guile-devel@gnu.org; Sat, 15 Jul 2006 18:24:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G1sYr-0001Ra-Cj for guile-devel@gnu.org; Sat, 15 Jul 2006 18:24:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G1sYr-0001RG-6j for guile-devel@gnu.org; Sat, 15 Jul 2006 18:24:33 -0400 Original-Received: from [70.85.129.156] (helo=defaultvalue.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G1sbA-0003pm-6M for guile-devel@gnu.org; Sat, 15 Jul 2006 18:26:56 -0400 Original-Received: from omen.defaultvalue.org (localhost [127.0.0.1]) by defaultvalue.org (Postfix) with ESMTP id 7AAF490D2B; Sat, 15 Jul 2006 15:24:32 -0700 (PDT) Original-Received: from raven.defaultvalue.org (raven.defaultvalue.org [192.168.1.7]) by omen.defaultvalue.org (Postfix) with ESMTP id 27A1423DCE; Sat, 15 Jul 2006 15:24:32 -0700 (PDT) Original-Received: by raven.defaultvalue.org (Postfix, from userid 1000) id 07BFB35504A; Sat, 15 Jul 2006 15:24:31 -0700 (PDT) Original-To: linux-ia64@vger.kernel.org User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) 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:6001 gmane.linux.ports.ia64:14580 Archived-At: Guile 1.6.8 is crashing on ia64 with an illegal instruction whenever it tries to execute call-with-current-continuation. For those who don't know, call-with-current-continuation captures the current state of the computation; it's a language feature somewhat similar to setjmp. The crash seems to be right around an asm "getcontext" call, and after looking around, I found these two links: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/144939 http://lists.freebsd.org/pipermail/freebsd-sparc64/2006-January/003739.html They appear claim that adding a dummy (non-executed) setjmp just after the getcontext call will fix the problem because gcc recognizes setjmp, but not getcontext, and makes appropriate arrangements. So I tried adding a dummy setjmp just after the getcontext call, and that does fix the problem. However, even though this worked, I'd still prefer to have a better idea that this is the right fix before adopting it. Is that likely? The relevant function is scm_make_continuation which you can find here: http://cvs.savannah.gnu.org/viewcvs/guile/guile-core/libguile/continuations.c?rev=1.38.2.7&root=guile&only_with_tag=branch_release-1-6&view=markup Versions: Debian libc6.1 2.3.6-15 Debian gcc (GCC) 4.1.2 20060708 (prerelease) (Debian 4.1.1-8) Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel