VirtualBox

Ticket #11088 (closed defect: fixed)

Opened 3 years ago

Last modified 10 months ago

AHCI-related assertion failure

Reported by: mnz2000 Owned by:
Priority: major 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

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

Change History

Changed 3 years ago by mnz2000

VirtualBox 4.2.2 log

Changed 3 years ago by mnz2000

VirtualBox 4.2.0 log

Changed 2 years ago by fishbone

assertion log

comment:1 Changed 2 years ago by fishbone

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 Changed 2 years ago by aeichner

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?

Changed 2 years ago by ben1230

Log file; no CRC errors

comment:3 Changed 2 years ago by ben1230

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 follow-up: ↓ 5 Changed 2 years ago by mpotter

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 in reply to: ↑ 4 Changed 2 years ago by mpotter

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 Changed 18 months ago by baxusm

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 18 months ago by baxusm (previous) (diff)

Changed 14 months ago by Citryphus

Log of VM that spontaneously aborted

comment:7 Changed 14 months ago by Citryphus

I just had the same sudden assertion failure and guest abort. No evidence of drive errors in the Win7 x64 guest event log.

Changed 11 months ago by WBaron

AHCI Crash on Mac Mavericks VirtualBox-4.3.14

comment:8 Changed 11 months ago by WBaron

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 Changed 11 months ago by mhanor

Same issue: #13105

comment:10 Changed 10 months ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Hopefully fixed with VBox 4.3.16.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use