zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Getting unexpected error from piping "read -d"
Date: Sat, 30 Aug 2014 15:08:13 -0700	[thread overview]
Message-ID: <140830150813.ZM28921@torch.brasslantern.com> (raw)

This is a strange one, it only happens with "read -d" (change delimiter)
and only when piping the output.  It's present as far back as 4.3.11.

torch% read -d '' | head
zsh: bad tcgets: bad file descriptor

GDB trace from the current source is appended.

Incidentally, the oldest tagged version of zsh I can build from git is
4.3.10.  Any version 4.3.9 or older that I tried, generates pre-build
errors such as bad configure.ac files or failure to complete mkmakemod.
I suspect tags were incompletely or incorrectly applied when importing
from CVS.


(gdb) where
#0  gettyinfo (ti=0x816c780) at ../../zsh-5.0/Src/utils.c:1519
#1  0x080822eb in update_job (jn=0x87de894) at ../../zsh-5.0/Src/jobs.c:488
#2  0x080b6299 in wait_for_processes () at ../../zsh-5.0/Src/signals.c:512
#3  0x080b6493 in zhandler (sig=17) at ../../zsh-5.0/Src/signals.c:594
#4  <signal handler called>
#5  0x0086e7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#6  0x008afe8c in sigsuspend () from /lib/tls/libc.so.6
#7  0x080b603e in signal_suspend (sig=17, wait_cmd=0)
    at ../../zsh-5.0/Src/signals.c:375
#8  0x08084b41 in zwaitjob (job=1, wait_cmd=0) at ../../zsh-5.0/Src/jobs.c:1454
#9  0x08084d1a in waitjobs () at ../../zsh-5.0/Src/jobs.c:1499
#10 0x0806372f in execpline (state=0xbffe4f90, slcode=17410, how=18, last1=0)
    at ../../zsh-5.0/Src/exec.c:1554
#11 0x08062c33 in execlist (state=0xbffe4f90, dont_change_job=0, exiting=0)
    at ../../zsh-5.0/Src/exec.c:1261
#12 0x08062686 in execode (p=0xb7d3f6d0, dont_change_job=0, exiting=0, 
    context=0x813c803 "toplevel") at ../../zsh-5.0/Src/exec.c:1070
#13 0x0807d612 in loop (toplevel=1, justonce=0) at ../../zsh-5.0/Src/init.c:185
#14 0x08080927 in zsh_main (argc=2, argv=0xbffe50e4)
    at ../../zsh-5.0/Src/init.c:1625
#15 0x0804c0a6 in main (argc=2, argv=0xbffe50e4) at ../../zsh-5.0/Src/main.c:93


             reply	other threads:[~2014-08-30 22:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-30 22:08 Bart Schaefer [this message]
2014-08-30 22:34 ` Bart Schaefer
2014-08-30 23:17 ` Bart Schaefer
2014-08-31  1:17   ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=140830150813.ZM28921@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).