Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overflow stack on recursive assignment #139

Open
itchyny opened this issue Nov 30, 2023 · 0 comments
Open

Overflow stack on recursive assignment #139

itchyny opened this issue Nov 30, 2023 · 0 comments

Comments

@itchyny
Copy link
Contributor

itchyny commented Nov 30, 2023

I'm not sure how jaq's correctness answers to this query, but it shouldn't panic.

 $ jq -nc '[[]] | .. = ..'
[[[]]]
[[]]
 $ jaq -nc '[[]] | .. = ..'
thread 'main' has overflowed its stack
fatal runtime error: stack overflow
zsh: abort      jaq -nc '[[]] | .. = ..'

I also found a small discrepancy.

 $ jq -nc '[[]] | .. = .[]'
[[]]
 $ jaq -nc '[[]] | .. = .[]'
[]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant