Skip to content

Crash on Wsl2 Ubuntu 22.04聽#493

Description

@huyql109
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?

Activity

  1. Liedtke commented on Jan 27, 2025

    @Liedtke
    Collaborator

    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.

  2. huyql109 commented on Jan 29, 2025

    @huyql109
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions