-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Stack overflow: stack trace and nix debugger support #8879
base: master
Are you sure you want to change the base?
Conversation
Solves 1/3 of the infinite recursion at unknown location meme. See NixOS#8879 for ensuring we always have a trace (for stack overflows) We might want to re-add this for finding missing location info *while hacking on that problem only*.
I just want to say "thank you"! I managed to get a stack overflow using this patch. I had to set |
I'm still not being able to diagnose my endless recursion. I set |
I also tested with a publicly reproducible case: #6361 (comment) Still unhelpful: nix-log.txt |
I'm able to confirm that it indeed doesn't seem to work for this case. Maybe something about import from derivation..? Who knows. |
That probably happens because source filtering happens on a coroutine stack instead of the main thread stack. |
Motivation
Try it with for example:
Provide means to solve stack overflows in Nix code.
TODO:
frameOnly
. If I don't comment it out, the trace just stops! Understand frame traces #8906Context
Checklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*
Priorities
Add 👍 to pull requests you find important.