[Bug 585853] New: socketpair() does not generate socket pair usable as replacement as pipe
http://bugzilla.novell.com/show_bug.cgi?id=585853 http://bugzilla.novell.com/show_bug.cgi?id=585853#c0 Summary: socketpair() does not generate socket pair usable as replacement as pipe Classification: openSUSE Product: openSUSE 11.3 Version: Factory Platform: All OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Development AssignedTo: pbaudis@novell.com ReportedBy: werner@novell.com QAContact: qa@suse.de CC: coolo@novell.com, ro@novell.com Found By: Development Blocker: --- Initial remark: the ksh uses socket pairs as replacement for pipes, also the program man. Now I found that such socket pairs do not generate a SIGPIPE where it should, e.g. from test suite of the ksh: test basic.sh begins at 2010-03-05+16:44:23 basic.sh[436]: early termination not causing broken pipe basic.sh[477]: pipefail causing /bin/true to wait for other end of pipe test basic.sh failed at 2010-03-05+16:44:51 with exit code 2 [ 95 tests 2 errors ] test signal.sh begins at 2010-03-05+16:45:50 signal.sh[55]: pipe with --pipefail PIPE trap hangs signal.sh[296]: kill -PIPE $$ failed, required termination by signal 'KILL' test signal.sh failed at 2010-03-05+16:47:06 with exit code 2 [ 26 tests 2 errors ] .. this works in SLES9, SLES10-SP3, SLES11-SP1, and SLES11, in openSUSE 11.1 and also in openSUSE 11.2. I've tried out the old gcc-4.3 compiler but this does not help therefore I guess that the glibc does generate a socket pair which does *not* rise a SIGPIPE nor a EPIPE if someone writes on a broken socket pair. As this happens within a chroot build environment it seems not to be a kernel runtime problem. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=585853 http://bugzilla.novell.com/show_bug.cgi?id=585853#c1 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pbaudis@novell.com AssignedTo|pbaudis@novell.com |kernel-maintainers@forge.pr | |ovo.novell.com --- Comment #1 from Petr Baudis <pbaudis@novell.com> 2010-03-05 23:44:01 UTC --- -> kernel people -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=585853 http://bugzilla.novell.com/show_bug.cgi?id=585853#c2 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |pbaudis@novell.com --- Comment #2 from Dr. Werner Fink <werner@novell.com> 2010-03-08 08:40:49 UTC --- @Petr: Do you be aware that this problem happens on the same system, aka with the same kernel but only in the chroot build environment of current factory. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=585853 http://bugzilla.novell.com/show_bug.cgi?id=585853#c3 Petr Baudis <pbaudis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Info Provider|pbaudis@novell.com |werner@novell.com --- Comment #3 from Petr Baudis <pbaudis@novell.com> 2010-03-08 10:06:56 UTC --- Oh,overlooked that. Okay, that is weird... also given that glibc in SLE11SP1 and factory is practically identical. Can you please attach some testcase and post strace on SLE11SP1 (or older would do too) and 11.3? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=585853 http://bugzilla.novell.com/show_bug.cgi?id=585853#c4 --- Comment #4 from Ruediger Oertel <ro@novell.com> 2010-03-08 12:02:25 UTC --- same issue is in SP1 should be something from the build script, not glibc or kernel related. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=585853 http://bugzilla.novell.com/show_bug.cgi?id=585853#c5 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |werner@novell.com --- Comment #5 from Dr. Werner Fink <werner@novell.com> 2010-03-08 12:11:15 UTC --- If I try to reproduce it on the command line I can not do this ... this leads me to two assumptions: a) we see a race condition only visible during high load of the build ... or b) somwthing caused by the build system (environment e.g.?) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=585853 http://bugzilla.novell.com/show_bug.cgi?id=585853#c6 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|werner@novell.com | Resolution| |INVALID --- Comment #6 from Dr. Werner Fink <werner@novell.com> 2010-03-09 17:03:24 UTC --- It's a bug in the build system as it seems that this had add SIGPIPE to the of the ignored signals and this is passed down to all processes -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com