Skip to content

Bun.spawn crashes when running bash interactive #17500

Open

Description

@erikschul

What version of Bun is running?

1.2.2+c1708ea6a

What platform is your computer?

Linux 6.8.0-52-generic aarch64 unknown

What steps can reproduce the bug?

Bun.spawn crashes when calling ffprobe two times via an interactive shell. On the second try, it crashes with no output other than

[28]+  Stopped       bun main.ts`

Example:

let procProbe = Bun.spawn(
  [
    "bash",
    "-ci",
    `ffprobe -i output.mp4`,
  ],
  {
    cwd: tempDir.path,
    stdout: "pipe",
    stderr: "pipe",
    env: {
      HOME: Bun.env.HOME, // required for .bashrc to work
    },
  },
)
await procProbe.exited

This does not happen when calling echo test, or when using bash -c.

What is the expected behavior?

No response

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions