From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Detlev Zundel Newsgroups: gmane.lisp.guile.bugs Subject: Re: Problem with netcat Date: Wed, 13 Apr 2011 11:08:54 +0200 Organization: Church of Emacs - Missionary division Message-ID: References: <87ei588zc9.fsf@netris.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1302685767 11314 80.91.229.12 (13 Apr 2011 09:09:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Apr 2011 09:09:27 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Apr 13 11:09:24 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9w4h-0006zJ-LB for guile-bugs@m.gmane.org; Wed, 13 Apr 2011 11:09:23 +0200 Original-Received: from localhost ([::1]:42961 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9w4g-0007NC-Sv for guile-bugs@m.gmane.org; Wed, 13 Apr 2011 05:09:22 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:37393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9w4Z-0007MX-AV for bug-guile@gnu.org; Wed, 13 Apr 2011 05:09:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9w4T-00062q-HM for bug-guile@gnu.org; Wed, 13 Apr 2011 05:09:15 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:40497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9w4T-00062F-2o for bug-guile@gnu.org; Wed, 13 Apr 2011 05:09:09 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Q9w4R-0006r6-F5 for bug-guile@gnu.org; Wed, 13 Apr 2011 11:09:07 +0200 Original-Received: from p4fd637fc.dip.t-dialin.net ([79.214.55.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Apr 2011 11:09:07 +0200 Original-Received: from dzu by p4fd637fc.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 13 Apr 2011 11:09:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 75 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: p4fd637fc.dip.t-dialin.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:4hruy0xhIRkG348d8qbEepTbR0E= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list 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:5463 Archived-At: Hi Mark, > Andy Wingo wrote: >> I pushed a (sigaction SIGPIPE SIG_IGN) to (system repl repl), which >> should fix the issue. > > Isn't this a bad idea? SIGPIPE generally indicates that something went > wrong. If we ignore it, important problems may go unnoticed. To me, > this seems kind of like ignoring SIGSEGV to get around a memory access > to an unmapped area that would be inconvenient to prevent. We do not ignore the problem, we simply allow guile to recat to the problem ;) Where previously guile simply died, I now see this in the father guile-process when the problematic situation arises: ,----[ Guile Output ] | scheme@(guile-user)> Backtrace: | In ice-9/boot-9.scm: | 170: 17 [catch #t # ...] | In unknown file: | ?: 16 [catch-closure] | In ice-9/boot-9.scm: | 170: 15 [catch #t # ...] | In system/repl/server.scm: | 122: 14 [serve-client # #(2 2130706433 49515)] | In unknown file: | ?: 13 [with-continuation-barrier #] | In ice-9/boot-9.scm: | 170: 12 [catch #t # ...] | In unknown file: | ?: 11 [catch-closure] | In module/ice-9/r4rs.scm: | 170: 10 [with-input-from-port #> ...] | 174: 9 [with-output-to-port #> ...] | 178: 8 [with-error-to-port #> ...] | In system/repl/server.scm: | 131: 7 [#] | In module/system/repl/repl.scm: | 160: 6 [run-repl #] | 123: 5 [# read-error ...] | In module/ice-9/format.scm: | 1574: 4 [format # "While reading expression: | "] | 747: 3 [format:format-work "While reading expression: | " ()] | 234: 2 [anychar-dispatch] | 80: 1 [format:out-char #\h] | In unknown file: | ?: 0 [write-char #\h #] | | ERROR: In procedure write-char: | ERROR: In procedure fport_write: Broken pipe | Backtrace: | In ice-9/boot-9.scm: | 170: 3 [catch #t # ...] | In unknown file: | ?: 2 [catch-closure] | In ice-9/boot-9.scm: | 170: 1 [catch #t # ...] | In system/repl/server.scm: | 122: 0 [serve-client # #(2 2130706433 49515)] | | system/repl/server.scm:121:2: In procedure serve-client: | system/repl/server.scm:121:2: In procedure fport_write: Broken pipe `---- Cheers Detlev -- Don't trust everything you read, and don't assume every poster in a thread is actually relevant to the problem. -- Stefan Monnier