Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-27697

Crash/assert when expanding item in debugger locals

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • Qt Creator 8.0.0-beta1
    • Debugger
    • None
    • macOS

    Description

      I set a breakpoint in simple_test_app / testStdUniquePtrFoo(), debugged and expanded the "x" member.

      ASSERT: "rc <= 0xffff" in file /Users/ziller/Qt/6.3.0/macos/lib/QtCore.framework/Headers/qchar.h, line 115
      

      Always reproducible with MallocScribble=1

      Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
      0   libsystem_kernel.dylib        	       0x1b05e0db8 __pthread_kill + 8
      1   libsystem_pthread.dylib       	       0x1b0615ee0 pthread_kill + 288
      2   libsystem_c.dylib             	       0x1b0550340 abort + 168
      3   QtCore                        	       0x105fe9c8c qAbort() + 12
      4   QtCore                        	       0x105fed900 0x105fe0000 + 55552
      5   QtCore                        	       0x1062bb3c8 QMessageLogger::fatal(char const*, ...) const + 120
      6   QtCore                        	       0x1062bae5c qt_assert(char const*, char const*, int) + 60
      7   libDebugger.dylib             	       0x11acdcbb4 QChar::QChar(unsigned int) + 72 (qchar.h:115)
      8   libDebugger.dylib             	       0x11acdcb5c QChar::QChar(unsigned int) + 36 (qchar.h:115)
      9   libDebugger.dylib             	       0x11b1a96b0 Debugger::Internal::reformatCharacter(int, int, bool) + 80 (watchhandler.cpp:666)
      10  libDebugger.dylib             	       0x11b1a8848 Debugger::Internal::formattedValue(Debugger::Internal::WatchItem const*) + 1028 (watchhandler.cpp:736)
      11  libDebugger.dylib             	       0x11b195924 Debugger::Internal::displayValue(Debugger::Internal::WatchItem const*) + 56 (watchhandler.cpp:936)
      12  libDebugger.dylib             	       0x11b194ce4 Debugger::Internal::WatchModel::data(QModelIndex const&, int) const + 952 (watchhandler.cpp:1093)
      13  QtWidgets                     	       0x103c1ac0c QItemDelegate::paint(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const + 864
      14  QtWidgets                     	       0x103c65cd0 QTreeView::drawRow(QPainter*, QStyleOptionViewItem const&, QModelIndex const&) const + 2560
      15  QtWidgets                     	       0x103c63f44 QTreeView::drawTree(QPainter*, QRegion const&) const + 488
      16  QtWidgets                     	       0x103c63d14 QTreeView::paintEvent(QPaintEvent*) + 312
      17  QtWidgets                     	       0x1039cfb38 QWidget::event(QEvent*) + 132
      18  QtWidgets                     	       0x103a526cc QFrame::event(QEvent*) + 56
      19  QtWidgets                     	       0x103bf5368 QAbstractItemView::viewportEvent(QEvent*) + 972
      20  QtWidgets                     	       0x103c639f0 QTreeView::viewportEvent(QEvent*) + 328
      21  QtCore                        	       0x106048b6c QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) + 256
      22  QtWidgets                     	       0x103985310 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 240
      23  QtWidgets                     	       0x103986edc QApplication::notify(QObject*, QEvent*) + 3396
      24  QtCore                        	       0x10604886c QCoreApplication::notifyInternal2(QObject*, QEvent*) + 208
      25  QtWidgets                     	       0x1039c20b0 QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) + 3328
      26  QtWidgets                     	       0x1039df918 0x103978000 + 424216
      27  QtWidgets                     	       0x1039dfcbc 0x103978000 + 425148
      28  QtWidgets                     	       0x1039cffd4 QWidget::event(QEvent*) + 1312
      29  QtWidgets                     	       0x103ae8724 QMainWindow::event(QEvent*) + 248
      30  QtWidgets                     	       0x103985330 QApplicationPrivate::notify_helper(QObject*, QEvent*) + 272
      31  QtWidgets                     	       0x103986edc QApplication::notify(QObject*, QEvent*) + 3396
      32  QtCore                        	       0x10604886c QCoreApplication::notifyInternal2(QObject*, QEvent*) + 208
      33  QtCore                        	       0x106049af0 QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 828
      34  libqcocoa.dylib               	       0x10366fea4 0x103658000 + 97956
      35  libqcocoa.dylib               	       0x103670534 0x103658000 + 99636
      36  CoreFoundation                	       0x1b06e29a0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
      37  CoreFoundation                	       0x1b06e28ec __CFRunLoopDoSource0 + 208
      38  CoreFoundation                	       0x1b06e25ec __CFRunLoopDoSources0 + 268
      39  CoreFoundation                	       0x1b06e0f6c __CFRunLoopRun + 828
      40  CoreFoundation                	       0x1b06e0490 CFRunLoopRunSpecific + 600
      41  HIToolbox                     	       0x1b9300dd8 RunCurrentEventLoopInMode + 292
      42  HIToolbox                     	       0x1b9300b54 ReceiveNextEventCommon + 564
      43  HIToolbox                     	       0x1b9300908 _BlockUntilNextEventMatchingListInModeWithFilter + 72
      44  AppKit                        	       0x1b323fb2c _DPSNextEvent + 860
      45  AppKit                        	       0x1b323e424 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
      46  AppKit                        	       0x1b32305f0 -[NSApplication run] + 596
      47  libqcocoa.dylib               	       0x10366f41c 0x103658000 + 95260
      48  QtCore                        	       0x106051f28 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 544
      49  QtCore                        	       0x106048f48 QCoreApplication::exec() + 128
      50  Qt Creator                    	       0x10261e944 main + 11136 (main.cpp:790)
      51  dyld                          	       0x102741088 start + 516
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hjk hjk
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes