Bug 482084 - Rainbow Parentheses plugin - memory access issues
Summary: Rainbow Parentheses plugin - memory access issues
Status: RESOLVED DUPLICATE of bug 482152
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 24.02.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords: drkonqi, qt6
: 482274 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-29 20:01 UTC by Luca Giambonini
Modified: 2024-03-04 09:50 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (68.68 KB, text/plain)
2024-02-29 20:01 UTC, Luca Giambonini
Details
crash log color rainbowparens plugin (42.85 KB, text/vnd.kde.kcrash-report)
2024-03-03 08:30 UTC, Schlaefer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Giambonini 2024-02-29 20:01:17 UTC
Application: kate (24.02.0)

Qt Version: 6.6.2
Frameworks Version: 6.0.0
Operating System: Linux 6.7.6-arch1-1 x86_64
Windowing System: Wayland
Distribution: EndeavourOS
DrKonqi: 6.0.0 [CoredumpBackend]

-- Information about the crash:
seems that the function existingColoredBracketForPos generate an memory error.
When I disable the plugin Kate works as expected.

Kate 24.02.0 with plasma 6.0

The crash can be reproduced every time.

-- Backtrace (Reduced):
#5  QExplicitlySharedDataPointer<KTextEditor::Attribute>::QExplicitlySharedDataPointer (o=..., this=0x7ffce9bc1d30) at /usr/include/qt6/QtCore/qshareddata.h:158
#8  RainbowParenPluginView::rehighlight (this=0x623b63be12b0, view=<optimized out>) at /usr/src/debug/kate/kate-24.02.0/addons/rainbow-parens/rainbowparens_plugin.cpp:417
#9  0x00007b0db6f90ca9 in QtPrivate::QSlotObjectBase::call (a=0x7ffce9bc1fd0, r=0x623b63be12b0, this=0x623b63be1880, this=<optimized out>, r=<optimized out>, a=<optimized out>) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qobjectdefs_impl.h:433
#10 doActivate<false> (sender=0x623b63be1320, signal_index=3, argv=0x7ffce9bc1fd0) at /usr/src/debug/qt6-base/qtbase-everywhere-src-6.6.2/src/corelib/kernel/qobject.cpp:4039
#11 0x00007b0db6f98d64 in QTimer::timeout (_t1=..., this=0x623b63be1320) at /usr/src/debug/qt6-base/build/src/corelib/Core_autogen/include/moc_qtimer.cpp:272


Reported using DrKonqi
Comment 1 Luca Giambonini 2024-02-29 20:01:18 UTC
Created attachment 166215 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 Schlaefer 2024-03-03 08:30:02 UTC
Created attachment 166334 [details]
crash log color rainbowparens plugin

Same problem here.

Steps to reproduce:
- Open a new empty document
- Type one opening and two closing brackets: "{<enter>}<enter>}<enter>"
- Kate crashes

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.8.0-rc6-1-cachyos-rc (64-bit)
Graphics Platform: Wayland
Processors: 12 × 11th Gen Intel® Core™ i5-11400 @ 2.60GHz
Memory: 31,2 GiB of RAM
Graphics Processor: Mesa Intel® Arc
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B560M AORUS PRO AX
System Version: -CF
Kate Version 24.02.0

PS: Likely duplicate: https://bugs.kde.org/show_bug.cgi?id=482274
Comment 3 Antonio Rojas 2024-03-03 09:46:03 UTC
*** Bug 482274 has been marked as a duplicate of this bug. ***
Comment 4 Waqar Ahmed 2024-03-04 09:50:56 UTC

*** This bug has been marked as a duplicate of bug 482152 ***