kernel hang in Media graphics engine infinite loop

Originator:valexa
Number:rdar://10087439 Date Originated:08-Sep-2011 12:03 AM
Status:Open Resolved:
Product:Mac OS X Product Version:10.7.1
Classification:hang Reproducible:
 
Around 9 PM i had done some testing of a bluetooth headset consisting in recording with quicktime and outputing music to it of which i experienced choppy sound/dropped frames so i disconnected the headset.

At this point iTunes was outputting significantly degraded sound even to built-in speakers while the same file played fine with quicktime and spotify, a restart of iTunes brought it back to normal, at this pint i stepped away from the machine.

I returned at 11 PM to find the machine unresponsive with a black screen and cursor, fan spinning around 3-4k RPM , i was able to remotely ssh to it and kill WindowServer at 11:20:54 after which i used the hardware button to restart it.

Investigation after restart showed it was caught up in a infinite loop of a kernel hang of which full logs are attached.  

Sep  7 23:21:01 VAir kernel[0]: timestamps = 0x0006
Sep  7 23:21:01 VAir kernel[0]: Semaphore register values:
Sep  7 23:21:01 VAir kernel[0]: VRSYNC: (0x12044) = 0xdf762
Sep  7 23:21:01 VAir kernel[0]: BRSYNC: (0x22040) = 0x0
Sep  7 23:21:01 VAir kernel[0]: RVSYNC: (0x 2040) = 0x0
Sep  7 23:21:01 VAir kernel[0]: BVSYNC: (0x22044) = 0x0
Sep  7 23:21:01 VAir kernel[0]: RBSYNC: (0x 2044) = 0x0
Sep  7 23:21:01 VAir kernel[0]: VBSYNC: (0x12040) = 0x0
Sep  7 23:21:01 VAir kernel[0]: kIPEHR: 0x1000000
Sep  7 23:21:01 VAir kernel[0]: kINSTDONE: 0xfffffffe
Sep  7 23:21:01 VAir kernel[0]: kINSTDONE_1: 0xffffffff
Sep  7 23:21:12 VAir kernel[0]: WaitForStamp: Overflowed waiting for stamp 0x7 on Media ring: called from 
Sep  7 23:21:12 VAir kernel[0]: timestamp = 0x0006
Sep  7 23:21:12 VAir kernel[0]: ****  Debug info for apparent hang in Media graphics engine  ****
Sep  7 23:21:12 VAir kernel[0]: ring head    = 0x00000310, wrap count = 0x 0
Sep  7 23:21:12 VAir kernel[0]: ring tail    = 0x00000380 ring control = 0x00003001   enabled, auto report disabled, not waiting, semaphore not waiting, length = 0x004 4KB pages

Comments

Same issue here... same log entries over and over for hours.

Happened to me on 3-4 different occasions - can't think of any correlation to what I was doing (or rather not doing) at the time... sometimes while the screen was sleeping, once while the screen was still on. Don't think it ever did it while I was using it... I'd come back to it a bit later and find it "stuck"...

9/2/11 8:48:42.000 PM kernel: timestamps = 0x0002 9/2/11 8:48:42.000 PM kernel: Semaphore register values: 9/2/11 8:48:42.000 PM kernel: VRSYNC: (0x12044) = 0x44476c 9/2/11 8:48:42.000 PM kernel: BRSYNC: (0x22040) = 0x0 9/2/11 8:48:42.000 PM kernel: RVSYNC: (0x 2040) = 0x0 9/2/11 8:48:42.000 PM kernel: BVSYNC: (0x22044) = 0x0 9/2/11 8:48:42.000 PM kernel: RBSYNC: (0x 2044) = 0x0 9/2/11 8:48:42.000 PM kernel: VBSYNC: (0x12040) = 0x0 9/2/11 8:48:42.000 PM kernel: kIPEHR: 0x78171003 9/2/11 8:48:42.000 PM kernel: kINSTDONE: 0xfffffffe 9/2/11 8:48:42.000 PM kernel: kINSTDONE_1: 0xffffffff 9/2/11 8:48:52.000 PM kernel: WaitForStamp: Overflowed waiting for stamp 0x3 on Media ring: called from 9/2/11 8:48:52.000 PM kernel: timestamp = 0x0002 9/2/11 8:48:52.000 PM kernel: * Debug info for apparent hang in Media graphics engine * 9/2/11 8:48:52.000 PM kernel: ring head = 0x00000110, wrap count = 0x 0 9/2/11 8:48:52.000 PM kernel: ring tail = 0x00000180 ring control = 0x00003001 enabled, auto report disabled, not waiting, semaphore not waiting, length = 0x004 4KB pages


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!