From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Kjetil S. Matheussen" Newsgroups: gmane.emacs.bugs Subject: bug#536: Emacs makes inferior-scheme and inferior-lisp hang when... Date: Sat, 05 Jul 2008 15:16:02 +0200 (CEST) Message-ID: References: Reply-To: "Kjetil S. Matheussen" , 536@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1215276751 28370 80.91.229.12 (5 Jul 2008 16:52:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Jul 2008 16:52:31 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 05 18:53:18 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KFB0e-0008KC-2F for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Jul 2008 18:53:16 +0200 Original-Received: from localhost ([127.0.0.1]:42882 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFAzn-0003gE-2i for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Jul 2008 12:52:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFAuy-0005hj-SG for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 12:47:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFAuw-0005d2-4d for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 12:47:23 -0400 Original-Received: from [199.232.76.173] (port=40808 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFAuv-0005ci-RX for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 12:47:21 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33484) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KFAuu-0004Sw-Ay for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 12:47:21 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m65GlD7Y003097; Sat, 5 Jul 2008 09:47:14 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m65GZ30T032056; Sat, 5 Jul 2008 09:35:03 -0700 X-Loop: don@donarmstrong.com Resent-From: "Kjetil S. Matheussen" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 05 Jul 2008 16:35:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 536 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121527539230816 (code B ref -1); Sat, 05 Jul 2008 16:35:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 5 Jul 2008 16:29:52 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m65GTllQ030810 for ; Sat, 5 Jul 2008 09:29:49 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFAdu-0006ks-RG for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 12:29:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFAdt-0006jN-6L for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 12:29:45 -0400 Original-Received: from [199.232.76.173] (port=33918 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFAds-0006jB-Q3 for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 12:29:44 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:22142) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KFAds-0000LU-IU for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 12:29:44 -0400 Original-Received: from smtp.getmail.no ([84.208.20.33]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KF7ci-0008LO-UK for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 09:16:21 -0400 Original-Received: from pmxchannel-daemon.no-osl-m323-srv-004-z2.isp.get.no by no-osl-m323-srv-004-z2.isp.get.no (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) id <0K3J00907BIY5C00@no-osl-m323-srv-004-z2.isp.get.no> for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 15:16:10 +0200 (CEST) Original-Received: from smtp.getmail.no ([10.5.16.1]) by no-osl-m323-srv-004-z2.isp.get.no (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0K3J00I0OBISVNB0@no-osl-m323-srv-004-z2.isp.get.no> for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 15:16:04 +0200 (CEST) Original-Received: from cm-84.215.136.96.getinternet.no ([84.215.136.96]) by no-osl-m323-srv-009-z1.isp.get.no (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0K3J00DNRBIS02A0@no-osl-m323-srv-009-z1.isp.get.no> for bug-gnu-emacs@gnu.org; Sat, 05 Jul 2008 15:16:04 +0200 (CEST) In-reply-to: X-X-Sender: kjetil@ttleush X-detected-kernel: by mx20.gnu.org: Solaris 10 (beta) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Sat, 05 Jul 2008 12:47:23 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18650 Archived-At: On Sat, 5 Jul 2008, Kjetil S. Matheussen wrote: > > > BACKGROUND > ---------- > Emacs makes inferior-scheme and inferior-lisp hang when you evaluate > a large block of code which is directly followed by a hash (#). > > This is a bug I've encountered numerous times for many > years. I'm currently using emacs-cvs from 2008-07-04 > though. > > It does not seem to matter which implementation of > scheme or common lisp is running as inferior-scheme > or inferior-lisp. > > > > HOW TO PROVOCE THE HANG IN SCHEME > --------------------------------- > This should be an exact recipe on how to make inferior-scheme hang: > > 1. Load this file into emacs: > http://www.notam02.no/~kjetism/emacsbug.scm > > 2. Start scheme by using M-x run-scheme > > 3. Place the cursor on to line 2 of emacsbug.scm and > evaluate the block by pressing C-M-x. If the cursor > is placed on line 1, scheme won't hang. > > 4. Scheme does not respond anymore > > > > HOW TO PROVOCE THE HANG IN COMMON LISP > -------------------------------------- > To make inferior-lisp hang, just replace the "define" on > line 1 in emacsbug.scm with a "defun", change > to common-lisp-mode, and do the same thing. > Sorry, correction. Turned out I only found a reproducable scheme in my current emacs session. When I restarted emacs, I couldn't reproduce it with the above method. However, it seems like the bigger the source file, the bigger the chance of hitting the bug. I have tried various things, and this is the only indication I can find of what may cause it. So, I have uploaded a new emacsbug.scm file, which is really big. But, it seems to be about 100% sure to hit the bug if doing the following: 1. Load this file into emacs: http://www.notam02.no/~kjetism/emacsbug.scm 2. Start scheme by using M-x run-scheme 3. Place the cursor on line 1006 of emacsbug.scm and evaluate the block by pressing C-M-x. If the cursor is placed on line 1005, scheme won't hang. 4. Scheme does not respond anymore If scheme doesn't hang, perhaps it works to try again. I'm sorry, I have tried to narrow it down by cutting away various parts of the code, but it doesn't seem to be consistent when the bug appears. As said, it seems like the larger the file, the larger the chance of hitting the bug.