Jason A. Donenfeld

Results 109 comments of Jason A. Donenfeld

You have to be careful with alignment on some archs with that sort of unsafe cast. Typically what I've done in C is memcpy to the destination and let gcc...

It traps into the kernel, where the kernel decodes the offending instruction and emulates it by doing a byte-by-byte read. You can also tell the kernel to sigbus your process...

Yea this is the memcpy trick I mentioned. A good compiler should produce optimal code here, since it knows whether the arch can do the fixed-length copy wordwise or not.

In the CL discussion, there was some question as to when "optional" diagnostics gets enabled. I was just installing a fresh Windows 11 board a few minutes ago and noticed...

> Given that this only happens on insider builds, it isn't even that sketchy that the option is preselected. This wasn't an insider build; I was installing the Windows 11...

> I'd actually prefer to disable/revert the change for 1.18 and decide exactly how we want to proceed. This has already happened, FYI. There's also the WER option to pop...

From the top post: > Before this proposal moves to an "under consideration" step, we should get a clearer idea about what we're proposing. For the record, I still don't...

> It sounds like if we make this change, then developers who have not edited the registry will not see any change at all. > And developers who did edit...

> @zx2c4 was suggesting above to call MiniDumpWriteDump from dbghelp.dll directly, instead of letting WER do it. Either way a minidump is produced and either way the result can be...

WER means we hand the state of a crashing app to the WER API and say "do something with it." As an app developer, I can actually register to receive...