Skip to content

Inclusion of lzma library causes Bun to never stop execution #24484

@Sainan

Description

@Sainan

What version of Bun is running?

1.3.1+89fa0f343

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

npm i lzma

require("lzma");
console.log("OK");

What is the expected behavior?

Program prints OK and terminates.

What do you see instead?

Program prints OK and then keeps running until Ctrl+C was pressed.

Additional information

I initially reported this in #24438 but I realise I did not narrow down the cause correctly. The lzma library does seem to register a sort of 'worker' which might be related to this. I checked that this behaviour is specific to Bun as it does not repro under Node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfirmed bugWe can reproduce this issueruntime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions