From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Core dump when throwing an exception from a resumed partial continuation Date: Thu, 21 Mar 2013 16:34:40 +0100 Message-ID: <87hak4vka7.fsf@pobox.com> References: <51438C23.6020605@4dst.com> <87wqt1w0io.fsf@pobox.com> <514B10C4.2030800@computer.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1363880095 11487 80.91.229.3 (21 Mar 2013 15:34:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Mar 2013 15:34:55 +0000 (UTC) Cc: guile-devel@gnu.org To: Andrew Gaylard Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 21 16:35:19 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 1UIhWQ-0000i9-D0 for guile-devel@m.gmane.org; Thu, 21 Mar 2013 16:35:18 +0100 Original-Received: from localhost ([::1]:49843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIhW3-0000Ia-2p for guile-devel@m.gmane.org; Thu, 21 Mar 2013 11:34:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIhVv-0000CI-Jv for guile-devel@gnu.org; Thu, 21 Mar 2013 11:34:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIhVu-0001b8-19 for guile-devel@gnu.org; Thu, 21 Mar 2013 11:34:47 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:65077 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIhVt-0001am-Sq for guile-devel@gnu.org; Thu, 21 Mar 2013 11:34:45 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 168AFBD9B; Thu, 21 Mar 2013 11:34:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=FeKpuFll2vcC DCbzW7clgHo9wW8=; b=DcpxKFNx0Wn/iNAkiMi1lyqy7eqJwgc/9wKQynUG7bNZ nQctsLPtssX99MasvNjAyA/Uo+gGae1epbTfWoYWAscuTDY+Uzcgv+zHX9vHcpxm or5xirQXnkEOjlCopl9kw47soreIiXW2VRDUtM7R7GlnYQF6XglglDc1A8sJbzw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=u0HrtQ Zp+wZOLmxZGYvSgkMfqaRPKt63wTpDjLt99rIgHBJDrVgUh4ZIhAivqTTmjPFuTY iWZSF2j22gU+nuOpF2tDCRMKogRMMkJBQOlQnpgYE36BNAT8wZx/VPD+LsKMcRAH BePvLphUQD9qKpvzTY4NKrDGoOjna1ScannBE= Original-Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 0DFAEBD9A; Thu, 21 Mar 2013 11:34:43 -0400 (EDT) Original-Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 7D5ECBD99; Thu, 21 Mar 2013 11:34:42 -0400 (EDT) In-Reply-To: <514B10C4.2030800@computer.org> (Andrew Gaylard's message of "Thu, 21 Mar 2013 15:53:08 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) X-Pobox-Relay-ID: D9ED3D84-923C-11E2-A1F3-B7660E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 208.72.237.25 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:15954 Archived-At: On Thu 21 Mar 2013 14:53, Andrew Gaylard writes: > (catch #t > (=CE=BB () > (throw 'oops)) ; should not crash the vm > (=CE=BB () > (display "Success!")(newline))) ; never reached > > the VM still cores; "Success" is never shown. However, you've probably > spotted my mistake: the handler should be (=CE=BB (key . args) ... ). The core dump is another bug. but fixing the handler is the key thing: > (catch #t > (=CE=BB () > (throw 'oops)) ; should not crash the vm > (=CE=BB (key . args) > (display "Success!")(newline))) ; works! > > ...solves the problem, and the VM doesn't core any more. Yep Happy hacking :) A --=20 http://wingolog.org/