fuzzilli icon indicating copy to clipboard operation
fuzzilli copied to clipboard

Crash on Wsl2 Ubuntu 22.04

Open huyql109 opened this issue 1 year ago • 2 comments

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?

huyql109 avatar Jan 20 '25 03:01 huyql109

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.

Liedtke avatar Jan 27 '25 21:01 Liedtke

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.

huyql109 avatar Jan 29 '25 03:01 huyql109