VirtualBox

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)

VBox.log (300.7 KB ) - added by mnz2000 12 years ago.
VirtualBox 4.2.2 log
VBox.log.2 (103.8 KB ) - added by mnz2000 12 years ago.
VirtualBox 4.2.0 log
VBox.log.1 (58.8 KB ) - added by fishbone 12 years ago.
assertion log
VBox.log.2.1 (78.7 KB ) - added by ben1230 12 years ago.
Log file; no CRC errors
VBox.2.log (111.5 KB ) - added by Citryphus 11 years ago.
Log of VM that spontaneously aborted
140812_1.log (71.1 KB ) - added by WBaron 10 years ago.
AHCI Crash on Mac Mavericks VirtualBox-4.3.14

Download all attachments as: .zip

Change History (16)

by mnz2000, 12 years ago

Attachment: VBox.log added

VirtualBox 4.2.2 log

by mnz2000, 12 years ago

Attachment: VBox.log.2 added

VirtualBox 4.2.0 log

by fishbone, 12 years ago

Attachment: VBox.log.1 added

assertion log

comment:1 by fishbone, 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 aeichner, 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?

by ben1230, 12 years ago

Attachment: VBox.log.2.1 added

Log file; no CRC errors

comment:3 by ben1230, 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.

comment:4 by Mark Potter, 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.

in reply to:  4 comment:5 by Mark Potter, 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 baxusm, 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.

Last edited 11 years ago by baxusm (previous) (diff)

by Citryphus, 11 years ago

Attachment: VBox.2.log added

Log of VM that spontaneously aborted

comment:7 by Citryphus, 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.

by WBaron, 10 years ago

Attachment: 140812_1.log added

AHCI Crash on Mac Mavericks VirtualBox-4.3.14

comment:8 by WBaron, 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:9 by Mihai Hanor, 10 years ago

Same issue: #13105

comment:10 by Frank Mehnert, 10 years ago

Resolution: fixed
Status: newclosed

Hopefully fixed with VBox 4.3.16.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette