OS X Mavericks seems to be corrupting my sleep image I've been running Mavericks and there seems to be some issue with sleeping.  If I run the battery down to zero, the laptop automatically hibernates as usual.  When I turn the laptop on, it boots, then immediately restarts - losing the sleep data in the process.

There don't seem to be any other issues, no kernel panics or anything like that.  Indeed there are no error messages of any kind, save for the obvious fact that it's just done a normal reboot.  Most applications deal with it gracefully, opening as if they crashed, but services like Python close and if the program doesn't handle it properly, data gets lost.

I'm wondering if it's a battery issue?  I had issues with an old battery (since replaced) where OS X would just die at low battery instead of hibernating, but even then it didn't reboot after turning on.  However, this has only started since I upgrade.

Any suggestions?

I have a mid 2009 13" Macbook, OS X 10.9, 4GB RAM and a 256GB Crucial M4 SSD.
Assuming you aren't running any 3rd party utilities or have previously changed your hibernation settings here is what I would do:


run sudo pmset -a hibernatemode 3
Verify your disk using disk utility. repair any problems.
delete the sleep image sudo rm /private/var/vm/sleepimage


if that doesn't fix it try an SMC reset