Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332909

Summary: Working in JS Comments kills MacOS X - forced to reboot
Product: [WebTools] JSDT Reporter: gossi <eclipse>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: RESOLVED NOT_ECLIPSE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: critical    
Priority: P3 CC: cmjaun, jacek.pospychala
Version: unspecified   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description gossi CLA 2010-12-19 15:06:47 EST
Build Identifier: 20100917-0705

When working within a comments section in JavaScript Source editing, my Mac hangs up. It gives a message, kind of: "An Error has occured, please hold down your power button to restart Mac OS X". This has happened to me today four times. What I was doing:

Actually putting comments to my code and working with those. Documenting my code to make it work with jsdoc-toolkit. So, most of my time I spent typing within comment blocks. When creating the doc I switched over to Firefox to see the results. So, suddenly when typing comments, my mac freezes with the message above.

Well, i'm not pretty sure, if this belongs to eclipse and furthermore to JavaScript Source Editing. This is an assumption, that this happens with eclipse at all but looks like. So, you may push around this issue and find a nice home for it ;)
I've already sent the report to apple but will add the crashreport below:


Interval Since Last Panic Report:  817 sec
Panics Since Last Report:          1
Anonymous UUID:                    CDD94A73-45C9-4201-878B-437192CDC85E

Sun Dec 19 20:30:01 2010
panic(cpu 0 caller 0x226b53): "thread_invoke: preemption_level -1, possible cause: unlocking an unlocked mutex or spinlock"@/SourceCache/xnu/xnu-1504.9.17/osfmk/kern/sched_prim.c:1471
Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
0xd13e18 : 0x21b50c (0x5d42fc 0xd13e4c 0x223974 0x0) 
0xd13e68 : 0x226b53 (0x58b9ec 0xffffffff 0x58b984 0x226149) 
0xd13ee8 : 0x227259 (0x50fe7c4 0x0 0x24d99000 0x1) 
0xd13f58 : 0x2272c4 (0x22fc20 0x863ea0 0x0 0x2a358d) 
0xd13f78 : 0x22fdba (0x22fc20 0x863ea0 0x0 0x0) 
0xd13fc8 : 0x2a06cc (0x863ea0 0x0 0x10 0x0) 

BSD process name corresponding to current thread: kernel_task

Mac OS version:
10H574

Kernel version:
Darwin Kernel Version 10.5.0: Fri Nov  5 23:20:39 PDT 2010; root:xnu-1504.9.17~1/RELEASE_I386
System model name: MacBook4,1 (Mac-F22788A9)

System uptime in nanoseconds: 6203763180594
unloaded kexts:
com.apple.driver.AirPortBrcm43xx	423.91.27 (addr 0xba4000, size 0x1900544) - last unloaded 148809463706
loaded kexts:
com.cisco.nke.ipsec	2.0.1
com.microsoft.driver.MicrosoftKeyboardUSB	8.0
com.microsoft.driver.MicrosoftKeyboard	8.0
com.Logitech.Control Center.HID Driver	3.3.0
com.apple.filesystems.smbfs	1.6.5 - last loaded 69741009045
com.apple.filesystems.autofs	2.1.0
com.apple.driver.AppleHDA	1.9.9f12
com.apple.driver.AppleHWSensor	1.9.3d0
com.apple.driver.AppleUpstreamUserClient	3.4.5
com.apple.driver.AppleMCCSControl	1.0.17
com.apple.driver.AppleIntelGMAX3100	6.2.4
com.apple.driver.AppleIntelGMAX3100FB	6.2.4
com.apple.driver.SMCMotionSensor	3.0.0d4
com.apple.driver.AudioAUUC	1.13
com.apple.Dont_Steal_Mac_OS_X	7.0.0
com.apple.iokit.CHUDUtils	364
com.apple.iokit.CHUDProf	364
com.apple.driver.AudioIPCDriver	1.1.6
com.apple.driver.AppleIntelPenrynProfile	17.1
com.apple.driver.AppleLPC	1.4.12
com.apple.driver.AppleBacklight	170.0.34
com.apple.driver.ACPI_SMC_PlatformPlugin	4.5.0d5
com.apple.driver.AppleUSBTrackpad	200.3.2
com.apple.driver.AppleUSBTCKeyEventDriver	200.3.2
com.apple.driver.AppleUSBTCKeyboard	200.3.2
com.apple.driver.AppleIRController	303.8
com.apple.iokit.SCSITaskUserClient	2.6.5
com.apple.BootCache	31
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib	1.0.0d1
com.apple.driver.AppleSmartBatteryManager	160.0.0
com.apple.iokit.IOAHCIBlockStorage	1.6.3
com.apple.driver.AppleUSBHub	4.1.7
com.apple.iokit.AppleYukon2	3.2.1b1
com.apple.driver.AirPortBrcm43224	426.36.1
com.apple.driver.AppleAHCIPort	2.1.5
com.apple.driver.AppleIntelPIIXATA	2.5.1
com.apple.driver.AppleUSBEHCI	4.1.7
com.apple.driver.AppleUSBUHCI	4.1.5
com.apple.driver.AppleEFINVRAM	1.4.0
com.apple.driver.AppleRTC	1.3.1
com.apple.driver.AppleHPET	1.5
com.apple.driver.AppleFWOHCI	4.7.1
com.apple.driver.AppleACPIButtons	1.3.5
com.apple.driver.AppleSMBIOS	1.6
com.apple.driver.AppleACPIEC	1.3.5
com.apple.driver.AppleAPIC	1.4
com.apple.driver.AppleIntelCPUPowerManagementClient	105.13.0
com.apple.security.sandbox	1
com.apple.security.quarantine	0
com.apple.nke.applicationfirewall	2.1.11
com.apple.driver.AppleIntelCPUPowerManagement	105.13.0
com.apple.driver.DspFuncLib	1.9.9f12
com.apple.driver.AppleProfileReadCounterAction	17
com.apple.driver.AppleProfileTimestampAction	10
com.apple.driver.AppleProfileThreadInfoAction	14
com.apple.driver.AppleProfileRegisterStateAction	10
com.apple.driver.AppleProfileKEventAction	10
com.apple.driver.AppleProfileCallstackAction	20
com.apple.iokit.IOFireWireIP	2.0.3
com.apple.iokit.IOSurface	74.2
com.apple.iokit.IOBluetoothSerialManager	2.3.8f7
com.apple.iokit.IOSerialFamily	10.0.3
com.apple.iokit.CHUDKernLib	365
com.apple.iokit.IOAudioFamily	1.7.9fc4
com.apple.kext.OSvKernDSPLib	1.3
com.apple.driver.AppleHDAController	1.9.9f12
com.apple.iokit.IOHDAFamily	1.9.9f12
com.apple.iokit.AppleProfileFamily	41.4
com.apple.iokit.IONDRVSupport	2.2
com.apple.iokit.IOGraphicsFamily	2.2
com.apple.driver.AppleSMC	3.1.0d3
com.apple.driver.IOPlatformPluginFamily	4.5.0d5
com.apple.driver.CSRUSBBluetoothHCIController	2.3.8f7
com.apple.driver.AppleUSBBluetoothHCIController	2.3.8f7
com.apple.iokit.IOBluetoothFamily	2.3.8f7
com.apple.driver.AppleUSBMergeNub	4.1.5
com.apple.iokit.IOUSBHIDDriver	4.1.5
com.apple.driver.AppleUSBComposite	3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice	2.6.5
com.apple.iokit.IOBDStorageFamily	1.6
com.apple.iokit.IODVDStorageFamily	1.6
com.apple.iokit.IOCDStorageFamily	1.6
com.apple.driver.XsanFilter	402.1
com.apple.iokit.IOATAPIProtocolTransport	2.5.1
com.apple.iokit.IOSCSIArchitectureModelFamily	2.6.5
com.apple.iokit.IOUSBUserClient	4.1.5
com.apple.iokit.IO80211Family	312
com.apple.iokit.IONetworkingFamily	1.9
com.apple.iokit.IOAHCIFamily	2.0.4
com.apple.iokit.IOATAFamily	2.5.1
com.apple.iokit.IOUSBFamily	4.1.7
com.apple.driver.AppleEFIRuntime	1.4.0
com.apple.iokit.IOFireWireFamily	4.2.6
com.apple.iokit.IOHIDFamily	1.6.5
com.apple.iokit.IOSMBusFamily	1.1
com.apple.kext.AppleMatch	1.0.0d1
com.apple.security.TMSafetyNet	6
com.apple.driver.DiskImages	289
com.apple.iokit.IOStorageFamily	1.6.2
com.apple.driver.AppleACPIPlatform	1.3.5
com.apple.iokit.IOPCIFamily	2.6
com.apple.iokit.IOACPIFamily	1.3.0
Model: MacBook4,1, BootROM MB41.00C1.B00, 2 processors, Intel Core 2 Duo, 2.4 GHz, 2 GB, SMC 1.31f1
Graphics: Intel GMA X3100, GMA X3100, Built-In, 144 MB
Memory Module: global_name
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x88), Broadcom BCM43xx 1.0 (5.10.131.36.1)
Bluetooth: Version 2.3.8f7, 2 service, 12 devices, 1 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: FUJITSU MHY2160BH, 149,05 GB
Parallel ATA Device: HL-DT-ST DVDRW  GSA-S10N
USB Device: Built-in iSight, 0x05ac  (Apple Inc.), 0x8501, 0xfd400000
USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8205, 0x1a100000
USB Device: Generic USB Hub, 0x058f  (Alcor Micro, Corp.), 0x9254, 0x1a200000
USB Device: 2Port KVMSwicther, 0x10d5, 0x55a2, 0x1a230000
USB Device: NaturalĀ® Ergonomic Keyboard 4000, 0x045e  (Microsoft Corporation), 0x00db, 0x1a210000
USB Device: USB-PS/2 Optical Mouse, 0x046d  (Logitech Inc.), 0xc043, 0x1a220000
USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x022a, 0x5d200000
USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x5d100000


Reproducible: Sometimes
Comment 1 Jacek Pospychala CLA 2010-12-19 15:45:07 EST
hi gossi,
I'm not any expert in reading Apple error logs, but it looks like crash happend while executing some code in "xnu-1504.9.17/osfmk/kern/sched_prim.c:1471", where Xnu is Apple OS kernel.
Googling for that path leads to e.g. http://discussions.apple.com/thread.jspa?messageID=12715829&tstart=0
That page lists many other comments from users hitting similar problems. What's common is that their logs also mention some of modules that your log includes, e.g.
com.cisco.nke.ipsec    2.0.1
com.microsoft.driver.MicrosoftKeyboardUSB    8.0
com.microsoft.driver.MicrosoftKeyboard    8.0

so I would try to remove some USB or other external devices and see if issue persists.
Comment 2 Nitin Dahyabhai CLA 2010-12-20 18:23:09 EST
If that's the cause, nice find Jacek!
Comment 3 Chris Jaun CLA 2011-01-13 14:06:38 EST
Having heard nothing new from the submitter and Jacek's comment appearing to identify the cause of this bug, I am resolving this item as NOT_ECLIPSE.