Everything Is Broken: Shipping Rust-Minidump at Mozilla
hacks.mozilla.org
Everything Is Broken: Shipping Rust-Minidump at Mozilla
1–10 of 67 posts
Re: Everything Is Broken: Shipping Rust-Minidump at Mozilla
#2They have to deal with basically random apps doing whatever they want and it sounds like hell.
Re: Everything Is Broken: Shipping Rust-Minidump at Mozilla
#3Re: Everything Is Broken: Shipping Rust-Minidump at Mozilla
#4If the dump is corrupt then just stop trying to parse/make sense of it; it's garbage.
Re: Everything Is Broken: Shipping Rust-Minidump at Mozilla
#5Re: Everything Is Broken: Shipping Rust-Minidump at Mozilla
#6Maybe I'm missing something, but they ported from C++ (because 'C++ is bad donchaknow') to Rust and still ran into problems parsing crash dumps? If the dump is corrupt then just stop trying to parse/make sense of it; it's garbage.
You can't expect "thing that runs when a process may have just experienced memory corruption" and "all builds of your application for all eternity" and "every toolchain you ever built your program with for all eternity" to be even vaguely reliable, because those things are in the past and we're trying to figure out how to fix the bugs people are experiencing in production today.
It is a horribly miserable answer to tell your coworkers "yeah sorry I know users are getting thousands of crashes this morning but the crash-dumper didn't sign its name in cursive so I'm gonna refuse to let you read the letter it sent at all".
And just an incoherent answer to say "yeah I know this is a stack overflow but it left the stack in a mildly corrupt state so I absolutely refuse to try to even look at the stack and figure anything out about it". Like, that is the entire purpose of a crashreporter, to investigate a program in an invalid state!
Re: Everything Is Broken: Shipping Rust-Minidump at Mozilla
#7Re: Everything Is Broken: Shipping Rust-Minidump at Mozilla
#8Maybe I'm missing something, but they ported from C++ (because 'C++ is bad donchaknow') to Rust and still ran into problems parsing crash dumps? If the dump is corrupt then just stop trying to parse/make sense of it; it's garbage.
So the entire reason for being for things like rust-minidump are to make enough sense out of files that are known to be corrupt garbage to be able to find bugs.
Re: Everything Is Broken: Shipping Rust-Minidump at Mozilla
#9One thing I appreciate about writing Rust is that ADT support implies writing parsers is simpler under the "parse don't validate" mindset (which was clarified for me I think in this [0] article).
[0]: https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-va...