https://bugs.kde.org/show_bug.cgi?id=518496

            Bug ID: 518496
           Summary: Kate crashes when viewing commit
    Classification: Applications
           Product: kate
      Version First Git
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

- clone qtdeclarative
- open src/qml/qml/qqmlcomponent.cpp in Kate
- Click Show Git History
- In the history sidebar, click on "QtQml: Do not instantiate components with
missing required properties"

=================================================================
==179981==ERROR: AddressSanitizer: global-buffer-overflow on address
0x7fe3e8ce8bde at pc 0x7fe3f1966b40 bp 0x7fff4d967fc0 sp 0x7fff4d967fb8
READ of size 2 at 0x7fe3e8ce8bde thread T0
    #0 0x7fe3f1966b3f in comparesEqual(QChar const&, QChar const&)
/home/nico/kde-qtdev/usr/include/QtCore/qchar.h:668
    #1 0x7fe3f1966bd7 in operator==(QChar const&, QChar const&)
/home/nico/kde-qtdev/usr/include/QtCore/qchar.h:672
    #2 0x7fe3f1d206d2 in inlineDiff
/home/nico/kde-qtdev/src/kate/apps/lib/diff/diffwidget.cpp:701
    #3 0x7fe3f1d211dc in markInlineDiffs
/home/nico/kde-qtdev/src/kate/apps/lib/diff/diffwidget.cpp:752
    #4 0x7fe3f1d254f9 in DiffWidget::parseAndShowDiff(QByteArray const&)
/home/nico/kde-qtdev/src/kate/apps/lib/diff/diffwidget.cpp:914
    #5 0x7fe3f1d2cb53 in DiffWidget::openDiff(QByteArray const&)
/home/nico/kde-qtdev/src/kate/apps/lib/diff/diffwidget.cpp:1223
    #6 0x7fe3f1d15363 in DiffWidgetManager::openDiff(QByteArray const&,
DiffParams, KTextEditor::MainWindow*)
/home/nico/kde-qtdev/src/kate/apps/lib/diff/diffwidget.cpp:94
    #7 0x7fe3f1cf92c1 in Utils::showDiff(QByteArray const&, DiffParams const&,
KTextEditor::MainWindow*)
/home/nico/kde-qtdev/src/kate/apps/lib/ktexteditor_utils.cpp:310
    #8 0x7fe3f1d8b9ef in FileHistoryWidget::itemClicked(QModelIndex const&)
/home/nico/kde-qtdev/src/kate/apps/lib/filehistorywidget.cpp:679
    #9 0x7fe3f1da5a83 in QtPrivate::FunctorCall<std::integer_sequence<unsigned
long, 0ul>, QtPrivate::List<QModelIndex const&>, void, void
(FileHistoryWidget::*)(QModelIndex const&)>::call(void
(FileHistoryWidget::*)(QModelIndex const&), FileHistoryWidget*,
void**)::{lambda()#1}::operator()() const
/home/nico/kde-qtdev/usr/include/QtCore/qobjectdefs_impl.h:128
    #10 0x7fe3f1da6502 in void QtPrivate::FunctorCallBase::call_internal<void,
QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>,
QtPrivate::List<QModelIndex const&>, void, void
(FileHistoryWidget::*)(QModelIndex const&)>::call(void
(FileHistoryWidget::*)(QModelIndex const&), FileHistoryWidget*,
void**)::{lambda()#1}>(void**,
QtPrivate::FunctorCall<std::integer_sequence<unsigned long, 0ul>,
QtPrivate::List<QModelIndex const&>, void, void
(FileHistoryWidget::*)(QModelIndex const&)>::call(void
(FileHistoryWidget::*)(QModelIndex const&), FileHistoryWidget*,
void**)::{lambda()#1}&&)
/home/nico/kde-qtdev/usr/include/QtCore/qobjectdefs_impl.h:66
    #11 0x7fe3f1da5c3b in QtPrivate::FunctorCall<std::integer_sequence<unsigned
long, 0ul>, QtPrivate::List<QModelIndex const&>, void, void
(FileHistoryWidget::*)(QModelIndex const&)>::call(void
(FileHistoryWidget::*)(QModelIndex const&), FileHistoryWidget*, void**)
/home/nico/kde-qtdev/usr/include/QtCore/qobjectdefs_impl.h:127
    #12 0x7fe3f1da448d in void QtPrivate::FunctionPointer<void
(FileHistoryWidget::*)(QModelIndex const&)>::call<QtPrivate::List<QModelIndex
const&>, void>(void (FileHistoryWidget::*)(QModelIndex const&),
FileHistoryWidget*, void**)
/home/nico/kde-qtdev/usr/include/QtCore/qobjectdefs_impl.h:175
    #13 0x7fe3f1da2855 in QtPrivate::QCallableObject<void
(FileHistoryWidget::*)(QModelIndex const&), QtPrivate::List<QModelIndex
const&>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*)
/home/nico/kde-qtdev/usr/include/QtCore/qobjectdefs_impl.h:546
    #14 0x7fe3e83347a2 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobjectdefs_impl.h:462
    #15 0x7fe3e83347a2 in void doActivate<false>(QObject*, int, void**)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobject.cpp:4372
    #16 0x7fe3e831674a in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobject.cpp:4432
    #17 0x7fe3ec6c2300 in void QMetaObject::activate<void,
QModelIndex>(QObject*, QMetaObject const*, int, void*, QModelIndex const&)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qobjectdefs.h:320
    #18 0x7fe3ec6c2300 in QAbstractItemView::clicked(QModelIndex const&)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/Widgets_autogen/include/moc_qabstractitemview.cpp:559
    #19 0x7fe3ec6d48de in QAbstractItemView::mouseReleaseEvent(QMouseEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/itemviews/qabstractitemview.cpp:2016
    #20 0x7fe3ec7e083f in QListView::mouseReleaseEvent(QMouseEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/itemviews/qlistview.cpp:777
    #21 0x7fe3ebdf3591 in QWidget::event(QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qwidget.cpp:9029
    #22 0x7fe3ebf2ca16 in QFrame::event(QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/widgets/qframe.cpp:522
    #23 0x7fe3ebf239d1 in QAbstractScrollArea::viewportEvent(QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/widgets/qabstractscrollarea.cpp:1068
    #24 0x7fe3ec6fa386 in QAbstractItemView::viewportEvent(QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/itemviews/qabstractitemview.cpp:1825
    #25 0x7fe3ebf2521f in QAbstractScrollAreaPrivate::viewportEvent(QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/widgets/qabstractscrollarea_p.h:75
    #26 0x7fe3ebf2521f in QAbstractScrollAreaFilter::eventFilter(QObject*,
QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/widgets/qabstractscrollarea_p.h:88
    #27 0x7fe3e81f0914 in
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1250
    #28 0x7fe3ebc920b8 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:3270
    #29 0x7fe3ebcaab56 in QApplication::notify(QObject*, QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:2756
    #30 0x7fe3e81f11b7 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1113
    #31 0x7fe3e81f1430 in QCoreApplication::sendSpontaneousEvent(QObject*,
QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1567
    #32 0x7fe3ebca780e in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:2355
    #33 0x7fe3ebe47fa8 in QWidgetWindow::handleMouseEvent(QMouseEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qwidgetwindow.cpp:688
    #34 0x7fe3ebe4c451 in QWidgetWindow::event(QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qwidgetwindow.cpp:293
    #35 0x7fe3ebc920f4 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:3276
    #36 0x7fe3ebcaea84 in QApplication::notify(QObject*, QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:3226
    #37 0x7fe3e81f11b7 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1113
    #38 0x7fe3e81f1430 in QCoreApplication::sendSpontaneousEvent(QObject*,
QEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1567
    #39 0x7fe3e9ab6e79 in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/gui/kernel/qguiapplication.cpp:2513
    #40 0x7fe3e9abdb9b in
QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*)
/home/nico/workspace/qt6-dev/qtbase/src/gui/kernel/qguiapplication.cpp:2237
    #41 0x7fe3e9c26e52 in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
/home/nico/workspace/qt6-dev/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1118
    #42 0x7fe3eaae58f7 in userEventSourceDispatch
/home/nico/workspace/qt6-dev/qtbase/src/gui/platform/unix/qeventdispatcher_glib.cpp:39
    #43 0x7fe3e4b06b75 in g_main_dispatch ../glib/gmain.c:3565
    #44 0x7fe3e4b06b75 in g_main_context_dispatch_unlocked ../glib/gmain.c:4425
    #45 0x7fe3e4b09a67 in g_main_context_iterate_unlocked ../glib/gmain.c:4490
    #46 0x7fe3e4b0a2ab in g_main_context_iteration ../glib/gmain.c:4556
    #47 0x7fe3e8b34771 in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:400
    #48 0x7fe3eaae5d47 in
QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
/home/nico/workspace/qt6-dev/qtbase/src/gui/platform/unix/qeventdispatcher_glib.cpp:90
    #49 0x7fe3e821268d in
QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qeventloop.cpp:109
    #50 0x7fe3e8213d0c in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qeventloop.cpp:198
    #51 0x7fe3e81fc436 in QCoreApplication::exec()
/home/nico/workspace/qt6-dev/qtbase/src/corelib/kernel/qcoreapplication.cpp:1456
    #52 0x7fe3e9a8a3a3 in QGuiApplication::exec()
/home/nico/workspace/qt6-dev/qtbase/src/gui/kernel/qguiapplication.cpp:2010
    #53 0x7fe3ebc8ed42 in QApplication::exec()
/home/nico/workspace/qt6-dev/qtbase/src/widgets/kernel/qapplication.cpp:2546
    #54 0x000000432290 in main
/home/nico/kde-qtdev/src/kate/apps/kate/main.cpp:608
    #55 0x7fe3e762b2fa in __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:58
    #56 0x7fe3e762b3ca in __libc_start_main_impl ../csu/libc-start.c:360
    #57 0x00000040a184 in _start ../sysdeps/x86_64/start.S:115

0x7fe3e8ce8bde is located 2 bytes before global variable '_empty' defined in
'/home/nico/workspace/qt6-dev/qtbase/src/corelib/text/qstring.cpp:76:16'
(0x7fe3e8ce8be0) of size 2
0x7fe3e8ce8bde is located 52 bytes after global variable
'supportUnicodeDigitValuesEnvVar' defined in
'/home/nico/workspace/qt6-dev/qtbase/src/corelib/text/qstring.cpp:1597:27'
(0x7fe3e8ce8b80) of size 42
  'supportUnicodeDigitValuesEnvVar' is ascii string
'QT_USE_UNICODE_DIGIT_VALUES_IN_STRING_ARG'
SUMMARY: AddressSanitizer: global-buffer-overflow
/home/nico/kde-qtdev/usr/include/QtCore/qchar.h:668 in comparesEqual(QChar
const&, QChar const&)
Shadow bytes around the buggy address:
  0x7fe3e8ce8900: 00 f9 f9 f9 f9 f9 f9 f9 00 f9 f9 f9 f9 f9 f9 f9
  0x7fe3e8ce8980: 00 07 f9 f9 f9 f9 f9 f9 00 00 00 00 00 02 f9 f9
  0x7fe3e8ce8a00: f9 f9 f9 f9 00 00 00 01 f9 f9 f9 f9 06 f9 f9 f9
  0x7fe3e8ce8a80: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 01 f9 f9
  0x7fe3e8ce8b00: f9 f9 f9 f9 00 00 00 00 00 04 f9 f9 f9 f9 f9 f9
=>0x7fe3e8ce8b80: 00 00 00 00 00 02 f9 f9 f9 f9 f9[f9]02 f9 f9 f9
  0x7fe3e8ce8c00: f9 f9 f9 f9 00 00 00 00 00 00 00 00 00 00 00 00
  0x7fe3e8ce8c80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7fe3e8ce8d00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7fe3e8ce8d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
  0x7fe3e8ce8e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
==179981==ABORTING

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to