zsh-workers
 help / color / mirror / code / Atom feed
* heredoc & file descriptor parameter segfault
@ 2017-02-27 19:06 Subscriber Grey
  2017-02-27 20:21 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Subscriber Grey @ 2017-02-27 19:06 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 485 bytes --]

Executing this
> exec {INDOC}<<----
> this is a test
> of the emergency
> broadcast system
> ---

reliably segfaults on
ZSH_VERSION=5.2, OpenBSD 6.0 GENERIC.MP#2319 amd64
ZSH_VERSION=5.3.1, Darwin 16.3.0; root:xnu-3789.31.2~1/RELEASE_X86_64 x86_64
ZSH_VERSION=5.3.1, Linux 4.9.7-x86_64-linode80 #2 SMP x86_64 GNU/Linux

Using any other combination (numeric file descriptor, here-string, etc)
seems to be fine.

This construction does not segfault on versions of bash I have available.

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

* Re: heredoc & file descriptor parameter segfault
  2017-02-27 19:06 heredoc & file descriptor parameter segfault Subscriber Grey
@ 2017-02-27 20:21 ` Bart Schaefer
  0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2017-02-27 20:21 UTC (permalink / raw)
  To: Subscriber Grey, zsh-workers

On Feb 27,  2:06pm, Subscriber Grey wrote:
} 
} Executing this
} > exec {INDOC}<<----
} > this is a test
} > of the emergency
} > broadcast system
} > ---
} 
} reliably segfaults

The parser is quite confused by this, execution of the resulting wordcode
is attempting to find "exec" as an autoload function.  Probably indicates
that the program counter has gone astray.


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

end of thread, other threads:[~2017-02-27 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-27 19:06 heredoc & file descriptor parameter segfault Subscriber Grey
2017-02-27 20:21 ` Bart Schaefer

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).