From owner-freebsd-bugs@freebsd.org Sat May 14 22:57:09 2016 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0BF3B3B168 for ; Sat, 14 May 2016 22:57:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 967381CBC for ; Sat, 14 May 2016 22:57:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u4EMv9bL054782 for ; Sat, 14 May 2016 22:57:09 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 209509] EAGAIN on shell pipes / O_NONBLOCK error in kernel ? Date: Sat, 14 May 2016 22:57:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: truckman@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2016 22:57:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209509 Don Lewis changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |truckman@FreeBSD.org --- Comment #1 from Don Lewis --- I don't see this with slightly older -CURRENT (r299612) It may also be dependent on the write size with partial writes being the trigger. This is how I did my test: # truss -do /tmp/truss.out cat /usr/share/dict/web2 | & ( sleep 60 ; cat > /tmp/out ) The point at which the pipe file is visible here: 0.008018050 write(1,"\nalif\naliferous\naliform\nalig"...,4096) =3D 4096 (0= x1000) 0.008089335 read(3,"oplasmatic\nalloplasmic\nallopla"...,4096) =3D 4096 (0x= 1000) 0.008183362 write(1,"oplasmatic\nalloplasmic\nallopla"...,4096) =3D 4096 (0= x1000) 0.008255003 read(3,"\naltininck\naltiplano\naltiscop"...,4096) =3D 4096 (0x= 1000) 0.008353817 write(1,"\naltininck\naltiplano\naltiscop"...,4096) =3D 4096 (0= x1000) 0.008425411 read(3,"ambrosiate\nambrosin\nambrosine"...,4096) =3D 4096 (0x1= 000) 60.037870962 write(1,"ambrosiate\nambrosin\nambrosine"...,4096) =3D 4096 (0= x1000) 60.038272972 read(3,"n\nAmnionata\namnionate\namnioni"...,4096) =3D 4096 (0= x1000) 60.038579389 write(1,"n\nAmnionata\namnionate\namnioni"...,4096) =3D 4096 (0x1000) I just tried an odd-size write test and that works properly as well: # truss -do /tmp/truss.out dd if=3D/usr/share/dict/web2 bs=3D111 | & ( slee= p 60 ; cat > /tmp/out ) 0.281516906 read(3,"\namboceptor\nAmbocoelia\nAmboin"...,111) =3D 111 (0x6f) 0.281774261 write(1,"\namboceptor\nAmbocoelia\nAmboin"...,111) =3D 111 (0x6= f) 0.281966423 read(3,"n\nambrein\nambrette\nAmbrica\na"...,111) =3D 111 (0x6f) 0.282239613 write(1,"n\nambrein\nambrette\nAmbrica\na"...,111) =3D 111 (0x6= f) 0.282433782 read(3,"ous\nambrosial\nambrosially\nAmb"...,111) =3D 111 (0x6f) 60.078868711 write(1,"ous\nambrosial\nambrosially\nAmb"...,111) =3D 111 (0x= 6f) 60.079279323 read(3,"y\nambsace\nambulacral\nambulacr"...,111) =3D 111 (0x6= f) 60.079588632 write(1,"y\nambsace\nambulacral\nambulacr"...,111) =3D 111 (0x= 6f) 60.079823710 read(3,"ative\nambulator\nAmbulatoria\na"...,111) =3D 111 (0x6= f) 60.080113161 write(1,"ative\nambulator\nAmbulatoria\na"...,111) =3D 111 (0x= 6f) --=20 You are receiving this mail because: You are the assignee for the bug.=