-
Notifications
You must be signed in to change notification settings - Fork 296
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
eval: stack overflow with cue def #3476
Labels
Comments
cueckoo
pushed a commit
that referenced
this issue
Oct 8, 2024
Tests for two chains for fields referring to each other in a circular fashion. Note that one of the tests is currently broken, even though the comments pretend they are not. The diff/todo section mentions it, thouhg. This is part of fix needed for Issue #3476 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: Id24e0ce090faca908663ee598544b697578a8f10 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202215 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Matthew Sackman <matthew@cue.works> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
cueckoo
pushed a commit
that referenced
this issue
Oct 8, 2024
The finalized state of a node was set before processing patterns. This caused cycles in patterns to go unnoticed. Fixing this further exposed some issues with cycle detection in sharing: allowing cyclic nodes to share could make structure sharing go unnoticed. We now do not allow sharing in this case. Another issue was that clearing the Refs in a nonRooted struct could remove a necessary cycle detection. Issue #3476 Issue #2854 Issue #2850 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: Ibfbf716b9aa2b07ac83d0125a8e5188486eda4eb Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202216 Reviewed-by: Matthew Sackman <matthew@cue.works> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
cueckoo
pushed a commit
that referenced
this issue
Oct 14, 2024
We know from the cycle algorithm that inline and non-rooted structs/lists should get the same treatment as regular fields. This is a first step in removing their discrepancies. To avoid some test breakages, we had to move where the unification of shared structures was done. This indeed seems to be a more sensible spot. Issue #3476 Issue #2850 Issue #2854 Fixes #3509 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: Ic26cb31f207d7be0209d01bad5c6df3130251e2f Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202269 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Matthew Sackman <matthew@cue.works> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
vanhtuan0409
pushed a commit
to anduintransaction/cue
that referenced
this issue
Oct 15, 2024
Tests for two chains for fields referring to each other in a circular fashion. Note that one of the tests is currently broken, even though the comments pretend they are not. The diff/todo section mentions it, thouhg. This is part of fix needed for Issue cue-lang#3476 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: Id24e0ce090faca908663ee598544b697578a8f10 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202215 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Matthew Sackman <matthew@cue.works> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
vanhtuan0409
pushed a commit
to anduintransaction/cue
that referenced
this issue
Oct 15, 2024
The finalized state of a node was set before processing patterns. This caused cycles in patterns to go unnoticed. Fixing this further exposed some issues with cycle detection in sharing: allowing cyclic nodes to share could make structure sharing go unnoticed. We now do not allow sharing in this case. Another issue was that clearing the Refs in a nonRooted struct could remove a necessary cycle detection. Issue cue-lang#3476 Issue cue-lang#2854 Issue cue-lang#2850 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: Ibfbf716b9aa2b07ac83d0125a8e5188486eda4eb Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202216 Reviewed-by: Matthew Sackman <matthew@cue.works> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
vanhtuan0409
pushed a commit
to anduintransaction/cue
that referenced
this issue
Oct 15, 2024
We know from the cycle algorithm that inline and non-rooted structs/lists should get the same treatment as regular fields. This is a first step in removing their discrepancies. To avoid some test breakages, we had to move where the unification of shared structures was done. This indeed seems to be a more sensible spot. Issue cue-lang#3476 Issue cue-lang#2850 Issue cue-lang#2854 Fixes cue-lang#3509 Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com> Change-Id: Ic26cb31f207d7be0209d01bad5c6df3130251e2f Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1202269 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Matthew Sackman <matthew@cue.works> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
What version of CUE are you using (
cue version
)?Does this issue reproduce with the latest stable release?
Yes (v0.10)
What did you do?
What did you expect to see?
Passing test.
What did you see instead?
The text was updated successfully, but these errors were encountered: