Skip to content

Requiring the deasync package gives an "undefined symbol" error, works normally in Node.js 22.13.1 #17522

Open
@9Morello

Description

What version of Bun is running?

1.2.2+c1708ea6a

What platform is your computer?

Linux 6.14.0-rc2-2.gcd8638c-default x86_64 x86_64

What steps can reproduce the bug?

Run the following example code from the deasync package:

var deasync = require('deasync');
var cp = require('child_process');
var exec = deasync(cp.exec);
// output result of ls -la
try{
    console.log(exec('ls -la'));
}
catch(err){
    console.log(err);
}
// done is printed last, as supposed, with cp.exec wrapped in deasync; first without.
console.log('done');

What is the expected behavior?

The command ls -la is expected to run.

What do you see instead?

bun: symbol lookup error: /home/testuser/bun-deasync-example/node_modules/deasync/bin/linux-x64-node-22/deasync.node: undefined symbol: _ZN4node19GetCurrentEventLoopEPN2v87IsolateE

Additional information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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