https://bugs.kde.org/show_bug.cgi?id=508372
Bug ID: 508372
Summary: Stack smashing crash when opening project properties
Classification: Applications
Product: kdevelop
Version First 6.3.250800
Reported In:
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: crash
Priority: NOR
Component: Astyle
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
KDevelop crashes every time with a "Stack smashing detected" error when opening
project properties
STEPS TO REPRODUCE
1. Open a KDevelop project
2. Right-click on the project in the left
3. Click on "Open configuration..." in the dropdown menu (possibly while the
project is still being parsed)
OBSERVED RESULT
*** stack smashing detected ***: terminated
Thread 1 "kdevelop" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6,
no_tid=no_tid@entry=0) at pthread_kill.c:44
44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret)
: 0;
Backtrace for crashing thread:
Thread 1 (Thread 0x7fffd0b13680 (LWP 27287) "kdevelop"):
#0 __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007ffff5a98a13 in __pthread_kill_internal (threadid=<optimized out>,
signo=6) at pthread_kill.c:89
#2 0x00007ffff5a3e410 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3 0x00007ffff5a2557a in __GI_abort () at abort.c:77
#4 0x00007ffff5a26613 in __libc_message_impl (fmt=fmt@entry=0x7ffff5bb41d8
"*** %s ***: terminated\n") at ../sysdeps/posix/libc_fatal.c:138
#5 0x00007ffff5b26319 in __GI___fortify_fail (msg=msg@entry=0x7ffff5bb41f0
"stack smashing detected") at fortify_fail.c:24
#6 0x00007ffff5b276d4 in __stack_chk_fail () at stack_chk_fail.c:24
#7 0x00007fffb569f4b3 in createPredefinedStyle (name=..., caption=...) at
/usr/src/debug/kdevelop/kdevelop-25.08.0/plugins/astyle/astyle_plugin.cpp:291
#8 0x00007fffb569f5cc in AStylePlugin::predefinedStyles (this=<optimized out>)
at
/usr/src/debug/kdevelop/kdevelop-25.08.0/plugins/astyle/astyle_plugin.cpp:308
#9 0x00007ffff7d1f9a8 in
KDevelop::SourceFormatterController::stylesForFormatter (this=0x555555b78c30,
formatter=...) at
/usr/src/debug/kdevelop/kdevelop-25.08.0/kdevplatform/shell/sourceformattercontroller.cpp:405
#10 0x00007ffff7d52b03 in
KDevelop::SourceFormatterSelectionEdit::addSourceFormatterNoUi
(this=this@entry=0x55555df700c0, ifmt=0x555556e95718) at
/usr/src/debug/kdevelop/kdevelop-25.08.0/kdevplatform/shell/sourceformatterselectionedit.cpp:855
#11 0x00007ffff7d55b90 in
KDevelop::SourceFormatterSelectionEdit::SourceFormatterSelectionEdit
(this=<optimized out>, parent=<optimized out>, this=<optimized out>,
parent=<optimized out>) at
/usr/src/debug/kdevelop/kdevelop-25.08.0/kdevplatform/shell/sourceformatterselectionedit.cpp:834
#12 0x00007fffb427cdfe in SourceFormatter::Ui_ProjectConfigPage::setupUi
(this=0x55555ddcccf0, SourceFormatter__ProjectConfigPage=0x55555ddcc530) at
/usr/src/debug/kdevelop/build/plugins/sourceformatter/ui_projectconfigpage.h:71
#13 SourceFormatter::ProjectConfigPage::ProjectConfigPage (this=<optimized
out>, plugin=<optimized out>, project=<optimized out>, parent=<optimized out>,
this=<optimized out>, plugin=<optimized out>, project=<optimized out>,
parent=<optimized out>) at
/usr/src/debug/kdevelop/kdevelop-25.08.0/plugins/sourceformatter/config/projectconfigpage.cpp:32
#14 0x00007fffb427d4f3 in SourceFormatterPlugin::perProjectConfigPage
(this=<optimized out>, number=<optimized out>, options=...,
parent=0x55555dc66980) at
/usr/src/debug/kdevelop/kdevelop-25.08.0/plugins/sourceformatter/sourceformatterplugin.cpp:40
#15 0x00007ffff7cb3e2f in KDevelop::ProjectControllerPrivate::projectConfig
(this=0x555555d30890, obj=<optimized out>) at
/usr/src/debug/kdevelop/kdevelop-25.08.0/kdevplatform/shell/projectcontroller.cpp:141
#16 0x00007ffff63d37ef in QtPrivate::QSlotObjectBase::call (this=<optimized
out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized
out>, a=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:461
#17 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>,
argv=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4146
#18 0x00007ffff70073c0 in QMetaObject::activate<void, bool> (sender=<optimized
out>, mo=<optimized out>, local_signal_index=<optimized out>, ret=<optimized
out>, sender=<optimized out>, mo=<optimized out>, local_signal_index=<optimized
out>, ret=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs.h:306
#19 QAction::triggered (this=<optimized out>, _t1=<optimized out>) at
/usr/src/debug/qt6-base/build/src/gui/Gui_autogen/include/moc_qaction.cpp:372
#20 QAction::activate (this=0x55555dd58600, event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qaction.cpp:1104
#21 0x00007ffff770617d in QMenuPrivate::activateCausedStack
(this=0x55555c552c00, causedStack=..., action=0x55555dd58600,
action_e=QAction::Trigger, self=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qmenu.cpp:1408
#22 0x00007ffff770a54b in QMenuPrivate::activateAction (this=0x55555c552c00,
action=0x55555dd58600, action_e=QAction::Trigger, self=true) at
/usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qmenu.cpp:1490
#23 0x00007ffff755b5c7 in QWidget::event (this=0x7fffffffb780,
event=0x7fffffffa9e0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidget.cpp:8987
#24 0x00007ffff7501c70 in QApplicationPrivate::notify_helper
(this=this@entry=0x5555555b05e0, receiver=receiver@entry=0x7fffffffb780,
e=e@entry=0x7fffffffa9e0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3303
#25 0x00007ffff7505c39 in QApplication::notify (this=<optimized out>,
receiver=<optimized out>, e=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2780
#26 0x00007ffff6368118 in QCoreApplication::notifyInternal2
(receiver=0x7fffffffb780, event=0x7fffffffa9e0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#27 0x00007ffff636816d in QCoreApplication::sendSpontaneousEvent
(receiver=<optimized out>, event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1560
#28 0x00007ffff74f7358 in QApplicationPrivate::sendMouseEvent
(receiver=0x7fffffffb780, event=0x7fffffffa9e0, alienWidget=<optimized out>,
nativeWidget=0x7fffffffb780, buttonDown=0x7ffff7b476b0 <qt_button_down>,
lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2361
#29 0x00007ffff7577169 in QWidgetWindow::handleMouseEvent (this=0x55555dbe9ee0,
event=event@entry=0x7fffffffad70) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:577
#30 0x00007ffff75780d8 in QWidgetWindow::event (this=<optimized out>,
event=0x7fffffffad70) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:292
#31 0x00007ffff7501c70 in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x55555dbe9ee0, e=0x7fffffffad70) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3303
#32 0x00007ffff6368118 in QCoreApplication::notifyInternal2
(receiver=0x55555dbe9ee0, event=0x7fffffffad70) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#33 0x00007ffff636816d in QCoreApplication::sendSpontaneousEvent
(receiver=<optimized out>, event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1560
#34 0x00007ffff6ba1217 in QGuiApplicationPrivate::processMouseEvent
(e=0x7fff616cdf50) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:2476
#35 0x00007ffff6c248f4 in QWindowSystemInterface::sendWindowSystemEvents
(flags=...) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1113
#36 0x00007ffff6c13b27 in QWindowSystemInterface::flushWindowSystemEvents
(flags=...) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1082
#37 0x00007ffff63c0e34 in QObject::event (this=<optimized out>, e=<optimized
out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1431
#38 0x00007ffff7501c70 in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x5555555ce680, e=0x7fffc00039c0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3303
#39 0x00007ffff6368118 in QCoreApplication::notifyInternal2
(receiver=0x5555555ce680, event=event@entry=0x7fffc00039c0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#40 0x00007ffff63684fb in QCoreApplication::sendEvent (receiver=<optimized
out>, event=0x7fffc00039c0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1546
#41 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x5555555c27b0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1879
#42 0x00007ffff663fcf8 in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1733
#43 postEventSourceDispatch (s=0x5555555cafe0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#44 0x00007ffff2108880 in g_main_dispatch (context=0x7fffc8000f70) at
../glib/glib/gmain.c:3398
#45 0x00007ffff2109cd7 in g_main_context_dispatch_unlocked
(context=0x7fffc8000f70) at ../glib/glib/gmain.c:4249
#46 g_main_context_iterate_unlocked (context=context@entry=0x7fffc8000f70,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
../glib/glib/gmain.c:4314
#47 0x00007ffff2109ee5 in g_main_context_iteration (context=0x7fffc8000f70,
may_block=1) at ../glib/glib/gmain.c:4379
#48 0x00007ffff663c5e2 in QEventDispatcherGlib::processEvents
(this=0x55555559efb0, flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#49 0x00007ffff63744b6 in QEventLoop::processEvents (this=0x7fffffffb4c0,
flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:104
#50 QEventLoop::exec (this=0x7fffffffb4c0, flags=..., flags@entry=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:186
#51 0x00007ffff770ec0c in QMenuPrivate::exec (this=0x55555c552c00, p=...,
action=action@entry=0x0, positionFunction=...) at
/usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qmenu.cpp:2672
#52 0x00007ffff770ed43 in QMenu::exec (this=this@entry=0x7fffffffb780, p=...,
action=action@entry=0x0) at
/usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qmenu.cpp:2658
#53 0x00007fffb570a316 in ProjectTreeView::popupContextMenu (this=<optimized
out>, pos=...) at
/usr/src/debug/kdevelop/kdevelop-25.08.0/plugins/projectmanagerview/projecttreeview.cpp:372
#54 0x00007ffff63d37ef in QtPrivate::QSlotObjectBase::call (this=<optimized
out>, r=<optimized out>, a=<optimized out>, this=<optimized out>, r=<optimized
out>, a=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs_impl.h:461
#55 doActivate<false> (sender=<optimized out>, signal_index=<optimized out>,
argv=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:4146
#56 0x00007ffff755b948 in QMetaObject::activate<void, QPoint>
(sender=0x555557425090, mo=<optimized out>, local_signal_index=3, ret=0x0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobjectdefs.h:306
#57 QWidget::customContextMenuRequested (this=0x555557425090, _t1=...) at
/usr/src/debug/qt6-base/build/src/widgets/Widgets_autogen/include/moc_qwidget.cpp:603
#58 QWidget::event (this=0x555557425090, event=0x7fffffffbd80) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidget.cpp:9174
#59 0x00007ffff75c79b6 in QFrame::event (this=0x555557425090, e=0x7fffffffbd80)
at /usr/src/debug/qt6-base/qtbase/src/widgets/widgets/qframe.cpp:521
#60 0x00007ffff63675dc in
QCoreApplicationPrivate::sendThroughObjectEventFilters
(receiver=receiver@entry=0x555557425760, event=event@entry=0x7fffffffbd80) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1243
#61 0x00007ffff7501c60 in QApplicationPrivate::notify_helper
(this=this@entry=0x5555555b05e0, receiver=receiver@entry=0x555557425760,
e=e@entry=0x7fffffffbd80) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3297
#62 0x00007ffff7506f64 in QApplication::notify (this=<optimized out>,
receiver=<optimized out>, e=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2921
#63 0x00007ffff6368118 in QCoreApplication::notifyInternal2
(receiver=0x555557425760, event=0x7fffffffbd80) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#64 0x00007ffff636814a in QCoreApplication::forwardEvent (receiver=<optimized
out>, event=<optimized out>, originatingEvent=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1121
#65 0x00007ffff7578ef7 in QWidgetWindow::handleContextMenuEvent
(this=<optimized out>, e=0x7fffffffbf70) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:1221
#66 QWidgetWindow::event (this=<optimized out>, event=0x7fffffffbf70) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:369
#67 0x00007ffff7501c70 in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x555555beb0b0, e=0x7fffffffbf70) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3303
#68 0x00007ffff6368118 in QCoreApplication::notifyInternal2
(receiver=0x555555beb0b0, event=0x7fffffffbf70) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#69 0x00007ffff636814a in QCoreApplication::forwardEvent (receiver=<optimized
out>, event=<optimized out>, originatingEvent=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1121
#70 0x00007ffff6c0dd7e in QWindowPrivate::maybeSynthesizeContextMenuEvent
(this=<optimized out>, event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindow_p.h:35
#71 QWindowPrivate::maybeSynthesizeContextMenuEvent (this=<optimized out>,
event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindow.cpp:2802
#72 0x00007ffff7576e6f in QWidgetWindow::handleMouseEvent (this=0x555555beb0b0,
event=event@entry=0x7fffffffc430) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:683
#73 0x00007ffff75780d8 in QWidgetWindow::event (this=<optimized out>,
event=0x7fffffffc430) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qwidgetwindow.cpp:292
#74 0x00007ffff7501c70 in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x555555beb0b0, e=0x7fffffffc430) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3303
#75 0x00007ffff6368118 in QCoreApplication::notifyInternal2
(receiver=0x555555beb0b0, event=0x7fffffffc430) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#76 0x00007ffff636816d in QCoreApplication::sendSpontaneousEvent
(receiver=<optimized out>, event=<optimized out>) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1560
#77 0x00007ffff6ba1217 in QGuiApplicationPrivate::processMouseEvent
(e=0x55555e00b3e0) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qguiapplication.cpp:2476
#78 0x00007ffff6c248f4 in QWindowSystemInterface::sendWindowSystemEvents
(flags=...) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1113
#79 0x00007ffff6c13b27 in QWindowSystemInterface::flushWindowSystemEvents
(flags=...) at
/usr/src/debug/qt6-base/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1082
#80 0x00007ffff63c0e34 in QObject::event (this=<optimized out>, e=<optimized
out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qobject.cpp:1431
#81 0x00007ffff7501c70 in QApplicationPrivate::notify_helper (this=<optimized
out>, receiver=0x5555555ce680, e=0x7fffc0001780) at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:3303
#82 0x00007ffff6368118 in QCoreApplication::notifyInternal2
(receiver=0x5555555ce680, event=event@entry=0x7fffc0001780) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1106
#83 0x00007ffff63684fb in QCoreApplication::sendEvent (receiver=<optimized
out>, event=0x7fffc0001780) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1546
#84 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0,
data=0x5555555c27b0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1879
#85 0x00007ffff663fcf8 in QCoreApplication::sendPostedEvents (receiver=0x0,
event_type=0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1733
#86 postEventSourceDispatch (s=0x5555555cafe0) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:246
#87 0x00007ffff2108880 in g_main_dispatch (context=0x7fffc8000f70) at
../glib/glib/gmain.c:3398
#88 0x00007ffff2109cd7 in g_main_context_dispatch_unlocked
(context=0x7fffc8000f70) at ../glib/glib/gmain.c:4249
#89 g_main_context_iterate_unlocked (context=context@entry=0x7fffc8000f70,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at
../glib/glib/gmain.c:4314
#90 0x00007ffff2109ee5 in g_main_context_iteration (context=0x7fffc8000f70,
may_block=1) at ../glib/glib/gmain.c:4379
#91 0x00007ffff663c5e2 in QEventDispatcherGlib::processEvents
(this=0x55555559efb0, flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:399
#92 0x00007ffff63744b6 in QEventLoop::processEvents (this=0x7fffffffcb70,
flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:104
#93 QEventLoop::exec (this=0x7fffffffcb70, flags=...) at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qeventloop.cpp:186
#94 0x00007ffff636c7c1 in QCoreApplication::exec () at
/usr/src/debug/qt6-base/qtbase/src/corelib/kernel/qcoreapplication.cpp:1449
#95 0x00007ffff74fc66a in QApplication::exec () at
/usr/src/debug/qt6-base/qtbase/src/widgets/kernel/qapplication.cpp:2570
#96 0x0000555555561812 in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/kdevelop/kdevelop-25.08.0/app/main.cpp:836
EXPECTED RESULT
No crash
SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.4.4-1
--
You are receiving this mail because:
You are watching all bug changes.