https://bugs.kde.org/show_bug.cgi?id=507923
Bug ID: 507923 Summary: RKWard crashed when using a context menu to paste a command in the console Classification: Applications Product: rkward Version First unspecified Reported In: Platform: Fedora RPMs OS: Linux Status: REPORTED Keywords: drkonqi Severity: crash Priority: NOR Component: general Assignee: rkward-devel@kde.org Reporter: matt.fagn...@bell.net Target Milestone: --- Application: rkward (0.8.1z+0.8.2+devel1) ApplicationNotResponding [ANR]: false Qt Version: 6.9.1 Frameworks Version: 6.16.0 Operating System: Linux 6.15.9-201.fc42.x86_64 x86_64 Windowing System: Wayland Distribution: "Fedora Linux 42 (KDE Plasma Desktop Edition)" DrKonqi: 6.4.3 [CoredumpBackend] -- Information about the crash: I ran the RKWard 0.8.2 pre-release rkward-0.8.2~pre^1.gitcb3c2dd3-1.fc42 which should contain the patch for https://bugs.kde.org/show_bug.cgi?id=505955 I created a new data set my.data with by clicking Enter new data. my.data contained a Numeric variable var by default. I copied the line my.data$var = as.Date("1-1-2025",tryFormats="%m-%d-%Y") from that report in Firefox. I right-clicked in the R console, then I clicked on Paste in the context menu (the data frame didn't need a row to be created for the crash to happen with the Fedora build.) RKWard crashed in std::__uniq_ptr_impl<KXMLGUIFactoryPrivate, std::default_delete<KXMLGUIFactoryPrivate> >::_M_ptr with a trace like I reported at https://bugs.kde.org/show_bug.cgi?id=505955#c3 KXMLGUIFactory::container had this=0x0, which might've resulted in a null pointer dereference in std::__uniq_ptr_impl<KXMLGUIFactoryPrivate, std::default_delete<KXMLGUIFactoryPrivate> >::_M_ptr. The trace referred to a context menu such as in TwinTable::contextMenu. I reproduced the crash again as above. In another run I copied and pasted the line x <- data.frame(1, 2) from https://bugs.kde.org/show_bug.cgi?id=505955#c4 using a context menu. RKWard crashed with the same type of trace which is the crash I reported here with drkonqi. The problem didn't happen if I used the Edit menu in the menu bar then selected Paste. The crash can be reproduced every time. -- Backtrace (Reduced): #4 0x00007f78d950e23e in std::__uniq_ptr_impl<KXMLGUIFactoryPrivate, std::default_delete<KXMLGUIFactoryPrivate> >::_M_ptr (this=<optimized out>) at /usr/include/c++/15/bits/unique_ptr.h:193 #5 std::unique_ptr<KXMLGUIFactoryPrivate, std::default_delete<KXMLGUIFactoryPrivate> >::get (this=<optimized out>) at /usr/include/c++/15/bits/unique_ptr.h:473 #6 std::unique_ptr<KXMLGUIFactoryPrivate, std::default_delete<KXMLGUIFactoryPrivate> >::operator-> (this=<optimized out>) at /usr/include/c++/15/bits/unique_ptr.h:466 #7 KXMLGUIFactory::container (this=0x0, containerName=..., client=client@entry=0x55e4410186e0, useTagName=useTagName@entry=false) at /usr/src/debug/kf6-kxmlgui-6.16.0-1.fc42.x86_64/src/kxmlguifactory.cpp:450 #8 0x000055e41a4b9d80 in TwinTable::contextMenu (this=0x55e4410185e0, row=<optimized out>, col=<optimized out>, pos=...) at /usr/src/debug/rkward-0.8.2~pre^1.gitcb3c2dd3-1.fc42.x86_64/rkward/dataeditor/twintable.cpp:325 #9 0x00007f78d61657ba in QtPrivate::QSlotObjectBase::call (this=0x55e440fb07e0, r=0x55e4410185e0, a=0x7ffe5be87070) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobjectdefs_impl.h:461 #10 doActivate<false> (sender=0x55e440f994e0, signal_index=15, argv=argv@entry=0x7ffe5be87070) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4146 [...] #13 TwinTableMember::contextMenuRequest (this=<optimized out>, _t1=<optimized out>, _t2=<optimized out>, _t3=...) at /usr/src/debug/rkward-0.8.2~pre^1.gitcb3c2dd3-1.fc42.x86_64/redhat-linux-build/rkward/dataeditor/dataeditor_autogen/EWIEGA46WW/moc_twintablemember.cpp:162 #14 TwinTableMember::handleContextMenuRequest (this=0x55e440f994e0, pos=...) at /usr/src/debug/rkward-0.8.2~pre^1.gitcb3c2dd3-1.fc42.x86_64/rkward/dataeditor/twintablemember.cpp:160 #15 0x00007f78d61657ba in QtPrivate::QSlotObjectBase::call (this=0x55e440fb0260, r=0x55e440f994e0, a=0x7ffe5be871b0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobjectdefs_impl.h:461 #16 doActivate<false> (sender=0x55e440f994e0, signal_index=6, argv=argv@entry=0x7ffe5be871b0) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qobject.cpp:4146 [...] #19 QWidget::customContextMenuRequested (this=this@entry=0x55e440f994e0, _t1=...) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/redhat-linux-build/src/widgets/Widgets_autogen/include/moc_qwidget.cpp:603 #20 0x00007f78d86a79c2 in QWidget::event (this=this@entry=0x55e440f994e0, event=event@entry=0x7ffe5be87640) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qwidget.cpp:9174 #21 0x00007f78d87010f6 in QFrame::event (this=0x55e440f994e0, e=0x7ffe5be87640) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/widgets/qframe.cpp:521 #22 0x00007f78d60f9caa in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x55e440f9b770, event=event@entry=0x7ffe5be87640) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/corelib/kernel/qcoreapplication.cpp:1243 #23 0x00007f78d863d96f in QApplicationPrivate::notify_helper (this=this@entry=0x55e43f00ca30, receiver=receiver@entry=0x55e440f9b770, e=e@entry=0x7ffe5be87640) at /usr/src/debug/qt6-qtbase-6.9.1-1.fc42.x86_64/src/widgets/kernel/qapplication.cpp:3297 Reported using DrKonqi -- You are receiving this mail because: You are the assignee for the bug.