Vector35 / binaryninja-api

Public API, examples, documentation and issues for Binary Ninja
https://binary.ninja/
MIT License
917 stars 207 forks source link

Binary Ninja hangs when clicking on Number of Errors/Warnings in Statusbar #3073

Closed fabianfreyer closed 2 years ago

fabianfreyer commented 2 years ago

Version and Platform (required):

Bug Description: BinaryNinja hangs, after clicking the Error / Warning indicator in the Statusbar.

Steps To Reproduce: Please provide all steps required to reproduce the behavior:

  1. Open any BinaryView

  2. Make sure the statusbar error indicator shows at least one warning or error. If it doesn't, log an error from the python console

    log_error("never gonna give you up")
    image
  3. Click the error or warning indicator in the status bar

  4. Wait, indefinitely.

Expected Behavior:

Clicking them does not hang Binary Ninja.

Additional Information

Date/Time:        2022-04-18 22:47:39.607 +0200
End time:         2022-04-18 22:49:53.036 +0200
OS Version:       macOS 12.3 (Build 21E230)
Architecture:     x86_64h
Report Version:   35
Incident Identifier: 69FF7675-8B7D-4FFD-B046-FEF08886DCF1

Data Source:      Stackshots
Shared Cache:     341EA950-3974-372A-A140-92D2252FD87C slid base address 0x7ff8084ac000, slide 0x84ac000
Shared Cache:     30FED618-EC60-30E7-A40A-9310657F8D20 slid base address 0x7ff8274be000, slide 0x274be000

Command:          binaryninja
Path:             /Applications/Binary Ninja.app/Contents/MacOS/binaryninja
Identifier:       com.vector35.binaryninja
Version:          3.0.3355-dev (3.0.3355-dev)
Team ID:          6ZMTJ2Y7Q2
Architecture:     x86_64
Parent:           launchd [1]
PID:              10375
Time Since Fork:  406s

Event:            hang
Duration:         133.43s
Duration Sampled: 1.30s (process was unresponsive for 132 seconds before sampling)
Steps:            13 (100ms sampling interval)

Hardware model:   MacBookPro16,1
Active cpus:      16
HW page size:     4096
VM page size:     4096
Boot args:        chunklist-security-epoch=0 -chunklist-no-rev2-dev

Time Awake Since Boot: 366747s
Time Since Wake:  6894s

Fan speed:        1963 rpm
Total CPU Time:   1.429s (3.9G cycles, 3.3G instructions, 1.21c/i)
Advisory levels:  Battery -> 3, User -> 2, ThermalPressure -> 1, Combined -> 2
Free disk space:  657.51 GB/3727.07 GB, low space threshold 3072 MB

--------------------------------------------------
Timeline format: stacks are sorted chronologically
Use -i and -heavy to re-report with count sorting
--------------------------------------------------

Heaviest stack for the main thread of the target process:
  13  start + 462 (dyld + 21790) [0x10a36351e]
  13  ??? (binaryninja + 209676) [0x106fe030c]
  13  QCoreApplication::exec() + 133 (QtCore + 445253) [0x10b116b45]
  13  QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 486 (QtCore + 483142) [0x10b11ff46]
  13  QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2252 (libqcocoa.dylib + 104876) [0x108e9e9ac]
  13  -[NSApplication run] + 586 (AppKit + 193337) [0x7ff80b2ad339]
  13  -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394 (AppKit + 248970) [0x7ff80b2bac8a]
  13  _DPSNextEvent + 927 (AppKit + 255437) [0x7ff80b2bc5cd]
  13  _BlockUntilNextEventMatchingListInModeWithFilter + 70 (HIToolbox + 194533) [0x7ff81151c7e5]
  13  ReceiveNextEventCommon + 594 (HIToolbox + 195146) [0x7ff81151ca4a]
  13  RunCurrentEventLoopInMode + 292 (HIToolbox + 195814) [0x7ff81151cce6]
  13  CFRunLoopRunSpecific + 562 (CoreFoundation + 513964) [0x7ff8088957ac]
  13  __CFRunLoopRun + 892 (CoreFoundation + 516584) [0x7ff8088961e8]
  13  __CFRunLoopDoSources0 + 242 (CoreFoundation + 522189) [0x7ff8088977cd]
  13  __CFRunLoopDoSource0 + 180 (CoreFoundation + 522835) [0x7ff808897a53]
  13  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 (CoreFoundation + 522987) [0x7ff808897aeb]
  13  QCocoaEventDispatcherPrivate::activateTimersSourceCallback(void*) + 21 (libqcocoa.dylib + 101797) [0x108e9dda5]
  13  QTimerInfoList::activateTimers() + 1041 (QtCore + 2071217) [0x10b2a3ab1]
  13  QCoreApplication::notifyInternal2(QObject*, QEvent*) + 170 (QtCore + 443690) [0x10b11652a]
  13  QApplication::notify(QObject*, QEvent*) + 502 (QtWidgets + 54438) [0x1082534a6]
  13  QApplicationPrivate::notify_helper(QObject*, QEvent*) + 247 (QtWidgets + 50535) [0x108252567]
  13  QObject::event(QEvent*) + 109 (QtCore + 741805) [0x10b15f1ad]
  13  QTimer::timerEvent(QTimerEvent*) + 199 (QtCore + 859671) [0x10b17be17]
  13  void doActivate<false>(QObject*, int, void**) + 813 (QtCore + 774205) [0x10b16703d]
  13  LogStatus::checkForErrors() + 986 (libbinaryninjaui.1.dylib + 1803914) [0x10915368a]
  13  LogStatus::clearIndicators(bool, bool) + 231 (libbinaryninjaui.1.dylib + 1804295) [0x109153807]
  13  QWidgetPrivate::setVisible(bool) + 375 (QtWidgets + 394231) [0x1082a63f7]
  13  QWidgetPrivate::hide_helper() + 487 (QtWidgets + 393383) [0x1082a60a7]
  13  QWidget::focusNextPrevChild(bool) + 277 (QtWidgets + 379781) [0x1082a2b85]
  13  QWidget::setFocus(Qt::FocusReason) + 616 (QtWidgets + 378264) [0x1082a2598]
  13  QApplicationPrivate::setFocusWidget(QWidget*, Qt::FocusReason) + 294 (QtWidgets + 42294) [0x108250536]
  13  QCoreApplication::notifyInternal2(QObject*, QEvent*) + 170 (QtCore + 443690) [0x10b11652a]
  13  QApplication::notify(QObject*, QEvent*) + 502 (QtWidgets + 54438) [0x1082534a6]
  13  QApplicationPrivate::notify_helper(QObject*, QEvent*) + 247 (QtWidgets + 50535) [0x108252567]
  13  QToolButton::event(QEvent*) + 228 (QtWidgets + 2383668) [0x10848bf34]
  13  QWidget::event(QEvent*) + 1029 (QtWidgets + 396581) [0x1082a6d25]
  13  QAbstractButton::focusOutEvent(QFocusEvent*) + 61 (QtWidgets + 1285933) [0x10837ff2d]
  13  QAbstractButtonPrivate::emitReleased() + 60 (QtWidgets + 1280236) [0x10837e8ec]
  13  void doActivate<false>(QObject*, int, void**) + 813 (QtCore + 774205) [0x10b16703d]
  13  LogStatus::clearStatus(bool) + 42 (libbinaryninjaui.1.dylib + 1806506) [0x1091540aa]
  13  std::__1::mutex::lock() + 9 (libc++.1.dylib + 54969) [0x7ff8087316b9]
  13  _pthread_mutex_firstfit_lock_slow + 205 (libsystem_pthread.dylib + 7355) [0x7ff8087cccbb]
  13  __psynch_mutexwait + 10 (libsystem_kernel.dylib + 15314) [0x7ff808796bd2]
 *13  psynch_mtxcontinue + 0 (pthread + 11285) [0xffffff8003730c15]

Process:          binaryninja (Binary Ninja) [10375] [unique pid 606202]
UUID:             AF7D89CA-F84B-372F-8B81-0F29EA7253BA
Path:             /Applications/Binary Ninja.app/Contents/MacOS/binaryninja
Identifier:       com.vector35.binaryninja
Version:          3.0.3355-dev (3.0.3355-dev)
Team ID:          6ZMTJ2Y7Q2
Shared Cache:     341EA950-3974-372A-A140-92D2252FD87C slid base address 0x7ff8084ac000, slide 0x84ac000
Architecture:     x86_64
Parent:           launchd [1]
UID:              501
Footprint:        260.59 MB
Time Since Fork:  406s
Num samples:      13 (1-13)
CPU Time:         0.006s (11.4M cycles, 3.7M instructions, 3.06c/i)
Note:             Unresponsive for 132 seconds before sampling
Note:             2 idle work queue threads omitted

  Thread 0x6b8903    DispatchQueue "com.apple.main-thread"(1)    13 samples (1-13)    priority 47 (base 47)
  <process frontmost, thread QoS user interactive (requested user interactive), process unclamped, process received importance donation from WindowServer [182], IO tier 0>
  13  start + 462 (dyld + 21790) [0x10a36351e] 1-13
    13  ??? (binaryninja + 209676) [0x106fe030c] 1-13
      13  QCoreApplication::exec() + 133 (QtCore + 445253) [0x10b116b45] 1-13
        13  QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 486 (QtCore + 483142) [0x10b11ff46] 1-13
          13  QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 2252 (libqcocoa.dylib + 104876) [0x108e9e9ac] 1-13
            13  -[NSApplication run] + 586 (AppKit + 193337) [0x7ff80b2ad339] 1-13
              13  -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1394 (AppKit + 248970) [0x7ff80b2bac8a] 1-13
                13  _DPSNextEvent + 927 (AppKit + 255437) [0x7ff80b2bc5cd] 1-13
                  13  _BlockUntilNextEventMatchingListInModeWithFilter + 70 (HIToolbox + 194533) [0x7ff81151c7e5] 1-13
                    13  ReceiveNextEventCommon + 594 (HIToolbox + 195146) [0x7ff81151ca4a] 1-13
                      13  RunCurrentEventLoopInMode + 292 (HIToolbox + 195814) [0x7ff81151cce6] 1-13
                        13  CFRunLoopRunSpecific + 562 (CoreFoundation + 513964) [0x7ff8088957ac] 1-13
                          13  __CFRunLoopRun + 892 (CoreFoundation + 516584) [0x7ff8088961e8] 1-13
                            13  __CFRunLoopDoSources0 + 242 (CoreFoundation + 522189) [0x7ff8088977cd] 1-13
                              13  __CFRunLoopDoSource0 + 180 (CoreFoundation + 522835) [0x7ff808897a53] 1-13
                                13  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 (CoreFoundation + 522987) [0x7ff808897aeb] 1-13
                                  13  QCocoaEventDispatcherPrivate::activateTimersSourceCallback(void*) + 21 (libqcocoa.dylib + 101797) [0x108e9dda5] 1-13
                                    13  QTimerInfoList::activateTimers() + 1041 (QtCore + 2071217) [0x10b2a3ab1] 1-13
                                      13  QCoreApplication::notifyInternal2(QObject*, QEvent*) + 170 (QtCore + 443690) [0x10b11652a] 1-13
                                        13  QApplication::notify(QObject*, QEvent*) + 502 (QtWidgets + 54438) [0x1082534a6] 1-13
                                          13  QApplicationPrivate::notify_helper(QObject*, QEvent*) + 247 (QtWidgets + 50535) [0x108252567] 1-13
                                            13  QObject::event(QEvent*) + 109 (QtCore + 741805) [0x10b15f1ad] 1-13
                                              13  QTimer::timerEvent(QTimerEvent*) + 199 (QtCore + 859671) [0x10b17be17] 1-13
                                                13  void doActivate<false>(QObject*, int, void**) + 813 (QtCore + 774205) [0x10b16703d] 1-13
                                                  13  LogStatus::checkForErrors() + 986 (libbinaryninjaui.1.dylib + 1803914) [0x10915368a] 1-13
                                                    13  LogStatus::clearIndicators(bool, bool) + 231 (libbinaryninjaui.1.dylib + 1804295) [0x109153807] 1-13
                                                      13  QWidgetPrivate::setVisible(bool) + 375 (QtWidgets + 394231) [0x1082a63f7] 1-13
                                                        13  QWidgetPrivate::hide_helper() + 487 (QtWidgets + 393383) [0x1082a60a7] 1-13
                                                          13  QWidget::focusNextPrevChild(bool) + 277 (QtWidgets + 379781) [0x1082a2b85] 1-13
                                                            13  QWidget::setFocus(Qt::FocusReason) + 616 (QtWidgets + 378264) [0x1082a2598] 1-13
                                                              13  QApplicationPrivate::setFocusWidget(QWidget*, Qt::FocusReason) + 294 (QtWidgets + 42294) [0x108250536] 1-13
                                                                13  QCoreApplication::notifyInternal2(QObject*, QEvent*) + 170 (QtCore + 443690) [0x10b11652a] 1-13
                                                                  13  QApplication::notify(QObject*, QEvent*) + 502 (QtWidgets + 54438) [0x1082534a6] 1-13
                                                                    13  QApplicationPrivate::notify_helper(QObject*, QEvent*) + 247 (QtWidgets + 50535) [0x108252567] 1-13
                                                                      13  QToolButton::event(QEvent*) + 228 (QtWidgets + 2383668) [0x10848bf34] 1-13
                                                                        13  QWidget::event(QEvent*) + 1029 (QtWidgets + 396581) [0x1082a6d25] 1-13
                                                                          13  QAbstractButton::focusOutEvent(QFocusEvent*) + 61 (QtWidgets + 1285933) [0x10837ff2d] 1-13
                                                                            13  QAbstractButtonPrivate::emitReleased() + 60 (QtWidgets + 1280236) [0x10837e8ec] 1-13
                                                                              13  void doActivate<false>(QObject*, int, void**) + 813 (QtCore + 774205) [0x10b16703d] 1-13
                                                                                13  LogStatus::clearStatus(bool) + 42 (libbinaryninjaui.1.dylib + 1806506) [0x1091540aa] 1-13
                                                                                  13  std::__1::mutex::lock() + 9 (libc++.1.dylib + 54969) [0x7ff8087316b9] 1-13
                                                                                    13  _pthread_mutex_firstfit_lock_slow + 205 (libsystem_pthread.dylib + 7355) [0x7ff8087cccbb] 1-13
                                                                                      13  __psynch_mutexwait + 10 (libsystem_kernel.dylib + 15314) [0x7ff808796bd2] 1-13
                                                                                       *13  psynch_mtxcontinue + 0 (pthread + 11285) [0xffffff8003730c15] (blocked by turnstile waiting for this thread) 1-13

  Thread 0x6b891e    13 samples (1-13)    priority 31 (base 31)
  <process frontmost, thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [182], IO tier 0>
  13  ??? [0x20a000000000] 1-13
    13  gomp_sem_wait + 43 (libgomp.1.dylib + 77739) [0x11a55efab] 1-13
      13  __psynch_cvwait + 10 (libsystem_kernel.dylib + 17386) [0x7ff8087973ea] 1-13
       *13  psynch_cvcontinue + 0 (pthread + 20893) [0xffffff800373319d] 1-13

  Thread 0x6b891f    13 samples (1-13)    priority 31 (base 31)
  <process frontmost, thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [182], IO tier 0>
  13  ??? [0x20a000000000] 1-13
    13  gomp_sem_wait + 43 (libgomp.1.dylib + 77739) [0x11a55efab] 1-13
      13  __psynch_cvwait + 10 (libsystem_kernel.dylib + 17386) [0x7ff8087973ea] 1-13
       *13  psynch_cvcontinue + 0 (pthread + 20893) [0xffffff800373319d] 1-13

  Thread 0x6b8920    Thread name "TextBrowserDownloadThread"    13 samples (1-13)    priority 31 (base 31)
  <process frontmost, thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [182], IO tier 0>
  13  thread_start + 15 (libsystem_pthread.dylib + 8043) [0x7ff8087ccf6b] 1-13
    13  _pthread_start + 125 (libsystem_pthread.dylib + 25825) [0x7ff8087d14e1] 1-13
      13  QThreadPrivate::start(void*) + 323 (QtCore + 2075539) [0x10b2a4b93] 1-13
        13  ??? (libbinaryninjaui.1.dylib + 2778125) [0x10924140d] 1-13
          13  ??? (libbinaryninjaui.1.dylib + 2772104) [0x10923fc88] 1-13
            13  QWaitCondition::wait(QMutex*, QDeadlineTimer) + 94 (QtCore + 2117998) [0x10b2af16e] 1-13
              13  QWaitConditionPrivate::wait(QDeadlineTimer) + 59 (QtCore + 2118139) [0x10b2af1fb] 1-13
                13  __psynch_cvwait + 10 (libsystem_kernel.dylib + 17386) [0x7ff8087973ea] 1-13
                 *13  psynch_cvcontinue + 0 (pthread + 20893) [0xffffff800373319d] 1-13

  Thread 0x6b8921    Thread name "TextBrowserDownloadThread"    13 samples (1-13)    priority 31 (base 31)
  <process frontmost, thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [182], IO tier 0>
  13  thread_start + 15 (libsystem_pthread.dylib + 8043) [0x7ff8087ccf6b] 1-13
    13  _pthread_start + 125 (libsystem_pthread.dylib + 25825) [0x7ff8087d14e1] 1-13
      13  QThreadPrivate::start(void*) + 323 (QtCore + 2075539) [0x10b2a4b93] 1-13
        13  ??? (libbinaryninjaui.1.dylib + 2778125) [0x10924140d] 1-13
          13  ??? (libbinaryninjaui.1.dylib + 2772104) [0x10923fc88] 1-13
            13  QWaitCondition::wait(QMutex*, QDeadlineTimer) + 94 (QtCore + 2117998) [0x10b2af16e] 1-13
              13  QWaitConditionPrivate::wait(QDeadlineTimer) + 59 (QtCore + 2118139) [0x10b2af1fb] 1-13
                13  __psynch_cvwait + 10 (libsystem_kernel.dylib + 17386) [0x7ff8087973ea] 1-13
                 *13  psynch_cvcontinue + 0 (pthread + 20893) [0xffffff800373319d] 1-13

  Thread 0x6b8922    Thread name "TextBrowserDownloadThread"    13 samples (1-13)    priority 31 (base 31)
  <process frontmost, thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [182], IO tier 0>
  13  thread_start + 15 (libsystem_pthread.dylib + 8043) [0x7ff8087ccf6b] 1-13
    13  _pthread_start + 125 (libsystem_pthread.dylib + 25825) [0x7ff8087d14e1] 1-13
      13  QThreadPrivate::start(void*) + 323 (QtCore + 2075539) [0x10b2a4b93] 1-13
        13  ??? (libbinaryninjaui.1.dylib + 2778125) [0x10924140d] 1-13
          13  ??? (libbinaryninjaui.1.dylib + 2772104) [0x10923fc88] 1-13
            13  QWaitCondition::wait(QMutex*, QDeadlineTimer) + 94 (QtCore + 2117998) [0x10b2af16e] 1-13
              13  QWaitConditionPrivate::wait(QDeadlineTimer) + 59 (QtCore + 2118139) [0x10b2af1fb] 1-13
                13  __psynch_cvwait + 10 (libsystem_kernel.dylib + 17386) [0x7ff8087973ea] 1-13
                 *13  psynch_cvcontinue + 0 (pthread + 20893) [0xffffff800373319d] 1-13

  Thread 0x6b8923    Thread name "TextBrowserDownloadThread"    13 samples (1-13)    priority 31 (base 31)
  <process frontmost, thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [182], IO tier 0>
  13  thread_start + 15 (libsystem_pthread.dylib + 8043) [0x7ff8087ccf6b] 1-13
    13  _pthread_start + 125 (libsystem_pthread.dylib + 25825) [0x7ff8087d14e1] 1-13
      13  QThreadPrivate::start(void*) + 323 (QtCore + 2075539) [0x10b2a4b93] 1-13
        13  ??? (libbinaryninjaui.1.dylib + 2778125) [0x10924140d] 1-13
          13  ??? (libbinaryninjaui.1.dylib + 2772104) [0x10923fc88] 1-13
            13  QWaitCondition::wait(QMutex*, QDeadlineTimer) + 94 (QtCore + 2117998) [0x10b2af16e] 1-13
              13  QWaitConditionPrivate::wait(QDeadlineTimer) + 59 (QtCore + 2118139) [0x10b2af1fb] 1-13
                13  __psynch_cvwait + 10 (libsystem_kernel.dylib + 17386) [0x7ff8087973ea] 1-13
                 *13  psynch_cvcontinue + 0 (pthread + 20893) [0xffffff800373319d] 1-13

  Thread 0x6b8929    13 samples (1-13)    priority 31 (base 31)
  <process frontmost, thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [182], IO tier 0>
  13  thread_start + 15 (libsystem_pthread.dylib + 8043) [0x7ff8087ccf6b] 1-13
    13  _pthread_start + 125 (libsystem_pthread.dylib + 25825) [0x7ff8087d14e1] 1-13
      13  pythread_wrapper + 36 (Python + 1770715) [0x1153934db] 1-13
        13  t_bootstrap + 119 (Python + 2147731) [0x1153ef593] 1-13
          13  method_vectorcall + 481 (Python + 403340) [0x11524578c] 1-13
            13  _PyFunction_Vectorcall + 192 (Python + 391777) [0x115242a61] 1-13
              13  _PyEval_EvalFrameDefault + 23803 (Python + 1370719) [0x115331a5f] 1-13
                13  call_function + 168 (Python + 1401604) [0x115339304] 1-13
                  13  _PyFunction_Vectorcall + 192 (Python + 391777) [0x115242a61] 1-13
                    13  _PyEval_EvalFrameDefault + 23803 (Python + 1370719) [0x115331a5f] 1-13
                      13  call_function + 168 (Python + 1401604) [0x115339304] 1-13
                        13  _PyFunction_Vectorcall + 192 (Python + 391777) [0x115242a61] 1-13
                          13  _PyEval_EvalFrameDefault + 23803 (Python + 1370719) [0x115331a5f] 1-13
                            13  call_function + 168 (Python + 1401604) [0x115339304] 1-13
                              13  _PyFunction_Vectorcall + 373 (Python + 391958) [0x115242b16] 1-13
                                13  _PyEval_EvalCode + 411 (Python + 1342570) [0x11532ac6a] 1-13
                                  13  _PyEval_EvalFrameDefault + 23803 (Python + 1370719) [0x115331a5f] 1-13
                                    13  call_function + 168 (Python + 1401604) [0x115339304] 1-13
                                      13  _PyFunction_Vectorcall + 373 (Python + 391958) [0x115242b16] 1-13
                                        13  _PyEval_EvalCode + 411 (Python + 1342570) [0x11532ac6a] 1-13
                                          13  _PyEval_EvalFrameDefault + 23803 (Python + 1370719) [0x115331a5f] 1-13
                                            13  call_function + 168 (Python + 1401604) [0x115339304] 1-13
                                              13  method_vectorcall_VARARGS_KEYWORDS + 165 (Python + 439887) [0x11524e64f] 1-13
                                                13  lock_PyThread_acquire_lock + 44 (Python + 2150296) [0x1153eff98] 1-13
                                                  13  acquire_timed + 264 (Python + 2149875) [0x1153efdf3] 1-13
                                                    13  PyThread_acquire_lock_timed + 340 (Python + 1771566) [0x11539382e] 1-13
                                                      13  __psynch_cvwait + 10 (libsystem_kernel.dylib + 17386) [0x7ff8087973ea] 1-13
                                                       *13  psynch_cvcontinue + 0 (pthread + 20893) [0xffffff800373319d] 1-13

  Thread 0x6b894f    Thread name "com.apple.NSEventThread"    13 samples (1-13)    priority 47 (base 47)    cpu time 0.005s (10.7M cycles, 3.5M instructions, 3.10c/i)
  <process frontmost, thread QoS user interactive (requested user interactive), process unclamped, process received importance donation from WindowServer [182], IO tier 0>
  13  thread_start + 15 (libsystem_pthread.dylib + 8043) [0x7ff8087ccf6b] 1-13
    13  _pthread_start + 125 (libsystem_pthread.dylib + 25825) [0x7ff8087d14e1] 1-13
      13  _NSEventThread + 132 (AppKit + 1753070) [0x7ff80b429fee] 1-13
        13  CFRunLoopRunSpecific + 562 (CoreFoundation + 513964) [0x7ff8088957ac] 1-13
          13  __CFRunLoopRun + 1276 (CoreFoundation + 516968) [0x7ff808896368] 1-13
            13  __CFRunLoopServiceMachPort + 319 (CoreFoundation + 523485) [0x7ff808897cdd] 1-13
              13  mach_msg_trap + 10 (libsystem_kernel.dylib + 6522) [0x7ff80879497a] 1-13
               *13  ipc_mqueue_receive_continue + 0 (kernel + 343872) [0xffffff8000263f40] 1-13

  Binary Images:
           0x106fad000 -        0x1080c0fff  com.vector35.binaryninja 3.0.3355-dev (3.0.3355-dev)                         <AF7D89CA-F84B-372F-8B81-0F29EA7253BA>  /Applications/Binary Ninja.app/Contents/MacOS/binaryninja
           0x108246000 -        0x10874dfff  org.qt-project.QtWidgets 6.3 (6.3.0)                                         <8DD7EC9B-DD47-3654-B31B-8C5380C6BFF0>  /Applications/Binary Ninja.app/Contents/Frameworks/QtWidgets.framework/Versions/A/QtWidgets
           0x108e85000 -        0x108f34fff  libqcocoa.dylib (0)                                                          <1D7FD791-156C-3428-BBC2-3872874E8019>  /Applications/Binary Ninja.app/Contents/MacOS/qt/platforms/libqcocoa.dylib
           0x108f9b000 -        0x109566fff  libbinaryninjaui.1.dylib (0)                                                 <0C44CB97-9F4A-3CC2-ADA5-4FA871BF40A9>  /Applications/Binary Ninja.app/Contents/MacOS/libbinaryninjaui.1.dylib
           0x10a35e000 -        0x10a3e1fff  dyld (955)                                                                   <DD9E80DE-FB3B-349B-96A4-46874AD34D11>  /usr/lib/dyld
           0x10b0aa000 -        0x10b5b9fff  org.qt-project.QtCore 6.3 (6.3.0)                                            <75787407-A927-3A92-8AD3-7BA53961D61F>  /Applications/Binary Ninja.app/Contents/Frameworks/QtCore.framework/Versions/A/QtCore
           0x1151e3000 -        0x115502fff  org.python.python 3.9.10, (c) 2001-2021 Python Software Foundation. (3.9.10) <5254A0CD-45BC-369B-830E-7211BCF9AB7E>  /usr/local/Cellar/python@3.9/3.9.10/Frameworks/Python.framework/Versions/3.9/Python
           0x11a54c000 -        0x11a58ffff  libgomp.1.dylib (0)                                                          <C803C7F0-1E14-3DE1-B0C2-98EB2487C61B>  /usr/local/Cellar/gcc/11.2.0_3/lib/gcc/11/libgomp.1.dylib
        0x7ff808724000 -     0x7ff80877cfff  libc++.1.dylib (1300.23)                                                     <94AF60F2-7351-357D-8D33-D1B719C36A95>  /usr/lib/libc++.1.dylib
        0x7ff808793000 -     0x7ff8087cafff  libsystem_kernel.dylib (8020.101.4)                                          <26A59789-B846-3ED4-96DC-8DBEF3C0C8E7>  /usr/lib/system/libsystem_kernel.dylib
        0x7ff8087cb000 -     0x7ff8087d6fff  libsystem_pthread.dylib (486.100.11)                                         <2F6C275D-7E14-3D31-A924-E1BB41D2415F>  /usr/lib/system/libsystem_pthread.dylib
        0x7ff808818000 -     0x7ff808d19fff  com.apple.CoreFoundation 6.9 (1858.112)                                      <743F0CB7-E962-3E42-8653-7BD141129561>  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        0x7ff80b27e000 -     0x7ff80c10bfff  com.apple.AppKit 6.9 (2113.40.126)                                           <36EC7E1B-AB12-377B-B3EB-FFC5BAABEE9F>  /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
        0x7ff8114ed000 -     0x7ff8117e0fff  com.apple.HIToolbox 2.1.1 (1113.9)                                           <7761967D-A138-33B6-9E3F-5C5420A2EEFF>  /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
   *0xffffff8000210000 - 0xffffff8000c0ffff  kernel (8020.101.4)                                                          <9619904E-EA6D-3D08-89C4-B1C0451D39B8>  /System/Library/Kernels/kernel
   *0xffffff800372e000 - 0xffffff8003735fff  com.apple.kec.pthread 1.0 (1)                                                <99AA4B47-5E55-335E-B78C-FE8D7A6445E2>  /System/Library/Extensions/pthread.kext/Contents/MacOS/pthread
plafosse commented 2 years ago

I'm guessing this is due to a plugin logging something at an unexpected time. We still shouldn't hang, and I think I have a fix, but I can't repro this.

plafosse commented 2 years ago

Fixed in 3.0.3375