Bug 391320 - crash on copy multiple files [CutCopyPasteHelpers::mapSourceToDestination]
Summary: crash on copy multiple files [CutCopyPasteHelpers::mapSourceToDestination]
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: file tree (show other bugs)
Version: 5.2.1
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
: 393084 395309 397416 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-03-03 00:32 UTC by programmerjake
Modified: 2018-08-13 10:32 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.2.2


Attachments
first part of core dump (3.28 MB, application/zip)
2018-03-03 00:32 UTC, programmerjake
Details
second part of core dump (3.42 MB, application/octet-stream)
2018-03-03 00:32 UTC, programmerjake
Details
third part of core dump (3.42 MB, application/octet-stream)
2018-03-03 00:33 UTC, programmerjake
Details

Note You need to log in before you can comment on or make changes to this bug.
Description programmerjake 2018-03-03 00:32:00 UTC
Created attachment 111156 [details]
first part of core dump

whenever I copy multiple files using the Copy and Paste context menu items, KDevelop crashes with SIGSEGV. It doesn't matter where I paste the files.

I'm using Ubuntu 16.04.4
Comment 1 programmerjake 2018-03-03 00:32:38 UTC
Created attachment 111157 [details]
second part of core dump
Comment 2 programmerjake 2018-03-03 00:33:08 UTC
Created attachment 111158 [details]
third part of core dump
Comment 3 programmerjake 2018-03-03 00:35:04 UTC
I created a core dump with gdb, then compressed it using xz, then converted it into a multipart zip file. It is 1.7GB uncompressed.
Comment 4 Kevin Funk 2018-03-15 19:14:59 UTC
Could you get us a backtrace instead? A core dump without the corresponding executable is useless, unfortunately.

More information here:
  https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Comment 5 programmerjake 2018-03-16 10:39:46 UTC
Here's the backtrace:

#0  0x00007f17009faca3 in KDevelop::Path::isParentOf(KDevelop::Path const&) const () from /tmp/.mount_n6FqfA/usr/lib/libKDevPlatformUtil.so.52
#1  0x00007f16d11a2a1b in CutCopyPasteHelpers::mapSourceToDestination(QVector<KDevelop::Path> const&, KDevelop::Path const&) ()
   from /tmp/.mount_n6FqfA/usr/lib/qt5/plugins/kdevplatform/30/kdevprojectmanagerview.so
#2  0x00007f16d118c7b4 in ProjectManagerViewPlugin::pasteFromContextMenu() () from /tmp/.mount_n6FqfA/usr/lib/qt5/plugins/kdevplatform/30/kdevprojectmanagerview.so
#3  0x00007f16fc2bb059 in QMetaObject::activate(QObject*, int, int, void**) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Core.so.5
#4  0x00007f16fcc29212 in QAction::triggered(bool) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#5  0x00007f16fcc2b6b0 in QAction::activate(QAction::ActionEvent) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#6  0x00007f16fcd9d5fa in ?? () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#7  0x00007f16fcda4696 in ?? () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#8  0x00007f16fcda55b0 in QMenu::mouseReleaseEvent(QMouseEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#9  0x00007f16fcc6b558 in QWidget::event(QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#10 0x00007f16fcda7a2b in QMenu::event(QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#11 0x00007f16fcc2f17c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#12 0x00007f16fcc36f83 in QApplication::notify(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#13 0x00007f16fc290ae8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Core.so.5
#14 0x00007f16fcc35bef in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#15 0x00007f16fcc84f16 in ?? () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#16 0x00007f16fcc8745b in ?? () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#17 0x00007f16fcc2f17c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#18 0x00007f16fcc365a7 in QApplication::notify(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#19 0x00007f16fc290ae8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Core.so.5
#20 0x00007f16fc649940 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Gui.so.5
#21 0x00007f16fc64b735 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Gui.so.5
#22 0x00007f16fc626f7b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Gui.so.5
#23 0x00007f16ee42d4e6 in ?? () from /tmp/.mount_n6FqfA/usr/lib/libQt5XcbQpa.so.5
#24 0x00007f16fc28f11a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Core.so.5
#25 0x00007f16fcda246d in QMenu::exec(QPoint const&, QAction*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#26 0x00007f16d1198d9e in ProjectTreeView::popupContextMenu(QPoint const&) () from /tmp/.mount_n6FqfA/usr/lib/qt5/plugins/kdevplatform/30/kdevprojectmanagerview.so
#27 0x00007f16fc2bb386 in QMetaObject::activate(QObject*, int, int, void**) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Core.so.5
#28 0x00007f16fcc52f25 in QWidget::customContextMenuRequested(QPoint const&) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#29 0x00007f16fcc6c34d in QWidget::event(QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#30 0x00007f16fcd0f67e in QFrame::event(QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#31 0x00007f16fce69f0c in QAbstractItemView::viewportEvent(QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#32 0x00007f16fcece92c in QTreeView::viewportEvent(QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#33 0x00007f16fc290882 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Core.so.5
#34 0x00007f16fcc2f155 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#35 0x00007f16fcc37da2 in QApplication::notify(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#36 0x00007f16fc290ae8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Core.so.5
#37 0x00007f16fcc84c5d in ?? () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#38 0x00007f16fcc8745b in ?? () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#39 0x00007f16fcc2f17c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#40 0x00007f16fcc365a7 in QApplication::notify(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Widgets.so.5
#41 0x00007f16fc290ae8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Core.so.5
#42 0x00007f16fc649940 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Gui.so.5
#43 0x00007f16fc64b735 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Gui.so.5
#44 0x00007f16fc626f7b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Gui.so.5
#45 0x00007f16ee42d4e6 in ?? () from /tmp/.mount_n6FqfA/usr/lib/libQt5XcbQpa.so.5
#46 0x00007f16fc28f11a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /tmp/.mount_n6FqfA/usr/lib/libQt5Core.so.5
#47 0x00007f16fc297924 in QCoreApplication::exec() () from /tmp/.mount_n6FqfA/usr/lib/libQt5Core.so.5
#48 0x000000000040bf83 in main ()
Comment 6 Christoph Roick 2018-03-17 13:33:11 UTC
I think that has been fixed already with commit f3229baa. And Kevin, you cherry-picked it for the 5.2 version. However, the latest AppImage seems to date from before the fix.
Comment 7 Kevin Funk 2018-03-20 07:09:10 UTC
Right. The commit that fixes it in 5.2 branch is https://commits.kde.org/kdevelop/b8de65ddb7a9890629ed5471b82b8fbef5cd67c2. It's not part of a KDevelop release yet. Will be part of 5.2.2, though.

Thanks, Christoph!
Comment 8 Kevin Funk 2018-04-13 06:24:15 UTC
*** Bug 393084 has been marked as a duplicate of this bug. ***
Comment 9 Francis Herne 2018-06-13 09:18:58 UTC
*** Bug 395309 has been marked as a duplicate of this bug. ***
Comment 10 Francis Herne 2018-08-13 10:32:54 UTC
*** Bug 397416 has been marked as a duplicate of this bug. ***