Hacker News new | past | comments | ask | show | jobs | submit login
Catching Sanitizer Errors Programmatically (lemire.me)
48 points by greghn on Aug 23, 2022 | hide | past | favorite | 2 comments



I guess there are many ways forward if you want to do this. One of the hardest problems is the concept of "most important bits". The most important bits are the exact bits needed to re-create your program. Think of it as a save state in an emulator, or serializing changes made to a read-only database, all in an effort to reduce the state necessary to go back later.

No matter what solutions you offer when catching errors, the problem of the most important bits is a hard one, and one that you yourself need to implement in every program. Quite frankly, almost nobody add these features. We were considering paying the Botan creator to add serialization to his TLS library, and he found that it would be too much work, so he ended up declining. I had to add it to s2n, but they were never interested in it, so I maintained it myself until eventually I discarded it. All in the effort to recreate a full networking stack after hotswapping an entire OS in milliseconds. Quite a fun project. Nevertheless, I don't think it will ever be easy.


I’d really like the results of my test suite to show errors from sanitizers in my editor akin to static analysis!

I’ve also wanted to see such inline runtime errors in my editor but for production errors, test suite errors and failures, etc.

What about having some runtime performance metrics associated with a given function visible in your editor? Slower functions are shaded red?




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: