Skip to content

[C++][Emscripten] JSON integration tests fail on deeply nested lists #51101

Closed

Description

@rok

Describe the bug, including details regarding any error messages, version, and platform.

The Emscripten build fails in arrow-json-integration-test while running TestJsonRoundTrip/TestJsonRoundTrip.RoundTrip/6:

[ RUN      ] TestJsonRoundTrip/TestJsonRoundTrip.RoundTrip/5
[       OK ] TestJsonRoundTrip/TestJsonRoundTrip.RoundTrip/5 (0 ms)
[ RUN      ] TestJsonRoundTrip/TestJsonRoundTrip.RoundTrip/6
/build/cpp/debug/arrow-json-integration-test.js:138
      throw ex;
      ^

RuntimeError: null function or function signature mismatch
    at arrow-json-integration-test.wasm.std::__2::__shared_count::__release_shared[abi:v160004]() (wasm://wasm/arrow-json-integration-test.wasm-05e44482:wasm-function[19241]:0x10d7e39)
    at arrow-json-integration-test.wasm.std::__2::locale::~locale() (wasm://wasm/arrow-json-integration-test.wasm-05e44482:wasm-function[19282]:0x10da571)
    at arrow-json-integration-test.wasm.std::__2::basic_streambuf<char, std::__2::char_traits<char>>::~basic_streambuf() (wasm://wasm/arrow-json-integration-test.wasm-05e44482:wasm-function[18080]:0x10b1bc9)
    at arrow-json-integration-test.wasm.arrow::Status::AddContextLine(char const*, int, char const*) (wasm://wasm/arrow-json-integration-test.wasm-05e44482:wasm-function[5722]:0x58573c)
    at invoke_viiii (/build/cpp/debug/arrow-json-integration-test.js:5439:29)
    at arrow-json-integration-test.wasm.arrow::Status arrow::internal::integration::json::(anonymous namespace)::ArrayReader::CreateList<arrow::ListType>(std::__2::shared_ptr<arrow::DataType> const&) (wasm://wasm/arrow-json-integration-test.wasm-05e44482:wasm-function[13315]:0xd2a996)
    at invoke_viii (/build/cpp/debug/arrow-json-integration-test.js:5483:29)
    at arrow-json-integration-test.wasm.arrow::internal::integration::json::(anonymous namespace)::ArrayReader::Parse() (wasm://wasm/arrow-json-integration-test.wasm-05e44482:wasm-function[13289]:0xcf8dfa)
    at invoke_vii (/build/cpp/debug/arrow-json-integration-test.js:5472:29)
    at arrow-json-integration-test.wasm.arrow::internal::integration::json::(anonymous namespace)::ArrayReader::GetChildren(simdjson::dom::object const&, arrow::DataType const&) (wasm://wasm/arrow-json-integration-test.wasm-05e44482:wasm-function[13311]:0xd28923)

Node.js v24.19.0

      Start 46: arrow-json-integration-test
    Test #46: arrow-json-integration-test ...........***Failed    0.32 sec
[==========] Running 44 tests from 5 test suites.

This is possibly related with simdjson integration JSON reader changes in #50937

Component(s)

C++

Activity

  1. pitrou commented on Aug 31, 2026

    @pitrou
    Member

    The error is puzzling. I've asked some emscripten experts to see if they have a clue.

  2. added a commit that references this issue on Aug 31, 2026
  3. rok commented on Aug 31, 2026

    @rok
    MemberAuthor

    #51103 appears to solve this.

  4. added a commit that references this issue on Aug 31, 2026
  5. added this to the 26.0.0 milestone on Aug 31, 2026
  6. kou commented on Aug 31, 2026

    @kou
    Member

    Issue resolved by pull request 51103
    #51103

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions