Skip to content

Crash when creating runtimes on multiple threads; Debugging showed that internally the two runtimes used the same memory map for their v8 engines #952

Open
@rscarson

Description

@rscarson

Related to rscarson/rustyscript#228

Multiple users are reporting a segfault when instantiating JsRuntime instances on multiple threads

From one user's report:

Debugging showed that internally the two runtimes used the same memory map for their v8 engines, causing segfault. Fixed it via creating snapshots of the runtimes, which made them reference their own memory map not a global one.

Issue was reported on some Linux hosts, I cannot reproduce it on my end

Activity

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