From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: Re: Stable 2.0 and popen.test on Debian Squeeze Date: Wed, 02 Mar 2011 05:40:09 -0500 Message-ID: <87zkpdrek6.fsf@netris.org> References: <87aahesk8d.fsf@netris.org> <20110302013257.1DDMP.140430.root@cdptpa-web28-z02> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1299062434 30573 80.91.229.12 (2 Mar 2011 10:40:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 10:40:34 +0000 (UTC) Cc: bug-guile@gnu.org, Francis Southern To: Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Mar 02 11:40:28 2011 Return-path: Envelope-to: guile-bugs@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 1PujTo-0000hi-Ad for guile-bugs@m.gmane.org; Wed, 02 Mar 2011 11:40:28 +0100 Original-Received: from localhost ([127.0.0.1]:36021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PujTn-0000p7-VC for guile-bugs@m.gmane.org; Wed, 02 Mar 2011 05:40:27 -0500 Original-Received: from [140.186.70.92] (port=56961 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PujTh-0000lu-F0 for bug-guile@gnu.org; Wed, 02 Mar 2011 05:40:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PujTg-0004Rm-A5 for bug-guile@gnu.org; Wed, 02 Mar 2011 05:40:21 -0500 Original-Received: from world.peace.net ([216.204.32.208]:50052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PujTg-0004RS-6T for bug-guile@gnu.org; Wed, 02 Mar 2011 05:40:20 -0500 Original-Received: from ip68-9-118-38.ri.ri.cox.net ([68.9.118.38] helo=freedomincluded) by world.peace.net with esmtpa (Exim 4.69) (envelope-from ) id 1PujTX-0007Tl-Rt; Wed, 02 Mar 2011 05:40:11 -0500 Original-Received: from mhw by freedomincluded with local (Exim 4.69) (envelope-from ) id 1PujTV-0000fg-8f; Wed, 02 Mar 2011 05:40:09 -0500 In-Reply-To: <20110302013257.1DDMP.140430.root@cdptpa-web28-z02> (dsmich@roadrunner.com's message of "Tue, 1 Mar 2011 20:32:56 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 216.204.32.208 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5251 Archived-At: writes: > dsmith@stumpy:~/src/guile$ ./check-guile popen.test > Testing /home/dsmith/src/guile/meta/guile ... popen.test > with GUILE_LOAD_PATH=/home/dsmith/src/guile/test-suite > Running popen.test > FAIL: popen.test: open-output-pipe: no duplicate The problem here is that "dash -c COMMAND" runs COMMAND as a subprocess of dash, whereas "bash -c COMMAND" which uses exec such that COMMAND replaces the bash process. dash's behavior breaks the "open-output-pipe: no duplicate" test, which checks that the parent will receive a SIGPIPE if the child closes its STDIN without terminating. This depends on the child not keeping a duplicate of that file descriptor around (as was done in Guile 1.6.4), hence the name of the test. Because "dash -c" creates a subprocess instead of exec'ing, the waiting dash process is holding a duplicate of its STDIN open. This prevents the child from closing the end of the pipe, and thus the parent does not receive a SIGPIPE and the test fails. Mark