From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Price Newsgroups: gmane.lisp.guile.bugs Subject: bug#18065: guile hangs if strerror is called with invalid (non-int) argument Date: Fri, 01 Aug 2014 20:47:02 +0100 Message-ID: <8738dgvvpl.fsf@kagami.home> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1406922506 14805 80.91.229.3 (1 Aug 2014 19:48:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Aug 2014 19:48:26 +0000 (UTC) To: 18065@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Aug 01 21:48:20 2014 Return-path: Envelope-to: guile-bugs@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 1XDIoN-0002Ce-Jw for guile-bugs@m.gmane.org; Fri, 01 Aug 2014 21:48:19 +0200 Original-Received: from localhost ([::1]:41782 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDIoN-00060g-29 for guile-bugs@m.gmane.org; Fri, 01 Aug 2014 15:48:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDIoD-0005yj-Ks for bug-guile@gnu.org; Fri, 01 Aug 2014 15:48:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDIo7-0000pQ-Gt for bug-guile@gnu.org; Fri, 01 Aug 2014 15:48:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDIo7-0000pM-Dn for bug-guile@gnu.org; Fri, 01 Aug 2014 15:48:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XDIo6-0002hc-It for bug-guile@gnu.org; Fri, 01 Aug 2014 15:48:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Ian Price Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 01 Aug 2014 19:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18065 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org X-Debbugs-Original-Cc: 18065@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140692246410366 (code B ref -1); Fri, 01 Aug 2014 19:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Aug 2014 19:47:44 +0000 Original-Received: from localhost ([127.0.0.1]:54155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDIno-0002h6-6R for submit@debbugs.gnu.org; Fri, 01 Aug 2014 15:47:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49046) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDInl-0002gq-7s for submit@debbugs.gnu.org; Fri, 01 Aug 2014 15:47:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDInZ-0000lq-Vn for submit@debbugs.gnu.org; Fri, 01 Aug 2014 15:47:36 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDInZ-0000lk-TL for submit@debbugs.gnu.org; Fri, 01 Aug 2014 15:47:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDInU-0005yJ-8h for bug-guile@gnu.org; Fri, 01 Aug 2014 15:47:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDInO-0000gk-MY for bug-guile@gnu.org; Fri, 01 Aug 2014 15:47:24 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:59209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDInO-0000gL-GA for bug-guile@gnu.org; Fri, 01 Aug 2014 15:47:18 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XDInM-0000z1-1l for bug-guile@gnu.org; Fri, 01 Aug 2014 21:47:16 +0200 Original-Received: from host86-184-181-232.range86-184.btcentralplus.com ([86.184.181.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Aug 2014 21:47:16 +0200 Original-Received: from ianprice90 by host86-184-181-232.range86-184.btcentralplus.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Aug 2014 21:47:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 18 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: host86-184-181-232.range86-184.btcentralplus.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:jJ7kqAju1Vv/jiJSGiFPWoXkcfY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7522 Archived-At: Your patch does solve this issue, but I'm not 100% why the problem occurs in the first place, as the lock should have been unlocked when the throw occurred. If I catch the wrong type error explicitly, then there is no problem. scheme@(guile-user)> (catch #t (lambda () (strerror 1.5)) list) $1 = (wrong-type-arg #f "Wrong type (expecting ~A): ~S" ("exact integer" 1.5) (1.5)) My thinking is that the a pre-unwind handler in the repl tries to lock the same mutex, but I haven't looked into this deeply enough. -- Ian Price -- shift-reset.com "Programming is like pinball. The reward for doing it well is the opportunity to do it again" - from "The Wizardy Compiled"