From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.devel Subject: Fwd: Guile interpeter crash Date: Tue, 1 Oct 2013 18:42:57 +0200 Message-ID: References: <87vc1hrpia.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0102fe6e228ea504e7b0a53f X-Trace: ger.gmane.org 1380645781 16112 80.91.229.3 (1 Oct 2013 16:43:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Oct 2013 16:43:01 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Oct 01 18:43:06 2013 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VR32P-0001lt-Ux for guile-devel@m.gmane.org; Tue, 01 Oct 2013 18:43:06 +0200 Original-Received: from localhost ([::1]:60106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR32P-0004Q7-Ao for guile-devel@m.gmane.org; Tue, 01 Oct 2013 12:43:05 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR32J-0004Q0-Jj for guile-devel@gnu.org; Tue, 01 Oct 2013 12:43:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VR32I-0005f5-73 for guile-devel@gnu.org; Tue, 01 Oct 2013 12:42:59 -0400 Original-Received: from mail-vc0-x233.google.com ([2607:f8b0:400c:c03::233]:47009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR32I-0005f0-1j for guile-devel@gnu.org; Tue, 01 Oct 2013 12:42:58 -0400 Original-Received: by mail-vc0-f179.google.com with SMTP id ht10so5145092vcb.10 for ; Tue, 01 Oct 2013 09:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=JPppshHf9OtLzW8ywnIPk8/MY2U72JapEPCz3eINSwY=; b=jHsI52V7+lF3Aa9kOLsvrIyqVJ+1SxGIiWUtdkbhqsoZ3LDm/xWNTHDurHUbX0wLhI YK4SeOdyLXrKJRt8RVwXjWYO+jGR/vvlFnNr7pyIdRxO+M1eWxcNfHsAxbuHjx24i/1T Nw2H6ChB0SBofTqD6HEPmOfJVkErfqlfzf5IpCQ8W0r2eMi690v4TR4q5qsYDj+lwh03 9TJjEw9dEvLNBeyAiKZzKi1ZFW1qAV5ID4p5YZ03XbzRKMmCsJGYnxbmtilb6cmPHwSe PT4RQGXbadNwUnvguPfNUhfTC6FlKmPxo79LEzwBCskKHr+9VcOoC6GBkNUmZajSWsWS 1JQA== X-Received: by 10.52.230.35 with SMTP id sv3mr1367746vdc.27.1380645777583; Tue, 01 Oct 2013 09:42:57 -0700 (PDT) Original-Received: by 10.221.45.135 with HTTP; Tue, 1 Oct 2013 09:42:57 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::233 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:16659 Archived-At: --089e0102fe6e228ea504e7b0a53f Content-Type: text/plain; charset=ISO-8859-1 ---------- Forwarded message ---------- From: Panicz Maciej Godek Date: 2013/10/1 Subject: Re: Guile interpeter crash To: Dmitry Bogatov 2013/10/1 Dmitry Bogatov > > Here is code that results crash (return 134). Hope it is interesting. > The code you gave is not a proper Scheme program. C.f. http://www.schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-8.html#%_sec_5.3, excerpt: Although macros may expand into definitions and syntax definitions in any context that permits them, it is an error for a definition or syntax definition to shadow a syntactic keyword whose meaning is needed to determine whether some form in the group of forms that contains the shadowing definition is in fact a definition, or, for internal definitions, is needed to determine the boundary between the group and the expressions that follow the group In other words, you cannot redefine define. I suppose the interpreter falls into infinite loop when it tries to substitute define# with define, and then define -- with define#. That being said, I don't think it's fortunate to use the # character within a symbol. Best regards, M. --089e0102fe6e228ea504e7b0a53f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


---------- Forwarded me= ssage ----------
From: Panicz Maciej Godek= <godek.= maciek@gmail.com>
Date: 2013/10/1
Subject: Re: Guile interpeter crash
To: Dmitry Bogato= v <KAction@gnu.org>

2013/10/1 Dmitry Bogatov <KAction@gnu.org>

Here is code that results crash (return 134). Hope it is interesting.

The code you gave is not a proper Sche= me program.

Although macros may expan= d into definitions and syntax definitions in any context that permits them,= it is an error for a definition or syntax definition to shadow a syntactic= keyword whose meaning is needed to determine whether some form in the grou= p of forms that contains the shadowing definition is in fact a definition, = or, for internal definitions, is needed to determine the boundary between t= he group and the expressions that follow the group

In other words, you cannot redefine define. I sup= pose the interpreter falls into infinite loop when it tries to substitute d= efine# with define, and then define -- with define#.
That being s= aid, I don't think it's fortunate to use the # character within a s= ymbol.

Best regards,
M.

--089e0102fe6e228ea504e7b0a53f--