Radom error while hibernating -revalidation failed errno=-5

Bug #997353 reported by Anton Kanishchev
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

This happens at random when i try to hibernate my system (12.04) lts sometimes it hibernates properly and others it gives me that error-which stops it hibernating so i have to push the power button for it to turn off.
My swap file is 10GB and ram=4GB so plently of space for hibernation (only evern hibernate when no swap used, only ram).
Some help would be much appreciated. I have also noticed this is a very old bug dating back from 2007 but back then it happened during different actions.

here is the output from gsmart:

smartctl 5.41 2011-06-09 r3365 [i686-linux-3.2.0-24-generic-pae] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family: Seagate Momentus XT
Device Model: ST95005620AS
Serial Number: 5YX1C0HG
LU WWN Device Id: 5 000c50 03d9c6f5c
Firmware Version: SD28
User Capacity: 500,107,862,016 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: ATA-8-ACS revision 4
Local Time is: Wed May 9 22:40:43 2012 BST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
     was completed without error.
     Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
     without error or no self-test has ever
     been run.
Total time to complete Offline
data collection: ( 634) seconds.
Offline data collection
capabilities: (0x7b) SMART execute Offline immediate.
     Auto Offline data collection on/off support.
     Suspend Offline collection upon new
     command.
     Offline surface scan supported.
     Self-test supported.
     Conveyance Self-test supported.
     Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
     power-saving mode.
     Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
     General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 105) minutes.
Conveyance self-test routine
recommended polling time: ( 2) minutes.
SCT capabilities: (0x1001) SCT Status supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate 0x000f 120 099 006 Pre-fail Always - 235861123
  3 Spin_Up_Time 0x0003 097 097 000 Pre-fail Always - 0
  4 Start_Stop_Count 0x0032 099 099 020 Old_age Always - 1420
  5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
  7 Seek_Error_Rate 0x000f 076 060 030 Pre-fail Always - 46149991
  9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1230
 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
 12 Power_Cycle_Count 0x0032 099 099 020 Old_age Always - 1438
184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0
187 Reported_Uncorrect 0x0032 066 066 000 Old_age Always - 34
188 Command_Timeout 0x0032 100 253 000 Old_age Always - 0
189 High_Fly_Writes 0x003a 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 067 051 045 Old_age Always - 33 (Min/Max 28/33)
191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 88
193 Load_Cycle_Count 0x0032 099 099 000 Old_age Always - 3760
194 Temperature_Celsius 0x0022 033 049 000 Old_age Always - 33 (0 14 0 0)
195 Hardware_ECC_Recovered 0x001a 054 045 000 Old_age Always - 235861123
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0

SMART Error Log Version: 1
ATA Error Count: 30 (device log contains only the most recent five errors)
 CR = Command Register [HEX]
 FR = Features Register [HEX]
 SC = Sector Count Register [HEX]
 SN = Sector Number Register [HEX]
 CL = Cylinder Low Register [HEX]
 CH = Cylinder High Register [HEX]
 DH = Device/Head Register [HEX]
 DC = Device Command Register [HEX]
 ER = Error register [HEX]
 ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 30 occurred at disk power-on lifetime: 429 hours (17 days + 21 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 01 ff ff ff 4f Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
  -- -- -- -- -- -- -- -- ---------------- --------------------
  60 00 01 ff ff ff 0f 00 02:00:12.741 READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00 02:00:07.770 READ LOG EXT
  60 00 01 ff ff ff 0f 00 49d+08:04:03.924 READ FPDMA QUEUED
  ef 03 46 00 00 00 40 00 49d+03:55:51.889 SET FEATURES [Set transfer mode]
  c6 00 10 00 00 00 40 00 49d+03:55:49.937 SET MULTIPLE MODE

Error 29 occurred at disk power-on lifetime: 429 hours (17 days + 21 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 01 ff ff ff 4f Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
  -- -- -- -- -- -- -- -- ---------------- --------------------
  60 00 01 ff ff ff 0f 00 49d+08:04:03.924 READ FPDMA QUEUED
  ef 03 46 00 00 00 40 00 49d+03:55:51.889 SET FEATURES [Set transfer mode]
  c6 00 10 00 00 00 40 00 49d+03:55:49.937 SET MULTIPLE MODE
  00 00 00 00 00 00 00 04 49d+03:54:28.943 NOP [Abort queued commands]
  60 00 01 ff ff ff 0f 00 48d+16:49:30.965 READ FPDMA QUEUED

Error 28 occurred at disk power-on lifetime: 429 hours (17 days + 21 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 01 ff ff ff 4f Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
  -- -- -- -- -- -- -- -- ---------------- --------------------
  60 00 01 ff ff ff 0f 00 48d+16:49:30.965 READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00 48d+16:49:25.945 READ LOG EXT
  60 00 01 ff ff ff 0f 00 48d+05:44:43.244 READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00 48d+05:44:38.281 READ LOG EXT
  60 00 01 ff ff ff 0f 00 47d+18:39:55.170 READ FPDMA QUEUED

Error 27 occurred at disk power-on lifetime: 429 hours (17 days + 21 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 01 ff ff ff 4f Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
  -- -- -- -- -- -- -- -- ---------------- --------------------
  60 00 01 ff ff ff 0f 00 48d+05:44:43.244 READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00 48d+05:44:38.281 READ LOG EXT
  60 00 01 ff ff ff 0f 00 47d+18:39:55.170 READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00 47d+18:39:50.193 READ LOG EXT
  60 00 01 ff ff ff 0f 00 47d+07:35:07.069 READ FPDMA QUEUED

Error 26 occurred at disk power-on lifetime: 429 hours (17 days + 21 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 01 ff ff ff 4f Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
  -- -- -- -- -- -- -- -- ---------------- --------------------
  60 00 01 ff ff ff 0f 00 47d+18:39:55.170 READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00 47d+18:39:50.193 READ LOG EXT
  60 00 01 ff ff ff 0f 00 47d+07:35:07.069 READ FPDMA QUEUED
  2f 00 01 10 00 00 40 00 47d+07:35:02.107 READ LOG EXT
  60 00 01 ff ff ff 0f 00 46d+20:30:18.658 READ FPDMA QUEUED

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Completed without error 00% 815 -
# 2 Short offline Completed without error 00% 650 -

SMART Selective self-test log data structure revision number 1
 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
    1 0 0 Not_testing
    2 0 0 Not_testing
    3 0 0 Not_testing
    4 0 0 Not_testing
    5 0 0 Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Thanks in advance.

P.S. Could this bug be considered as a security vulnerability or not? Just wondering because if I have an encrypted container (e.g. with truecrypt) and the system does not shutdown but i assumed it would you would be able to get all the passwords stored in memory or something like that (purely theoretically though)...

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-24-generic-pae 3.2.0-24.37
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic-pae 3.2.14
Uname: Linux 3.2.0-24-generic-pae i686
NonfreeKernelModules: fglrx
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu7
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC262 Analog [ALC262 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: anton 2999 F.... pulseaudio
 /dev/snd/controlC0: anton 2999 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xd4a00000 irq 47'
   Mixer name : 'Realtek ALC262'
   Components : 'HDA:10ec0262,104d3a00,00100302 HDA:14f12c06,104d1700,00100000'
   Controls : 17
   Simple ctrls : 9
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xd0030000 irq 48'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,104d3a00,00100100'
   Controls : 6
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Wed May 9 22:32:15 2012
HibernationDevice: RESUME=UUID=ae2f30bd-f897-41e2-ae9f-f2e0b98118bd
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
MachineType: Sony Corporation VGN-NW11S_T
ProcEnviron:
 LANGUAGE=en_GB:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-24-generic-pae root=UUID=d1c00637-5696-457c-9753-7171d6f95459 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-24-generic-pae N/A
 linux-backports-modules-3.2.0-24-generic-pae N/A
 linux-firmware 1.79
SourcePackage: linux
StagingDrivers: zram
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/27/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: R0180Y4
dmi.board.asset.tag: N/A
dmi.board.name: VAIO
dmi.board.vendor: Sony Corporation
dmi.board.version: N/A
dmi.chassis.asset.tag: N/A
dmi.chassis.type: 10
dmi.chassis.vendor: Sony Corporation
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrR0180Y4:bd08/27/2009:svnSonyCorporation:pnVGN-NW11S_T:pvrC601PLF4:rvnSonyCorporation:rnVAIO:rvrN/A:cvnSonyCorporation:ct10:cvrN/A:
dmi.product.name: VGN-NW11S_T
dmi.product.version: C601PLF4
dmi.sys.vendor: Sony Corporation

Revision history for this message
Anton Kanishchev (ak12-deactivatedaccount) wrote :
description: updated
security vulnerability: yes → no
visibility: private → public
description: updated
Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Anton Kanishchev (ak12-deactivatedaccount) wrote :

Does anybody have any workarounds so that i can at least hibernate (cant suspend either, filed a bug #995052 )???

Revision history for this message
penalvch (penalvch) wrote :

Anton Kanishchev, thank you for reporting this and helping make Ubuntu better. Could you please provide the information following https://wiki.ubuntu.com/DebuggingKernelSuspendHibernateResume ? As well, if you could also please test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text.

If this bug is fixed in the mainline kernel, please add the following tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag: 'kernel-bug-exists-upstream'.

If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-unable-to-test-upstream'.

Please let us know your results. Thanks in advance.

tags: added: hibernate needs-upstream-testing resume
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Anton Kanishchev (ak12-deactivatedaccount) wrote :

Thanks to everybody who is helping out :-)
Did the machine break while going to sleep or waking up?--- it sometimes does not happen. If i hibernate (using sudo pm-hibernate, seems to work with s2disk for some reason) it will flash that up about 80% of the time when attempting to hibernate. If it hibernates successfully then it shows up a flashing cursor , ctrl+alt+f1 dont work(doesnt display cli . I have to hardreboot to get it to work.

Did it work before?
Has this sleep type (suspend or hibernate) ever worked in the past. If it has which kernel release did it work on? ---hibernate works well using s2disk command, standby still does not work (i meantioned the bug report previously).I have tried the upstream, that didnt fix the problem.

Do you end up with flashing Caps Lock light or similar==NO

cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-3.2.0-24-generic-pae root=UUID=0698922a-d9f8-4d54-860b-161fb8248170 ro quiet splash vt.handoff=7

I will provide all the other info once I get some free time. Note, have not tested upstream yet will try to do so tomorrow.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.