Skip to content

jtd-infer crashes with a stack overflow on large amounts of concatenated input #11

@bjorndm

Description

@bjorndm

I can use jtd-infer with a few concatenated files, but when I concatetenate a 1000+ JSON files, the program crashed with a stack overflow. Similar inferral tools for JSON Schema, like Genson, work fine with these same 1000+ files.

$ ls -Aq testdata/metadata/  | wc -l 
2
$ cat testdata/metadata/*.json | jtd-infer 
# This works OK
$ ls -Aq ../test/testdata/metadata/  | wc -l 
1129
$ cat ../test/testdata/metadata/*.json | jtd-infer 
thread 'main' has overflowed its stack
fatal runtime error: stack overflow
Afgebroken (geheugendump gemaakt)

I would appreciate if this could be fixed somehow. Perhaps allow several input files on the command line in stead of one?

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