From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Taylor Venable Newsgroups: gmane.lisp.guile.user Subject: Re: Jumping back to REPL prompt on ^C Date: Tue, 27 Jul 2010 17:16:28 -0400 Message-ID: References: <87vd8vq8ak.fsf@ossau.uklinux.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1280265400 19333 80.91.229.12 (27 Jul 2010 21:16:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Jul 2010 21:16:40 +0000 (UTC) Cc: guile-user@gnu.org To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jul 27 23:16:39 2010 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.69) (envelope-from ) id 1OdrVu-0000Aj-Ax for guile-user@m.gmane.org; Tue, 27 Jul 2010 23:16:38 +0200 Original-Received: from localhost ([127.0.0.1]:58820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdrVt-0005v4-Gw for guile-user@m.gmane.org; Tue, 27 Jul 2010 17:16:37 -0400 Original-Received: from [140.186.70.92] (port=60680 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdrVo-0005tm-5k for guile-user@gnu.org; Tue, 27 Jul 2010 17:16:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdrVn-00051k-1Z for guile-user@gnu.org; Tue, 27 Jul 2010 17:16:32 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:45767) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdrVm-00051c-Um for guile-user@gnu.org; Tue, 27 Jul 2010 17:16:31 -0400 Original-Received: by iwn2 with SMTP id 2so5117279iwn.0 for ; Tue, 27 Jul 2010 14:16:29 -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:content-transfer-encoding; bh=tzGZn4qX5Jo0JKARjMi7eqV9CQLvAIbR2Fk0BoovMDo=; b=AvSupMdUcYtHDBy8vOz1GME7vCvofWq7oLzpOQGiOwH3wSC/WUFu/RlYQ7YNTpC2+5 hM/5oGoxNAh8R/MsuCnUwihht3/hUk4vB5bHiplR6/BD9P6Yprrv6sLFf5JcIUizmg4q cAHVAn0ONQxhbFKW+F0yCTmyVL6iGROpfuv5I= 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 :content-transfer-encoding; b=ITrBKqExVHfK7Mp9Rx0PdAKttIJT28y8T3JIXRYXm1FLjwU69CXbXVqftBnp8QNOVV RFJSjnVbBME2byc4l850mQQPheBk9Ez9cKK3ogqNta+IH+7mHH9HBVHLyn8b1fty2nop gJ4WoVNzKl4jaXJeJFBdzIK+MLEWmBxZMeeQA= Original-Received: by 10.231.13.77 with SMTP id b13mr2257616iba.28.1280265388681; Tue, 27 Jul 2010 14:16:28 -0700 (PDT) Original-Received: by 10.231.168.8 with HTTP; Tue, 27 Jul 2010 14:16:28 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: T68LS0oAGRMY4QKgLIwGIVgu4YU X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:8007 Archived-At: Hi Andy. Very sorry for the late reply, it's been a few weeks since I caught up with the list. On Fri, Jul 9, 2010 at 11:57 AM, Andy Wingo wrote: > On Thu 08 Jul 2010 21:31, Andy Wingo writes: > >>>> Except *sometimes* when I hit ^C I ended up with an error that stops >>>> the guile program completely, seemingly due to the readline library >>>> that I've enabled in the REPL. =C2=A0When I simplify my test I'm able = to >>>> get the same fatal error all the time. >>> [..] >>>> In unknown file: >>>> =C2=A0 =C2=A0?: 0 [catch-closure misc-error "%readline" "readline is n= ot reentrant" () #f] >> >> You know, I've seen this on a couple occaisions. If you can find out how >> to reproduce this I would be very interested. > > I believe I have quashed all of these. Let me know if you can still > reproduce this with git. I just rebuilt with the latest git and it seems to be working. I've been using this as a test: (call/cc (lambda (k) (sigaction SIGINT (lambda (_) (k))) (let loop () (loop= )))) And then interrupting with ^C. I also tried using SIGQUIT and ^\ with the same successful effect, so it looks like it works. Many thanks! --=20 Taylor C. Venable http://metasyntax.net/