Subject: kern/14196: NEW_PIPE failure with SHM
To: None <gnats-bugs@gnats.netbsd.org>
From: Chris Baird <cjb@brushtail.apana.org.au>
List: netbsd-bugs
Date: 10/10/2001 01:39:14
>Number:         14196
>Category:       kern
>Synopsis:       NEW_PIPE failure with SHM
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 09 09:09:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Chris Baird
>Release:        NetBSD-current rsync 20011008
>Organization:
	Member of the Australian Public Access Network Association
>Environment:
System: NetBSD brushtail.apana.org.au 1.5Y NetBSD 1.5Y (BRUSHTAIL) #21: Wed Oct 10 00:58:36 EST 2001 root@brushtail.apana.org.au:/usr/src/sys/arch/i386/compile/BRUSHTAIL i386
Architecture: i386
Machine: i386
>Description:
NEW_PIPE is the suspected culprit for pipe failure involving shared memory.
>How-To-Repeat:
[/sys/kern/sys_pipe.c version 1.15]

On a suitably large filesystem (and possibly a system that can spare
100MB+ for UBC):

    # tar cf - /usr |buffer -S 1024 |tar tvf - >/dev/null
    tar: Removing leading / from absolute path names in the archive.
     41530K

Execution ends abruptly at random (other trails bombed out at 44690k,
74150k, and 42070k). It runs to completion on kernels without
"NEW_PIPE", and without "|buffer" on either kernel.

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: