-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Bug][Compiler] compiling overflows stack #14913
Labels
bug
Something isn't working
Comments
I managed to reproduce this in lldb-rust. Here is the stack trace, which suggests that this is in some code I recently modified:
|
Summarizing the stack above:
|
It looks like there is a type variable which doesn't have a type yet but is constrained by |
brmataptos
added a commit
that referenced
this issue
Oct 10, 2024
22 tasks
wrwg
added a commit
that referenced
this issue
Oct 16, 2024
Type constraints can be self-referring, as in `x is ReceiverFunction(x, ...)`, so we need to avoid to run into endless recursion when displaying them. This adds a "visting" set to the display logic. Closes #14913
16 tasks
brmataptos
added a commit
that referenced
this issue
Oct 17, 2024
brmataptos
added a commit
that referenced
this issue
Oct 17, 2024
…nctions in presence of errors (#14922) - add test showing Issue #14913 and a simple fix, tracking currently printed vars to prevent recursions, replacing them by .. if they appear recursively (e.g., in constraints) - check for `*error*` in type for instantiation type error message, avoid showing an error message which will be redundant
github-project-automation
bot
moved this from 🆕 New
to ✅ Done
in Move Language and Runtime
Oct 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug
Adding:
function to the WIP implementation of OrderedMap, makes the compiler (I think) overflow its stack.
Commenting out borrow/borrow_mut in aptos-move/framework/aptos-stdlib/sources/data_structures/ordered_map.move doesn't trigger stack overflow.
To reproduce
check out igor/ordered_map branch, and run:
cargo run -p aptos --release -- move test --move-2 --filter ordered_map --package-dir aptos-move/framework/aptos-stdlib
And you'll get:
Adding RUST_MIN_STACK=104857600 to the command, doesn't resolve it.
Code snippet to reproduce
Stack trace/error message
Expected Behavior
A clear and concise description of what you expected to happen.
System information
Please complete the following information:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: