Skip to content

Abort in free in test_embind_strict_js_no_utf8 #23360

@sbc100

Description

@sbc100

When running with the debug version of dlmalloc (EMCC_CFLAGS=-sASSERTIONS=2) the test will crash:

$ EMCC_CFLAGS=-sASSERTIONS=2 ./test/runner other.test_embind_strict_js_no_utf8
...

    Actual: RuntimeError: Aborted(native code called abort())
        at abort (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/embind_test.js:701:11)
        at __abort_js (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/embind_test.js:1104:7)
        at embind_test.wasm.abort (wasm://wasm/embind_test.wasm-00b5ef66:wasm-function[9437]:0x10c97d)
        at embind_test.wasm.emscripten_builtin_free (wasm://wasm/embind_test.wasm-00b5ef66:wasm-function[9495]:0x1113e9)
        at /usr/local/google/home/sbc/dev/wasm/emscripten/out/test/embind_test.js:735:12
        at Object.toWireType (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/embind_test.js:3347:19)
        at Object.emval_test_take_and_return_std_string (eval at newFunc (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/embind_test.js:2413:27), <anonymous>:6:39)
        at /usr/local/google/home/sbc/dev/wasm/emscripten/out/test/embind_test.js:6847:24
        at assert.throws (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/embind_test.js:6209:13)
        at Object.<anonymous> (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/embind_test.js:6846:24)
        at runTest (/usr/local/google/home/sbc/dev/wasm/emscripten/out/test/embind_test.js:5897:23)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions