December 4th, 2008

When you start getting in-page errors on your hard drive, it’s time to go shopping for a new hard drive

The STATUS_IN_PAGE_ERROR describes itself as “The instruction at XXX referenced memory at YYY. The required data was not placed into memory because of an I/O error status of ZZZ.” What does this mean?

It means that the memory manager needed to read some memory from the disk, but the disk returned an error. (Namely, error ZZZ.) Since it has no way to return an error code to your program—I mean, after all, all your program did was read a variable from memory; there’s no way to return an error code from int x = y if y cannot be read off the disk—it is reduced to raising an exception.

When you see this message, and the I/O operation was coming from your hard drive, then you need to go shopping for a new hard drive. (You will also be alerted to a dying drive if your drive supports S.M.A.R.T.)

Now.

You can see this error for sources other than hard drives. For example, if you’re running a program over the network and the network connection dies, and the memory manager needs to demand-page some code from the program image, then you’ll get this error because the code couldn’t be loaded off the network. Similarly, if you yank a CD out of the drive while a program is executing from it (or your CD is damaged), there’s a good chance that you’ll get this error.

Naturally, the loss of a network connection or removal of a CD does not mean that your network card or CD-ROM drive is failing; it’s a failure of the underlying connection or medium. But if your hard drive starts generating I/O errors, then there’s not much that can be blamed aside from the drive itself. (Okay, it might be a failing controller, but it’s more likely to be the drive itself.)

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

0 comments

Discussion are closed.