Skip to content

plugins: passing serde_json::Value to plugin op causes segfault #10534

Closed
@cvng

Description

@cvng

As discussed with @AaronO, passing a serde_json::Value to an op in some situations (eg. in plugin api) seems to crash the program.

➜ ../target/debug/deno --version
deno 1.9.2 (debug, x86_64-apple-darwin)
v8 9.1.269.5
typescript 4.2.2

steps to reproduce are here https://github.com/denoland/deno/pull/10536/files:

➜ cd test_plugin
➜ cargo build && ../target/debug/deno run --allow-plugin --unstable tests/test.js debug
    Finished dev [unoptimized + debuginfo] target(s) in 0.32s
Plugin rid: 3
[1]    4574 segmentation fault  ../target/debug/deno run --allow-plugin --unstable tests/test.js debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctly

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions