by 16bytes · 6y ago · 0 comments
To figure out what the actual message is, you first have to figure out if you are seeing a HRESULT or a NTSTATUS[1]. In this case the leading 0xC is an invalid HRESULT, so it's for sure an NTSTATUS. Then you just look up the code in the bottom two bytes [2].
In this case it's just error code 5: "STATUS_ACCESS_VIOLATION", which is a memory access error, which typically means it's a bug where the program accidentally is trying to read outside of its memory space.
So, for sure an application error and not something that the user did or some sort of system issue.
There are also "facility" codes which can give you more information what where the issue is happening, but this code is just using the default.
I suppose this is better than when they would print the decimal value instead of the hex. "WTF is error code 3221225477?"
[1] https://docs.microsoft.com/en-us/openspecs/windows_protocols...
[2] https://docs.microsoft.com/en-us/openspecs/windows_protocols...
SYS!012345
SYS!876543
...and they were supposed to go look that up in some reference book to see what it meant.
The question was why they weren't outputting something human readable like "Unable to boot from non-system floppy". And the answer to that question was that, as an international company, they couldn't expect everyone to understand English.
So why not output multiple different languages? Well, the code to output the message has to fit in the floppy's boot sector, so the space is very tight.
And so there was discussion about whether it makes sense to give up having only 99% of users understand it, and instead have 0% understanding.
I think the killer argument was the person who suggested outputting a message something like
______
| |__| |
| () | X
|______|
which would just barely fit, and I think is almost universally understandable. Of course, the inscrutable message eventually stuck anyway.I suppose the reasoning was the same—not all users can understand English. But in this day and age a pictogram is in fact harder to search for because people describe it differently.
"In this day and age" you can snap a picture of (or screenshot) something and search Google with the image.
On the other hand, this is the OS/2 project, which Microsoft did as a political hedge instead of a true desire to invest in that particular future. I don't fault them for not overthinking their decisions.
I tracked this down with process explorer the other day. What I determined is that outlook is trying to load it's DLLs but the permissions on the FS prevent the DLLs from being read by the user.
I reset the permissions for all subfolders in C:\Program Data\Microsoft Common and c:\Program Files\Microsoft\Office and it started working again for me.
ACCESS_VIOLATION would be more like dereferencing a null pointer, but it's been a number of years since I had to troubleshoot this far in on Windows.
I suppose it's possible they didn't check for the error in the open file syscall then tried to use the uninitialized file handle for the DLL which caused the segfault.
If it had just told me that the name could not be resolved I would have figured out that I needed the full domain suffix because ipconfig wasn't showing it.
This issue goes way back in Microsofts history, always getting on my nerves as a power user. But at the same time probably the best OS for any other type of user.
> In this case it's just error code 5: "STATUS_ACCESS_VIOLATION", which is a memory access error, which typically means it's a bug where the program accidentally is trying to read outside of its memory space.
What would be a (more) user-friendly error message for this though, given the quite technical nature of the error?
"Error: 0xC0000005 - STATUS_ACCESS_VIOLATION - (Error, Microsoft defined, unreserved) Error: This is an internal error that prevented normal operation of the application. Please contact support at X."
Which conveys all of the information in the code and tells the user what they should do and that it wasn't their fault. Then it's a different story to say which code would be the most useful for the user.
NPM does something like this[1].
[1] https://stackoverflow.com/questions/22445371/npm-install-err...
I believe the actual error would be "access violation", status is only the prefix. But I don't think that text would help normal users more.
As in: "Who is that General Protection, what has he done to my computer and why is that his fault"?
"General Protection Fault" were the words actually presented to the "normal" users before. It surely didn't help them to read that.
sirens heard outside
They'll point you in a direction that is irrelevant to the error. I just wish the references were better.