From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 29 09:16:58 2012 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BBFE106566C; Sun, 29 Jul 2012 09:16:58 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail04.syd.optusnet.com.au (mail04.syd.optusnet.com.au [211.29.132.185]) by mx1.freebsd.org (Postfix) with ESMTP id E91948FC0A; Sun, 29 Jul 2012 09:16:57 +0000 (UTC) Received: from c122-106-171-246.carlnfd1.nsw.optusnet.com.au (c122-106-171-246.carlnfd1.nsw.optusnet.com.au [122.106.171.246]) by mail04.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id q6T9Gst9029472 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 29 Jul 2012 19:16:56 +1000 Date: Sun, 29 Jul 2012 19:16:54 +1000 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: davidxu@FreeBSD.org In-Reply-To: <5014A64A.3010106@gmail.com> Message-ID: <20120729191243.D2283@besplex.bde.org> References: <201207272150.q6RLo9ew012879@freefall.freebsd.org> <501482CD.6050708@gmail.com> <50148F42.20105@gmail.com> <5014A64A.3010106@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Garrett Cooper , freebsd-bugs@FreeBSD.org Subject: Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2012 09:16:58 -0000 On Sun, 29 Jul 2012, David Xu wrote: >> I have just written two quick-and-dirty test cases: >> >> http://people.freebsd.org/~davidxu/patch/fifopipe/fifo_selectread.c >> http://people.freebsd.org/~davidxu/patch/fifopipe/fifo_selectwrite.c >> >> without patch for kernel code, a child process will print out "timeout". > I have updated patch, the patch fixed lost-notification bug for select(): > http://people.freebsd.org/~davidxu/patch/fifopipe/kernel_pipe2.diff So it was a bug in the new pipe code. The test seemed to work under FreeBSD-~5.2 but was hard to configure. It gave lots of abort traps. One was for the big buffer. This is too big for -current too, and causes a mysterious abort trap with no core, before exec. truss, gdb and bde were confused. Bruce