zsh-workers
 help / color / mirror / code / Atom feed
* Fwd: Crashing the Linux System
       [not found] <CADc_fS3oAhtidGr5bSZ1_26DXPYWkkMy_4O94FKUtMMxRHKYHw@mail.gmail.com>
@ 2023-06-17  3:38 ` LitHack
  2023-06-17  3:42   ` Ellenor Bjornsdottir
  2023-06-17  4:43   ` Bart Schaefer
  0 siblings, 2 replies; 3+ messages in thread
From: LitHack @ 2023-06-17  3:38 UTC (permalink / raw)
  To: zsh-workers

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

---------- Forwarded message ---------
From: LitHack <lithack0@gmail.com>
Date: Sat, 17 Jun 2023 at 08:52
Subject: Crashing the Linux System
To: <linux-kernel@vger.kernel.org>


Running the yes command in command substitution will crash the linux shell.
According to me inside command the substitution it is creating multiple
process(fork).  Command: `yes` or $(yes)

Here is the bug report:
Bug report <https://bugzilla.kernel.org/show_bug.cgi?id=217565>

[-- Attachment #2: Type: text/html, Size: 849 bytes --]

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

* Re: Fwd: Crashing the Linux System
  2023-06-17  3:38 ` Fwd: Crashing the Linux System LitHack
@ 2023-06-17  3:42   ` Ellenor Bjornsdottir
  2023-06-17  4:43   ` Bart Schaefer
  1 sibling, 0 replies; 3+ messages in thread
From: Ellenor Bjornsdottir @ 2023-06-17  3:42 UTC (permalink / raw)
  To: zsh-workers

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

Which shell? Zsh? Bash? There is no one Linux shell.

Le 17 juin 2023 03 h 38 min 28 s UTC, LitHack <lithack0@gmail.com> a écrit :
>---------- Forwarded message ---------
>From: LitHack <lithack0@gmail.com>
>Date: Sat, 17 Jun 2023 at 08:52
>Subject: Crashing the Linux System
>To: <linux-kernel@vger.kernel.org>
>
>
>Running the yes command in command substitution will crash the linux shell.
>According to me inside command the substitution it is creating multiple
>process(fork).  Command: `yes` or $(yes)
>
>Here is the bug report:
>Bug report <https://bugzilla.kernel.org/show_bug.cgi?id=217565>

-- 
Ellenor Bjornsdottir (she)
sysadmin umbrellix.net

[-- Attachment #2: Type: text/html, Size: 1372 bytes --]

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

* Re: Crashing the Linux System
  2023-06-17  3:38 ` Fwd: Crashing the Linux System LitHack
  2023-06-17  3:42   ` Ellenor Bjornsdottir
@ 2023-06-17  4:43   ` Bart Schaefer
  1 sibling, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2023-06-17  4:43 UTC (permalink / raw)
  To: LitHack; +Cc: zsh-workers

On Fri, Jun 16, 2023 at 8:38 PM LitHack <lithack0@gmail.com> wrote:
>
> Running the yes command in command substitution will crash the linux shell. According to me inside command the substitution it is creating multiple process(fork).  Command: `yes` or $(yes)

The "yes" command is defined to produce an unending stream of output.
The $(...) substitution is defined to capture all the output from a
command and substitute it as a string.  "All the output" of "yes" is
impossible to capture in finite memory.  The error I get from zsh is
the expected one:
zsh: fatal error: out of heap memory
There definitely are not multiple forks happening.

This is not a bug except in the sense that it was user error to use
$(yes) in the first place.  It's no different than deliberately
writing an infinite loop such as $(while true; do echo y; done).


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

end of thread, other threads:[~2023-06-17  4:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CADc_fS3oAhtidGr5bSZ1_26DXPYWkkMy_4O94FKUtMMxRHKYHw@mail.gmail.com>
2023-06-17  3:38 ` Fwd: Crashing the Linux System LitHack
2023-06-17  3:42   ` Ellenor Bjornsdottir
2023-06-17  4:43   ` 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).