Bug#920772: kdeinit5 crashing at MTP transfer to android device.
Dear Maintainer,
I got today the same crash as the submitter.
It happened short after disconnecting one android device,
connecting another and opening/retrying the MTP connection.
This upstream bug looks related:
https://bugs.kde.org/show_bug.cgi?id=415693
(Seems to be also from buster due to address offsets.)
This line seems to call member getDevice even when there is no object:
102 LIBMTP_mtpdevice_t *device = deviceCache->get(pathItems.at(0))->getDevice();
https://sources.debian.org/src/kio-extras/4:18.08.3-1/mtp/kio_mtp.cpp/#L102
This line got removed upstream in this commit:
https://cgit.kde.org/kio-extras.git/commit/mtp/kio_mtp.cpp?id=aaa1edbb74c4fb01affbde7b79bb45d3a9b61f83
Which points to this task and among others this bug:
https://phabricator.kde.org/T9390
https://bugs.kde.org/show_bug.cgi?id=396527
Because the offending line and function removed,
current testing 4:19.08.1-1 might be have this bug fixed.
One upstream mentions that Nautilus was working find,
this might be a workaround, as I guess MTP with KDE
will stay kind of fragile in Buster.
Kind regards,
Bernhard
Without debug symbols:
[KCrash Handler]
#6 0x00007f9b372b417a in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/mtp.so
#7 0x00007f9b372b9457 in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/mtp.so
#8 0x00007f9b372bd65b in ?? () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/mtp.so
#9 0x00007f9b3272f39f in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#10 0x00007f9b3272f876 in KIO::SlaveBase::dispatchLoop() () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#11 0x00007f9b372be7fd in kdemain () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/mtp.so
#12 0x0000556b97c3fe1c in ?? ()
#13 0x0000556b97c40eea in ?? ()
#14 0x0000556b97c418fb in ?? ()
#15 0x0000556b97c3c645 in ?? ()
#16 0x00007f9b3646b09b in __libc_start_main (main=0x556b97c3bc70, argc=5, argv=0x7ffc69537f98, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc69537f88) at ../csu/libc-start.c:308
#17 0x0000556b97c3d2ca in ?? ()
[Inferior 1 (process 2264) detached]
With debug symbols:
Thread 1 (Thread 0x7f9b32b26780 (LWP 2264)):
[KCrash Handler]
#6 CachedDevice::getDevice (this=0x0) at ./mtp/devicecache.cpp:64
#7 0x00007f9b372b9457 in MTPSlave::getPath (this=0x7ffc695377b0, path=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:115
#8 0x00007f9b372bd65b in MTPSlave::fileSystemFreeSpace (this=0x7ffc695377b0, url=...) at ./mtp/kio_mtp.cpp:946
#9 0x00007f9b3272f39f in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#10 0x00007f9b3272f876 in KIO::SlaveBase::dispatchLoop() () from /usr/lib/x86_64-linux-gnu/libKF5KIOCore.so.5
#11 0x00007f9b372be7fd in kdemain (argc=<optimized out>, argv=<optimized out>) at ./mtp/kio_mtp.cpp:56
#12 0x0000556b97c3fe1c in launch (argc=4, _name=0x556b993ab398 "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/mtp.so", args=<optimized out>, cwd=<optimized out>, envc=0, envs=<optimized out>, reset_env=false, tty=0x0, avoid_loops=false, startup_id_str=0x556b97c43187 "0") at ./src/kdeinit/kinit.cpp:706
#13 0x0000556b97c40eea in handle_launcher_request (sock=8, who=<optimized out>) at ./src/kdeinit/kinit.cpp:1146
#14 0x0000556b97c418fb in handle_requests (waitForPid=0) at ./src/kdeinit/kinit.cpp:1339
#15 0x0000556b97c3c645 in main (argc=5, argv=<optimized out>) at ./src/kdeinit/kinit.cpp:1785
[Inferior 1 (process 2264) detached]
-- System Information:
Debian Release: 10.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500, 'proposed-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.19.0-7-amd64 (SMP w/16 CPU cores)
Kernel taint flags: TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages kio-extras depends on:
ii kio 5.54.1-1
ii kio-extras-data 4:18.08.3-1
ii libc6 2.28-10
ii libgcc1 1:8.3.0-6
ii libkf5activities5 5.54.0-1
ii libkf5archive5 5.54.0-1
ii libkf5bookmarks5 5.54.0-1
ii libkf5codecs5 5.54.0-1
ii libkf5configcore5 5.54.0-1+deb10u1
ii libkf5configgui5 5.54.0-1+deb10u1
ii libkf5configwidgets5 5.54.0-1
ii libkf5coreaddons5 5.54.0-1
ii libkf5dbusaddons5 5.54.0-1
ii libkf5dnssd5 5.54.0-1
ii libkf5guiaddons5 5.54.0-1
ii libkf5i18n5 5.54.0-1
ii libkf5iconthemes5 5.54.0-1
ii libkf5khtml5 5.54.0-1
ii libkf5kiocore5 5.54.1-1
ii libkf5kiofilewidgets5 5.54.1-1
ii libkf5kiowidgets5 5.54.1-1
ii libkf5parts5 5.54.0-1
ii libkf5pty5 5.54.0-1
ii libkf5service-bin 5.54.0-1
ii libkf5service5 5.54.0-1
ii libkf5solid5 5.54.0-1
ii libkf5xmlgui5 5.54.0-1
ii libmtp9 1.1.16-2
ii libopenexr23 2.2.1-4.1
ii libphonon4qt5-4 4:4.10.2-1
ii libqt5core5a 5.11.3+dfsg1-1+deb10u2
ii libqt5dbus5 5.11.3+dfsg1-1+deb10u2
ii libqt5gui5 5.11.3+dfsg1-1+deb10u2
ii libqt5network5 5.11.3+dfsg1-1+deb10u2
ii libqt5sql5 5.11.3+dfsg1-1+deb10u2
ii libqt5svg5 5.11.3-2
ii libqt5widgets5 5.11.3+dfsg1-1+deb10u2
ii libqt5xml5 5.11.3+dfsg1-1+deb10u2
ii libsmbclient 2:4.9.5+dfsg-5+deb10u1
ii libssh-4 0.8.7-1
ii libstdc++6 8.3.0-6
ii libtag1v5 1.11.1+dfsg.1-0.3
ii phonon4qt5 4:4.10.2-1
kio-extras recommends no packages.
kio-extras suggests no packages.
-- no debconf information
Reply to: