oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.5k stars 2.79k forks source link

using freetype2 segfaults #5672

Open psy0rz opened 1 year ago

psy0rz commented 1 year ago

What version of Bun is running?

1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49

What platform is your computer?

Description: Ubuntu 22.04.3 LTS

What steps can reproduce the bug?

Create this test.js:

import freetype from "freetype2";

freetype.NewFace("/usr/share/fonts/truetype/freefont/FreeSans.ttf");

Run bun test.js

What is the expected behavior?

Should exit silent and do nothing.

What do you see instead?

psy@ws2:~/bunbug$ bun test.js 
Segmentation fault (core dumped)

Additional information

will add strace output

psy0rz commented 1 year ago

strace: strace.txt

psy0rz commented 1 year ago

p.s. bun is awesome, and the rest of my rather unconventional project seems to work flawlessly. ( https://github.com/psy0rz/ledder)

psy0rz commented 1 year ago

the bug is still present in 1.0.4