Stack overflow: stack trace and nix debugger support#8879
Stack overflow: stack trace and nix debugger support#8879roberth wants to merge 1 commit intoNixOS:masterfrom
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/**.shsrc/*/teststests/nixos/*Priorities
Add 👍 to pull requests you find important.