My basic-cli program is silently failing with an exit code of 11.
It runs until a certain point and then just stops, no crash or errors reported.
How can I find out more?
Been trying to find the issue with dbg but haven't found the cause yet.
It might be an infinite recursion bug, but I have no clue.
Any tips?
Hi @Musilitar,
Usually a minimal reproducible example goes a long way - if you provide one, the likelihood of the issue getting resolved or closer to that will be exponentially higher.
Without looking at the source-code, I'd suggest adding even more debug statements, in comparison to what you currently have in place (I'd put one after every single line, if that's feasible - that's the most I could suggest without access to a minimum reproducible example), but I suppose you've already added the maximum possible.
Conventionally, exit code 11 is used to represent a segmentation fault. The last debug line in your output might give some direction regarding narrowing down where the issue might be.
Hi @Hristo ,
Yeah that makes sense, I didn't want to overcomplicate the question too soon.
I thought maybe there was a compiler flag to get more output or something.
Guess I'll try dbg'ing some more and if that doesn't work I'll come back with a code sample.
Thanks for your help!
Last updated: Jul 06 2025 at 12:14 UTC