Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I actually have to do this for programs that runs in bare metal. You can't afford to have nondeterministic panic like this. If things really gone wrong you'd have a watchdog and health checker to verify the state of program.


How do you manage to do this?


There's a crate that prevents linking panic symbol in the final stage of the executable generation, forcing it to be undefined symbol, so while it is hard to find out where the panic is, it effectively requires me to inspect throughout the code to find out. Sometimes I have to disassemble the object file to see this


it's not the `no_panic` crate by david tolnay, is it?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: