Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing "mysql2(/promise)" segfaults #3864

Closed
Northernside opened this issue Jul 28, 2023 · 2 comments
Closed

Importing "mysql2(/promise)" segfaults #3864

Northernside opened this issue Jul 28, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Northernside
Copy link

What version of Bun is running?

0.7.1

What platform is your computer?

Linux 5.10.0-23-amd64 x86_64 unknown

What steps can reproduce the bug?

  1. bun run file.js (file.js)
  2. Watch bun segfault

What is the expected behavior?

I expect a) the console.log's to work and b) bun to not segfault

What do you see instead?

When running the earlier stated code, I receive a "Segmentation fault".

04:17:31 core@ebio edb ±|mysql-switch ✗|→ cat issue.mjs 
console.log("Before Import");
import mysql from "mysql2/promise";
console.log("After Import");
04:17:32 core@ebio edb ±|mysql-switch ✗|→ bun issue.mjs 
Segmentation fault

Additional information

No response

@Northernside Northernside added the bug Something isn't working label Jul 28, 2023
@trnxdev
Copy link
Contributor

trnxdev commented Jul 28, 2023

Couldn't replicate on Linux 6.4.6-zen1-1-zen (even if changing extension to .mjs and/or changing package to just mysql2)
image

@Northernside
Copy link
Author

Okay, seems like it has a lot to do (if not the same as) #3312.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants