Skip to content

Windows/iOS Crash During Deep JSON Encoding/Decoding #1304

Open
@jevonmao

Description

@jevonmao

A Windows-specific crash was revealed by the test case added in PR #1242, which fixes a recursion depth mismatch between JSONDecoder and JSONEncoder.

On macOS and Linux, all tests including the deeply nested JSON case pass. However, on Windows, the process crashes during JSONEncoderTests.test_JSONPassTests, exiting without any test result line, which suggests a potential stack overflow caused by deep recursion.

Reproduction

  1. On Windows, run JSONEncoderTests.test_JSONPassTests from the test suite introduced in Fix #1176 JSON Decoder and Encoder limit disagreement #1242.

Relevant links

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