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

Crash on Wsl2 Ubuntu 22.04 #493

Open
huyql109 opened this issue Jan 20, 2025 · 2 comments
Open

Crash on Wsl2 Ubuntu 22.04 #493

huyql109 opened this issue Jan 20, 2025 · 2 comments

Comments

@huyql109
Copy link

Building for production...
[1/1] Write swift-version--1BFCD5C06E9F820A.txt
Build of product 'FuzzilliCli' complete! (0.22s)

💣 Program crashed: Illegal instruction at 0x00007f7bf4bbdfcc

Thread 0 "FuzzilliCli" crashed:



Backtrace took 0.01s

[1]    31149 illegal hardware instruction (core dumped)  swift run -c release FuzzilliCli --profile=v8 --overwrite

Got illegal instruction crash when running fuzzilli on Wsl2 Ubuntu 22.04. Does fuzzilli support Wsl2?

@Liedtke
Copy link
Contributor

Liedtke commented Jan 27, 2025

I've just tried it on my Windows 10 machine using WSL2 with Ubuntu 22.04 with

$ swift run -c release FuzzilliCli --profile=v8 /path/to/d8 --storagePath=/tmp/fuzzilli --jobs=16 --overwrite

and it's been running for multiple minutes without any issues.

@huyql109
Copy link
Author

I tried new swift version and it works fine now! Now the d8 binary fails with some initial test cases

[JavaScriptEnvironment] Have 8 custom property names: ["d", "c", "e", "g", "h", "f", "b", "a"]
[JavaScriptEnvironment] Have 6 custom method names: ["o", "toString", "n", "p", "m", "valueOf"]
[Fuzzer] Changing state from uninitialized to corpusGeneration
[Fuzzer] Initialized
[Fuzzer] Testcase "fuzzilli('FUZZILLI_CRASH', 0)" did not crash
[Fuzzer] Shutting down due to fatal error

I tried the command swift run REPRLRun to debug, here is the output:

Building for debugging...
[10/10] Linking REPRLRun
Build of product 'REPRLRun' complete! (2.85s)
Running REPRL tests...
All tests passed!
Enter code to run, then hit enter to execute it
> fuzzilli('FUZZILLI_CRASH', 0)
Execution finished with status 65536 (signaled: false, timed out: true) and took 1001ms
========== Fuzzout ==========

========== Stdout ==========

========== Stderr ==========

Looks like the status is different from the Linux version, it should returns 5 here. However spidermonkey works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants