bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pipe makes subshell crash with stack overflow


From: Chet Ramey
Subject: Re: Pipe makes subshell crash with stack overflow
Date: Thu, 19 Mar 2026 14:18:39 -0400
User-agent: Mozilla Thunderbird

On 3/19/26 11:15 AM, Manuel Wagesreither wrote:
Hello all,

I'm observing a strange error: When a subshell spawned with command 
substitution uses a pipe, it crashes with a Stack Overflow.

Hence, the following doesn't work: `var=$( echo hello world | cat - )`

(More detailed reproducer attached.)

I'm using GNU bash, version 4.4.19(3)-release (x86_64-pc-msys) on Windows 11. 
This bash is packaged by a company that provides it as part of their SDK. I'm 
already in contact with their support but am doing my own research in parallel. 
They currently seem unable to reproduce.

Does this problem look familiar to someone?

I hope it's a known problem that's fixed in a later version, so I could suggest 
a fix by upgrading the bash.

It's not a known or reproducible problem. I suspect it has something to do
with how msys simulates pipes on Windows.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]