Author: awilcox Language: text
Description: lol get Ashen to fix THIS! Timestamp: 2013-06-19 08:59:56 +0000
View raw paste Reply
  1. Problem ID: rdar://10632591/
  2.        
  3. Title:          CFPasteboardCreate hangs every app when starting or quitting
  4. State:   Open  
  5. Originated Date:        30-Dec-2011 11:04 AM
  6.  
  7. 30-Dec-2011 11:04 AM Andrew Wilcox:
  8. 'Calculator_2011-12-30-094321_ind-wkst025.hang' was successfully uploaded
  9.  
  10. 30-Dec-2011 11:04 AM Andrew Wilcox:
  11. Summary:
  12. My Mac has been running for a few days.  I opened Calculator to multiply a few numbers and then attemptd to quit it.  When I quit Calculator it immediately locked (CPU usage spike, rainbow spin cursor).  When I opened Activity Monitor to kill it, it locked in the same manner.
  13.  
  14. I luckily had Terminal open.  I ran top(1) and found that Finder, Problem Report, Calculator, Activity Monitor were all using ~80-90% CPU.  I opened a new Terminal tab and attached GDB to each process.  The backtrace showed that each application that was locked was in a spinlock inside CFPasteboardCreate.  I was able to duplicate the bug by switching to Illustrator from the Dock and creating a new document; it attempted to allocate a new pasteboard and instantly locked.
  15.  
  16. I'm still running my Mac like this to file this bug but will obviously have to reboot it after I save what I have open in Xcode and TextEdit.
  17.  
  18.  
  19. Steps to Reproduce:
  20. I'm not sure what has caused this issue, but I will investigate the CoreFoundation open-source code if it's still available after I reboot.
  21.  
  22.  
  23. Expected Results:
  24. Pasteboard to be created.
  25.  
  26.  
  27. Actual Results:
  28. Instant lock.
  29.  
  30.  
  31. Regression:
  32. I don't believe so, though I have never seen this before and I've been using OS X since Cheetah.
  33.  
  34.  
  35. Notes:
  36. The backtrace from Problem Reporter, which is the only one still in my Terminal scrollback, is:
  37.  
  38. (gdb) attach 15878
  39. Attaching to process 15878.
  40. Reading symbols for shared libraries . done
  41. Reading symbols for shared libraries .................................................................................................... done
  42. 0x00007fffffe0027e in __spin_lock ()
  43. (gdb) bt
  44. #0  0x00007fffffe0027e in __spin_lock ()
  45. #1  0x00007fff880a1cb4 in CFPasteboardCreate ()
  46. #2  0x00007fff85f16552 in isPrefsGetDefaultAsciiKeyboardLayout ()
  47. #3  0x00007fff85f1605b in isPrefsCreateCacheFromEnabledAndDefaultInputSources ()
  48. #4  0x00007fff85f15979 in islGetInputSourceListWithAdditions ()
  49. #5  0x00007fff85f1d8b0 in TSMGetInputSourceCountWithFilteredAdditions ()
  50. #6  0x00007fff85f1d628 in TISCreateInputSourceList ()
  51. #7  0x00007fff85f0f0a1 in SyncHandwritingHotKey ()
  52. #8  0x00007fff85f0eb5b in _FirstEventTime ()
  53. #9  0x00007fff85f0e631 in RunCurrentEventLoopInMode ()
  54. #10 0x00007fff85f0e4b1 in ReceiveNextEventCommon ()
  55. #11 0x00007fff85f0e40c in BlockUntilNextEventMatchingListInMode ()
  56. #12 0x00007fff834b5eb2 in _DPSNextEvent ()
  57. #13 0x00007fff834b5801 in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] ()
  58. #14 0x00007fff8347b68f in -[NSApplication run] ()
  59. #15 0x00007fff834743b0 in NSApplicationMain ()
  60. #16 0x00000001000013f8 in ?? ()
View raw paste Reply