You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' has overflowed its stack
fatal runtime error: stack overflow
[1] 2496 abort ./target/debug/gus start -m testing/server
So the program crashes.
In [email protected]:
An internal error occurs because salsa detected this cycle, so still an error but no crashing stack overflow.
So in terminal it is:
Previously fragment cycle detection only counted fragments that are
directly recursive, where the top-level selection for the fragment
included a fragment spread of itself. But spreading a fragment anywhere
inside a nested field is also problematic and prohibited by spec,
because even if the field you're spreading into is nullable, the client
can't know how deep that recursion goes, and it could be infinite.
Fixes#716
#733)
* Fix validation stack overflow for fragment cycles inside nested fields
Previously fragment cycle detection only counted fragments that are
directly recursive, where the top-level selection for the fragment
included a fragment spread of itself. But spreading a fragment anywhere
inside a nested field is also problematic and prohibited by spec,
because even if the field you're spreading into is nullable, the client
can't know how deep that recursion goes, and it could be infinite.
Fixes#716
* label every fragment participating in a cycle
* use push() instead of repetitive insert(0,x)
Description
During validation aren't all fragment cycles detected.
This causes a stack overflow in latest beta
[email protected]
Steps to reproduce
Validate the following query for your schema:
Here a code sample.
Expected result
The validation should pass and in the diagnostics should be one like:
Actual result
In
[email protected]
:So the program crashes.
In
[email protected]
:An internal error occurs because salsa detected this cycle, so still an error but no crashing stack overflow.
So in terminal it is:
Here the code sample for this version.
Environment
apollo-rs
crate: apollo-compilerThe text was updated successfully, but these errors were encountered: