zsh-workers
 help / color / mirror / code / Atom feed
* SIGPIPE echoing to fifo exits zsh
@ 2013-01-15 15:43 Christian Neukirchen
  2013-01-15 23:16 ` Han Pingtian
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Neukirchen @ 2013-01-15 15:43 UTC (permalink / raw)
  To: zsh-workers

Hi,

I noticed this thing:

shell1% mkfifo /tmp/fifo
shell1% while :; do head -1 /tmp/fifo; done

shell2% gdb zsh
(gdb) r -f
juno% repeat 1000 echo a >/tmp/fifo

Program received signal SIGPIPE, Broken pipe.
0x00007ffff71a7100 in __write_nocancel () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007ffff71a7100 in __write_nocancel () from /usr/lib/libc.so.6
#1  0x00007ffff71410d3 in _IO_new_file_write () from /usr/lib/libc.so.6
#2  0x00007ffff7140fb2 in new_do_write () from /usr/lib/libc.so.6
#3  0x00007ffff71422c5 in __GI__IO_do_write () from /usr/lib/libc.so.6
#4  0x00007ffff7141680 in __GI__IO_file_sync () from /usr/lib/libc.so.6
#5  0x00007ffff713654b in fflush () from /usr/lib/libc.so.6
#6  0x000000000041a2dd in bin_print ()
#7  0x000000000041d117 in execbuiltin ()
#8  0x000000000042b2d1 in ?? ()
#9  0x000000000042b866 in ?? ()
#10 0x000000000042bdaf in ?? ()
#11 0x000000000042cf5f in execlist ()
#12 0x000000000044c354 in execfor ()
#13 0x000000000042a73b in ?? ()
#14 0x000000000042b866 in ?? ()
#15 0x000000000042bdaf in ?? ()
#16 0x000000000042cf5f in execlist ()
#17 0x000000000042d47d in execode ()
#18 0x000000000043d972 in loop ()
#19 0x0000000000440b1e in zsh_main ()
#20 0x00007ffff70eca15 in __libc_start_main () from /usr/lib/libc.so.6
#21 0x000000000040f3d1 in _start ()

Using /bin/echo (coreutils 8.20), the code works flawlessy (all lines
get through the FIFO).

Thanks,
-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-16  9:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-15 15:43 SIGPIPE echoing to fifo exits zsh Christian Neukirchen
2013-01-15 23:16 ` Han Pingtian
2013-01-16  2:53   ` Bart Schaefer
2013-01-16  9:30     ` Han Pingtian
2013-01-16  9:44     ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).