Skip to content

Stack overflow when recursively assigning something with iterable values #235

@wader

Description

@wader
$ jq -cn '1 | .. = [.]'
[1]

$ cargo run -- -cn '1 | .. = [.]'
thread 'main' has overflowed its stack
fatal runtime error: stack overflow

$ cargo run -- -n '1 | .. = [2]'
thread 'main' has overflowed its stack
fatal runtime error: stack overflow

$ cargo run -- -n '1 | .. = []'
[]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions