2 ms·
Congrats to the team! I recently wrote my first Rust [1] project. Great experience, IMO. I faced a lot of interesting challenges because my use case was a li
by wyldfire 11y ago
Congrats to the team!
I recently wrote my first Rust [1] project. Great experience, IMO. I faced a lot of interesting challenges because my use case was a little outside of typical. But I tried to minimize 'unsafe' and I was still satisfied with the results so far.
I know I've only just scratched the surface of the language and I'm looking forward to learning more.
[1] https://github.com/androm3da/libfaultinj https://github.com/androm3da/libfaultinj
- logophobia 11y agoJust a small remark. You might want to note in your readme why you'd want to use a fault-injection library. I wasn't familiar with the concept, and had to google why you'd want to do that (for testing unexpected errors and the application's handling of those errors).
- wyldfire 11y agoGood suggestion: https://github.com/androm3da/libfaultinj/commit/9e11fadf6f8ba8b218e8c074417fc640b93055a9 https://github.com/androm3da/libfaultinj/commit/9e11fadf6f8b...
- kibwen 11y agoThis looks like a really cool utility! What other tools out there provide the same service, and how do they compare to this?
- wyldfire 11y agoI don't think there are any that I know of. There's several tools that leverage LD_PRELOAD hooks though. ElectricFence is similar but focusing on out-of-bounds memory accesses. Actually, that's not really fault injection, more like sanitizing bad behavior. There's other fault injection stuff for linux, usually at different layers (I've seen some that use systemtap, e.g.).
- lobster_johnson 11y agoI'm looking for something that simulates network errors (in particular: connect timeouts, read timeouts and sudden disconnects). Randomness would be good, too. Know anything for this that can be applied for individual processes?
- wyldfire 11y agoYeah, I am pretty sure this is doable but it's not covered by libfaultinj yet. I opened an issue [1]. I'll get on it. [1] https://github.com/androm3da/libfaultinj/issues/1 https://github.com/androm3da/libfaultinj/issues/1
- lobster_johnson 11y agoAwesome!