Opened 12 years ago
Closed 10 years ago
#11088 closed defect (fixed)
AHCI-related assertion failure
Reported by: | mnz2000 | Owned by: | |
---|---|---|---|
Component: | virtual disk | Version: | VirtualBox 4.2.2 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description
I am getting the following assertion after some hours of running my virtual machine:
!ASMAtomicReadU32(&pAhciPort->cTasksActive) 10:03:27.007178 Location : D:\tinderbox\win-4.2\src\VBox\Devices\Storage\DevAHCI.cpp(5405) bool __cdecl ahciCancelActiveTasks(struct AHCIPort *)
I am running VirtualBox 4.2.2 on Windows 7 host. The guest is Windows XP. I just upgraded from VirtualBox 4.2.0 to 4.2.2 and the same problem occurs here.
Attachments (6)
Change History (16)
by , 12 years ago
comment:1 by , 12 years ago
Same problem with version 4.2.6
More than one machine crashing after some minutes of running with the same description and assertion.
Host Windows 7 x64 Guests both oel 6.3
Shared disks attached to virtual SATA controller. Will try using host i/o.
comment:2 by , 12 years ago
Your log shows disturbing CRC errors while reading from the disk images. This points to a host disk problem. Can you run chkdsk on your host to check whether your hard drive is functioning properly?
comment:3 by , 12 years ago
Having the same problem. Version 4.2.6, Ubuntu 12.04 Host and Guest. The guest stays up for a while and then crashes with the assertion failure.
We do not see CRC errors.
follow-up: 5 comment:4 by , 12 years ago
I too am seeing this issue. Version 4.2.8, Ubuntu 10.04 Host, Windows XP Guest, Fixed VDI disk attached to virtual SATA controller. Do not see any CRC errors, however this VDI was previously on a hard-disk that was failing. It has since been copied to a good hard-disk.
comment:5 by , 12 years ago
Replying to mpotter:
Fixed VDI disk attached to virtual SATA controller.
Changed virtual controller to IDE. Have not seen this problem since, but with a performance hit.
comment:6 by , 11 years ago
I`ve probably the same problem on Ubuntu 12.04 x64 host with Win7 x86 guest (according to VBox.log) during heavy HDD load by guest (VirtualBox 4.3.6 + latest stock kernel 3.2.0-58). Also in /var/log/kern.log, I saw many errors like this one:
... [20243.847797] sd 0:0:0:0: [sda] Unhandled sense code [20243.847803] sd 0:0:0:0: [sda] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE [20243.847810] sd 0:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor] [20243.847818] Descriptor sense data with sense descriptors (in hex): [20243.847823] 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00 [20243.847840] 10 4c ae 48 [20243.847848] sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed [20243.847860] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 10 4c ae 48 00 00 80 00 ...
I found the problem - it was bad blocks on my host HDD (SSD). After fixing it VM crashes and errors in VBox.log/kern.log are disappeared. See the comment:2 from aeichner.
For fixing I boot from Ubuntu LiveCD and use command (valid for ext2/3/4 filesystems; change sda7 to your partition name):
sudo fsck -cc /dev/sda7
but of course first of all you must backup all data from HDD and don`t keep important information on this HDD.
comment:7 by , 11 years ago
I just had the same sudden assertion failure and guest abort. No evidence of drive errors in the Win7 x64 guest event log.
comment:8 by , 10 years ago
On Mac Mavericks using VirtualBox 4.3.14 (full listing in attached 140812_1.log) it is:
00:29:33.395186 AHCI#0P2: Write request was active for 27 seconds 00:31:08.343314 AHCI#0: Port 2 reset 00:33:23.456548 AHCI#0P2: Write request was active for 165 seconds 00:33:23.456559 AHCI#0P2: Canceled write at offset 31792742400 (131072 bytes left) returned rc=VINF_SUCCESS 00:33:23.508169 00:33:23.508170 !!Assertion Failed!! 00:33:23.508170 Expression: !ASMAtomicReadU32(&pAhciPort->cTasksActive) || (pAhciReqExcept && ASMAtomicReadU32(&pAhciPort->cTasksActive) == 1) 00:33:23.508171 Location : /Users/vbox/tinderbox/4.3-mac-rel/src/VBox/Devices/Storage/DevAHCI.cpp(5689) bool ahciCancelActiveTasks(AHCIPort*, AHCIREQ*)
comment:10 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Hopefully fixed with VBox 4.3.16.
VirtualBox 4.2.2 log