From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.devel Subject: Re: An Error in Early Boot Date: Thu, 14 Oct 2010 22:31:16 -0400 Message-ID: References: <814573.44378.qm@web37903.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1287110300 28810 80.91.229.12 (15 Oct 2010 02:38:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2010 02:38:20 +0000 (UTC) Cc: guile-devel@gnu.org To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Oct 15 04:38:18 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P6aBW-0008DI-0S for guile-devel@m.gmane.org; Fri, 15 Oct 2010 04:38:18 +0200 Original-Received: from localhost ([127.0.0.1]:59102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6aBV-00068U-G8 for guile-devel@m.gmane.org; Thu, 14 Oct 2010 22:38:17 -0400 Original-Received: from [140.186.70.92] (port=46015 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6aBN-00064v-EM for guile-devel@gnu.org; Thu, 14 Oct 2010 22:38:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6aBM-00059X-GO for guile-devel@gnu.org; Thu, 14 Oct 2010 22:38:09 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:46965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6aBM-00059F-At for guile-devel@gnu.org; Thu, 14 Oct 2010 22:38:08 -0400 Original-Received: by wwd20 with SMTP id 20so276071wwd.30 for ; Thu, 14 Oct 2010 19:38:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=G37QUH2X2v3/noQRCVvnqFckbZjmBe5y7M62A0o11Fs=; b=RJ+XBlaWyVF2N4dPLkSd5RHGba6X4JGwCRrkf0tBUn9tw1NqmJ4qc+M523j2wCMLmV fjBDq2BBrdwhfI6xwr0Rszc0NvlIeL/MUfbucLyF6U1Bznm7G/XamTxML9YPIfSwhp1O 5uTwJCCx5fDfifJEMZJ2FfQMrKoXhwjDXgBjA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=sKvs8ZKRVsO/Tja7Yx5KLkFnfkzX+c7R8tG0STF06PC4tQzpYa3KKIIH8dTgFtzx8x vpCptIqxnFQWxEKNGqd1Y0IWHrBvDecKUtVubg+ZMZuKpV5p/pe0blTdcSTMbRpmlTdA CrtDR0oZl85Sd6g6F49AH34aTOubqUg3nqEZw= Original-Received: by 10.216.37.193 with SMTP id y43mr72279wea.59.1287109876491; Thu, 14 Oct 2010 19:31:16 -0700 (PDT) Original-Received: by 10.216.170.204 with HTTP; Thu, 14 Oct 2010 19:31:16 -0700 (PDT) In-Reply-To: <814573.44378.qm@web37903.mail.mud.yahoo.com> X-Google-Sender-Auth: kxaiPPQeuo9NQFDpAviJQUozS9o X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:11046 Archived-At: Yeah, it looks to me like that code would resolve this issue. What I don't understand, however, is why the pre-init-catch-tag, which that patch added, didn't resolve the issue. Is this a difference between catch tags and prompts? Noah On Thu, Oct 14, 2010 at 7:36 PM, Mike Gran wrote: >> From: Noah Lavine >> >> Hello, >> >> I got into a situation just now when Guile was generating an error >> very early in the boot process (it was loading some objcode from >> scm_init_eval_in_scheme(), I think, although I haven't looked enough >> to be sure). The fun part is, instead of printing an error message, it >> got into an infinite recursion that eventually ended in a memory >> fault. >> >> The reason is that scm_error_scm in error.c calls scm_ithrow (error.c:315), >> which finds its way through scm_throw and some VM calls to >> pre_init_throw (throw.c:495) >> which in turn gets it to scm_at_abort, which goes to scm_c_abort, >> which finally calls scm_misc_error (control.c:210) because it can't >> find a prompt on the dynamic stack because the error is too early, >> which leads back to scm_error_scm again. > > Hi Noah, > > FWIW, I also noticed the infinite recusion problem in bug #30162. > > http://savannah.gnu.org/bugs/?30162 > > At the time, I thought that the following revision might be the one > that caused the problem. > > http://git.savannah.gnu.org/cgit/guile.git/commit/?id=c6a32a2cd59190dcf17c7fb3022588f56079a03e > > > -Mike >