Bug 388991 - KDE Connect 1.2 segfaults/crashes.
Summary: KDE Connect 1.2 segfaults/crashes.
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.43.0
Platform: Gentoo Packages Linux
: NOR crash
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: reproducible
Depends on:
Blocks:
 
Reported: 2018-01-15 07:29 UTC by David Mattatall
Modified: 2018-10-19 12:57 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Crashlog for kdeconnect 1 18 2018 (13.74 KB, text/plain)
2018-01-18 10:33 UTC, David Mattatall
Details
valgrind terminal output for crash (1.88 MB, text/plain)
2018-03-04 19:35 UTC, David Mattatall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Mattatall 2018-01-15 07:29:39 UTC
With 64-bit gentoo on an I5 CPU.

KDE connect is one of my favorite plasma applications, however for the past half a year say it will segfault after 5-10 minutes of starting up, and that's a bummer! 

The segfault's always look like this. [32953.332329] kdeconnectd[2576]: segfault at 18 ip 00007fd09a067ab3 sp 00007ffc75359c78 error 4 in libQt5Core.so.5.9.3[7fd099f54000+484000] 

Typically in this situation I'll just go to an earlier version, but only one is present in portage. 

I'm wondering if there is some known issue and if there is something I can do to trace the code to help reveal what is going on exactly. 


System info:

Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-6.4.0, glibc-2.25-r9, 4.9.72-gentoo x86_64) 
================================================================= 
                         System Settings 
================================================================= 
System uname: Linux-4.9.72-gentoo-x86_64-Intel-R-_Core-TM-_i5-4670K_CPU_@_3.40GHz-with-gentoo-2.4.1 
KiB Mem:    32906896 total,   2375100 free 
KiB Swap:    8191996 total,   8191996 free 
Timestamp of repository gentoo: Sun, 14 Jan 2018 23:00:01 +0000 
Head commit of repository gentoo: fb5fbc676a05bb8f14c154e79c577d50894e81a4 
sh bash 4.4_p12 
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1 
app-shells/bash:          4.4_p12::gentoo 
dev-java/java-config:     2.2.0-r3::gentoo 
dev-lang/perl:            5.24.3::gentoo 
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.5.4-r1::gentoo 
dev-util/cmake:           3.9.6::gentoo 
dev-util/pkgconfig:       0.29.2::gentoo 
sys-apps/baselayout:      2.4.1-r2::gentoo 
sys-apps/openrc:          0.34.11::gentoo 
sys-apps/sandbox:         2.10-r4::gentoo 
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo 
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo 
sys-devel/binutils:       2.29.1-r1::gentoo 
sys-devel/gcc:            6.4.0-r1::gentoo 
sys-devel/gcc-config:     1.8-r1::gentoo 
sys-devel/libtool:        2.4.6-r3::gentoo 
sys-devel/make:           4.2.1::gentoo 
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers) 
sys-libs/glibc:           2.25-r9::gentoo 
Repositories: 

gentoo 
    location: /usr/portage 
    sync-type: rsync 
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage 
    priority: -1000 
    sync-rsync-extra-opts: 

ago 
    location: /var/lib/layman/ago 
    masters: gentoo 
    priority: 50 

steam-overlay 
    location: /var/lib/layman/steam-overlay 
    masters: gentoo 
    priority: 50 

ACCEPT_KEYWORDS="amd64" 
ACCEPT_LICENSE="* -@EULA" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=core-avx2 -O2 -pipe" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" 
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" 
CXXFLAGS="-march=core-avx2 -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FCFLAGS="-O2 -pipe" 
FEATURES="assume-digests binpkg-logs candy clean-logs config-protect-if-modified distlocks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" 
FFLAGS="-O2 -pipe" 
GENTOO_MIRRORS="http://gentoo.gossamerhost.com rsync://gentoo.gossamerhost.com/gentoo-distfiles/ rsync://mirror.the-best-hosting.net/gentoo-distfiles http://mirror.the-best-hosting.net http://gentoo.mirrors.tera-byte.com/" 
LANG="en_US.utf8" 
LDFLAGS="-Wl,-O1 -Wl,--as-needed" 
LINGUAS="en ja" 
MAKEOPTS="-j5 --load-average" 
PKGDIR="/usr/portage/packages" 
PORTAGE_CONFIGROOT="/" 
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" 
PORTAGE_TMPDIR="/tmp" 
USE="X a52 aac acl acoustid acpi activities alsa amd64 bash-completion berkdb bluetooth branding btrfs bzip2 cairo cdda cddb cdr chromecast cli client-libs crypt cups curl cxx dbus declarative dos dri dts dvd dvdr emboss encode equalizer exif facebook fat fat32 fbcondecor ffmpeg firefox flac fontforge fortran fuse gdbm geoip gif gimp git glamor google googledrive gpm grub gstreamer gtk iconv icu id3tag infinality ipv6 jack joystick jpeg kde kipi kwallet lame lastfm lcms ldap libass libnotify lighttpd lm_sensors lzma mad matroska mmap mmx mng modules mp3 mp4 mpeg mtp multilib musepack musicbrainz ncurses nfs nls nptl ntfs nvidia offensive ogg openal opengl openmp openssl pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt3support qt5 readline realtime rss scanner sdl seccomp semantic-desktop smp sndfile sox spell sse sse2 ssl startup-notification steamruntime subversion svg systemd taglib tcpd telepathy theora threads tiff truetype twolame udev udisks unicode upnp upower usb uvm vaapi vdpau vhosts vim-syntax vorbis vpn widevine widgets wxwidgets x264 xattr xcb xcomposite xft xml xmpp xv xvfb xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="emu efi-32 efi-64 pc" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS 

================================================================= 
                        Package Settings 
================================================================= 

kde-misc/kdeconnect-1.2::gentoo was built with the following: 
USE="app debug handbook (-selinux) -test -wayland" ABI_X86="(64)"
Comment 1 Kai Uwe Broulik 2018-01-15 09:53:46 UTC
Can you please run kdeconnectd through gdb and get a backtrace?
Comment 2 David Mattatall 2018-01-15 10:00:37 UTC
(In reply to Kai Uwe Broulik from comment #1)
> Can you please run kdeconnectd through gdb and get a backtrace?

Sure, i've invoked 

gdb /usr/lib64/libexec/kdeconnectd

What do I do once it crashes?
Comment 3 David Mattatall 2018-01-15 10:03:13 UTC
gdb /usr/lib64/libexec/kdeconnectd appears not to have started it, I cannot pair.

Is their a guide I can follow to do this?
Comment 4 David Mattatall 2018-01-15 10:04:17 UTC
Ok I've hit run, now it's going.

Lemme know what else I need to do.
Comment 5 David Mattatall 2018-01-15 10:23:50 UTC
Here is the output

tarting program: /usr/lib64/libexec/kdeconnectd 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffdfb8e700 (LWP 26754)]
[New Thread 0x7fffd7d74700 (LWP 26755)]
kdeconnect.core: KdeConnect daemon starting
[New Thread 0x7fffd7573700 (LWP 26756)]
kdeconnect.core: onStart
kdeconnect.core: KdeConnect daemon started
kdeconnect.core: Broadcasting identity packet
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a new device "OnePlus"
kdeconnect.core: Not loading plugin "kdeconnect_lockdevice" because device doesn't support it
kdeconnect.core: Not loading plugin "kdeconnect_remotecommands" because device doesn't support it
kdeconnect.core: Not loading plugin "kdeconnect_mprisremote" because device doesn't support it
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: creating pairing handler for "bff0294ab1694851"
kdeconnect.core: Pair request
kdeconnect.plugin.sftp: add to dolphin
kdeconnect.plugin.sftp: Created device: "OnePlus"
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeconnect.plugin.mpris: MPRIS service "org.mpris.MediaPlayer2.clementine" just came online
kdeconnect.plugin.mpris: Mpris addPlayer "org.mpris.MediaPlayer2.clementine" -> "Clementine"
discarding unsupported package "kdeconnect.runcommand.request" for "OnePlus"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/59ecef367166c68f7f4619b4d81c9d26") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/59ecef367166c68f7f4619b4d81c9d26") size: 14296
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/59ecef367166c68f7f4619b4d81c9d26") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/59ecef367166c68f7f4619b4d81c9d26") size: 14296
kdeconnect.core: Finished transfer QUrl("file:///tmp/kdeconnect/59ecef367166c68f7f4619b4d81c9d26")
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/387109155c9c64795ea7cda89b0f2bf6") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/387109155c9c64795ea7cda89b0f2bf6") size: 9592
kdeconnect.core: Couldn't transfer the file successfully QNetworkReply::NetworkError(UnknownNetworkError) "/tmp/kdeconnect/59ecef367166c68f7f4619b4d81c9d26"
kdeconnect.core: Finished transfer QUrl("file:///tmp/kdeconnect/59ecef367166c68f7f4619b4d81c9d26")

Thread 1 "kdeconnectd" received signal SIGSEGV, Segmentation fault.
0x00007ffff4d09ea2 in KIO::TransferJob::sendAsyncData(QByteArray const&) () from /usr/lib64/libKF5KIOCore.so.5


I did not intend or initiate a URL copy to the device.
Comment 6 David Mattatall 2018-01-15 10:28:25 UTC
The images being transferred are podcast artwork for pocketcasts on my android. No reason that should crash anything, and this was happening previous to me installing pocket casts (I was using beyond pod previous)
Comment 7 Kai Uwe Broulik 2018-01-15 10:29:36 UTC
We're almost there :) when you receive SIGSEGV then type "thread apply all bt" and paste the output here
Comment 8 David Mattatall 2018-01-15 10:35:56 UTC
WOW I think I figured it out. I got a notification from SLACK on my phone just before it crashed. Don't know why that would do it, here's the dump!

(gdb) thread apply all bt

Thread 4 (Thread 0x7fffd7573700 (LWP 29155)):
#0  0x00007ffff593299d in poll () from /lib64/libc.so.6
#1  0x00007ffff07994f6 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff079960c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff628958f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ffff6237b8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ffff6092d53 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007ffff6097281 in ?? () from /usr/lib64/libQt5Core.so.5
#7  0x00007ffff256e887 in start_thread () from /lib64/libpthread.so.0
#8  0x00007ffff593dd4f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fffd7d74700 (LWP 29154)):
#0  0x00007ffff593299d in poll () from /lib64/libc.so.6
#1  0x00007ffff07994f6 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff079960c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff628958f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ffff6237b8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ffff6092d53 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007ffff52286e5 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007ffff6097281 in ?? () from /usr/lib64/libQt5Core.so.5
#8  0x00007ffff256e887 in start_thread () from /lib64/libpthread.so.0
#9  0x00007ffff593dd4f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fffdfb8e700 (LWP 29153)):
#0  0x00007ffff593299d in poll () from /lib64/libc.so.6
#1  0x00007fffef31885f in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007fffef31a5e9 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007fffe1efb1f9 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007ffff6097281 in ?? () from /usr/lib64/libQt5Core.so.5
#5  0x00007ffff256e887 in start_thread () from /lib64/libpthread.so.0
#6  0x00007ffff593dd4f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fffe8c3b800 (LWP 29149)):
#0  0x00007ffff4d09ea2 in KIO::TransferJob::sendAsyncData(QByteArray const&) () from /usr/lib64/libKF5KIOCore.so.5
#1  0x00007ffff4d0a542 in ?? () from /usr/lib64/libKF5KIOCore.so.5
#2  0x00007ffff4d0abd9 in ?? () from /usr/lib64/libKF5KIOCore.so.5
#3  0x00007ffff6261959 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ffff7f22cbd in ?? () from /usr/lib64/libQt5Network.so.5
#5  0x00007ffff6261959 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#6  0x00007ffff7eefadf in QAbstractSocket::disconnectFromHost() () from /usr/lib64/libQt5Network.so.5
#7  0x00007ffff7ef0e95 in QAbstractSocket::~QAbstractSocket() () from /usr/lib64/libQt5Network.so.5
#8  0x00007ffff7ef4ae9 in QTcpSocket::~QTcpSocket() () from /usr/lib64/libQt5Network.so.5
#9  0x00007ffff7f1a53d in QSslSocket::~QSslSocket() () from /usr/lib64/libQt5Network.so.5
#10 0x00007ffff7f1a569 in QSslSocket::~QSslSocket() () from /usr/lib64/libQt5Network.so.5
#11 0x00007ffff7bc970e in ?? () from /usr/lib64/libkdeconnectcore.so.1
#12 0x00007ffff6262938 in QObject::event(QEvent*) () from /usr/lib64/libQt5Core.so.5
#13 0x00007ffff6c8c21c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#14 0x00007ffff6c93aa9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#15 0x00007ffff6238e5a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#16 0x00007ffff623bacd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/libQt5Core.so.5
#17 0x00007ffff62897a3 in ?? () from /usr/lib64/libQt5Core.so.5
#18 0x00007ffff07992f7 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#19 0x00007ffff0799560 in ?? () from /usr/lib64/libglib-2.0.so.0
#20 0x00007ffff079960c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#21 0x00007ffff628958f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#22 0x00007ffff6237b8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#23 0x00007ffff6240084 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#24 0x0000555555555ff4 in ?? ()
#25 0x00007ffff5865541 in __libc_start_main () from /lib64/libc.so.6
#26 0x000055555555605a in _start ()
Comment 9 Kai Uwe Broulik 2018-01-15 10:37:14 UTC
Looks like a cras in KIO, re-assigning. There were some chnages to the TransferJob recently, I think.
Comment 10 Albert Astals Cid 2018-01-15 21:00:31 UTC
David how reproducible is this for you?

Any chance you could get us a crash with more debug information?
Comment 11 David Mattatall 2018-01-16 03:57:38 UTC
Hi it's a 100% reproducible.

Just give me the steps and I'd be happy to follow (I can even build with symbols if you need me too). I think gentoo allows that with a flag.
Comment 12 Albert Astals Cid 2018-01-16 21:37:19 UTC
Yes please, it would be great if you could rebuild the kio package with debug symbols
Comment 13 David Mattatall 2018-01-17 08:34:48 UTC
Unstripped, here ya go

(00:32:58) david@gothbox:~ $ gdb /usr/lib64/libexec/kdeconnectd
GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib64/libexec/kdeconnectd...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/lib64/libexec/kdeconnectd 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffdfb8d700 (LWP 1895)]
[New Thread 0x7fffd7d74700 (LWP 1896)]
kdeconnect.core: KdeConnect daemon starting
[New Thread 0x7fffd7573700 (LWP 1897)]
kdeconnect.core: onStart
kdeconnect.core: KdeConnect daemon started
kdeconnect.core: Broadcasting identity packet
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.plugin.sftp: add to dolphin
kdeconnect.plugin.sftp: Created device: "OnePlus"
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeconnect.plugin.mpris: MPRIS service "org.mpris.MediaPlayer2.clementine" just came online
kdeconnect.plugin.mpris: Mpris addPlayer "org.mpris.MediaPlayer2.clementine" -> "Clementine"
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
QCoreApplication::postEvent: Unexpected null receiver
kdeconnect.plugin.notification: Destroying NotificationsPlugin
kdeconnect.core: Sending onNetworkChange to  1  LinkProviders
kdeconnect.core: Broadcasting identity packet
kdeconnect.core: Starting client ssl (but I'm the server TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: Not loading plugin "kdeconnect_lockdevice" because device doesn't support it
kdeconnect.core: Not loading plugin "kdeconnect_remotecommands" because device doesn't support it
kdeconnect.core: Not loading plugin "kdeconnect_mprisremote" because device doesn't support it
kdeconnect.plugin.mpris: MPRIS service "org.mpris.MediaPlayer2.clementine" just came online
kdeconnect.plugin.mpris: Mpris addPlayer "org.mpris.MediaPlayer2.clementine" -> "Clementine"
kdeconnect.plugin.sftp: add to dolphin
kdeconnect.plugin.sftp: Created device: "OnePlus"
kdeconnect.plugin.battery: Deleting stale BatteryDbusInterface for "OnePlus"
discarding unsupported package "kdeconnect.runcommand.request" for "OnePlus"
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/d7bcce8479ae57c082101e2c15d06087") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/d7bcce8479ae57c082101e2c15d06087") size: 11936
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/837b8138b8af0354f9d3efde1245542d") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/837b8138b8af0354f9d3efde1245542d") size: 16496
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/aca6c32eea236538b6cf35e36ebad5cc") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/aca6c32eea236538b6cf35e36ebad5cc") size: 14008
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/5c496b9e490e39dcba66770882421936") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/5c496b9e490e39dcba66770882421936") size: 5484
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/d7bcce8479ae57c082101e2c15d06087") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/d7bcce8479ae57c082101e2c15d06087") size: 11936
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/837b8138b8af0354f9d3efde1245542d") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/837b8138b8af0354f9d3efde1245542d") size: 16496
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/aca6c32eea236538b6cf35e36ebad5cc") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/aca6c32eea236538b6cf35e36ebad5cc") size: 14008
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/5c496b9e490e39dcba66770882421936") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/5c496b9e490e39dcba66770882421936") size: 5484
kdeconnect.core: Finished transfer QUrl("file:///tmp/kdeconnect/aca6c32eea236538b6cf35e36ebad5cc")
kdeconnect.core: Finished transfer QUrl("file:///tmp/kdeconnect/837b8138b8af0354f9d3efde1245542d")
kdeconnect.core: Couldn't transfer the file successfully QNetworkReply::NetworkError(UnknownNetworkError) "file"

Thread 1 "kdeconnectd" received signal SIGSEGV, Segmentation fault.
0x00007ffff760adc8 in KNotification::setPixmap(QPixmap const&) () from /usr/lib64/libKF5Notifications.so.5
(gdb) thread apply all bt

Thread 4 (Thread 0x7fffd7573700 (LWP 1897)):
#0  0x00007ffff593299d in poll () from /lib64/libc.so.6
#1  0x00007ffff07984f6 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff079860c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff628958f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ffff6237b8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ffff6092d53 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007ffff6097281 in ?? () from /usr/lib64/libQt5Core.so.5
#7  0x00007ffff256d887 in start_thread () from /lib64/libpthread.so.0
#8  0x00007ffff593dd4f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fffd7d74700 (LWP 1896)):
#0  0x00007ffff593299d in poll () from /lib64/libc.so.6
#1  0x00007ffff07984f6 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff079860c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff628958f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ffff6237b8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ffff6092d53 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007ffff52286e5 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007ffff6097281 in ?? () from /usr/lib64/libQt5Core.so.5
#8  0x00007ffff256d887 in start_thread () from /lib64/libpthread.so.0
#9  0x00007ffff593dd4f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fffdfb8d700 (LWP 1895)):
#0  0x00007ffff593299d in poll () from /lib64/libc.so.6
#1  0x00007fffef31785f in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007fffef3195e9 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007fffe1efa1f9 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007ffff6097281 in ?? () from /usr/lib64/libQt5Core.so.5
#5  0x00007ffff256d887 in start_thread () from /lib64/libpthread.so.0
#6  0x00007ffff593dd4f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fffe8c3a800 (LWP 1891)):
#0  0x00007ffff760adc8 in KNotification::setPixmap(QPixmap const&) () from /usr/lib64/libKF5Notifications.so.5
#1  0x00007fffd52a6f2f in Notification::applyIconAndShow() () from /usr/lib64/qt5/plugins/kdeconnect/kdeconnect_notifications.so
#2  0x00007ffff6261cae in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#3  0x00007ffff55ef7ac in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib64/libKF5CoreAddons.so.5
#4  0x00007ffff55f02d1 in KJob::finishJob(bool) () from
Comment 14 Kai Uwe Broulik 2018-01-17 10:23:48 UTC
Well, now it looks like it crashed in KNotification::setPixmap whereas before it would crash in KIO::TransferJob::sendAsyncData, can you perhaps try again?
Comment 15 David Mattatall 2018-01-17 12:43:27 UTC
Interesting. Maybe more than one thing is at play. Here's a new one:

(04:08:25) david@gothbox:/etc/portage $ gdb /usr/lib64/libexec/kdeconnectd
GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib64/libexec/kdeconnectd...Reading symbols from /usr/lib/debug//usr/lib64/libexec/kdeconnectd.debug...done.
done.
(gdb) run
Starting program: /usr/lib64/libexec/kdeconnectd 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffdfb8d700 (LWP 15499)]
[New Thread 0x7fffd7d74700 (LWP 15500)]
kdeconnect.core: KdeConnect daemon starting
[New Thread 0x7fffd7573700 (LWP 15501)]
kdeconnect.core: onStart
kdeconnect.core: KdeConnect daemon started
kdeconnect.core: Broadcasting identity packet
kdeconnect.core: Starting client ssl (but I'm the server TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.core: Not loading plugin "kdeconnect_remotecommands" because device doesn't support it
kdeconnect.core: Not loading plugin "kdeconnect_mprisremote" because device doesn't support it
kdeconnect.core: Not loading plugin "kdeconnect_lockdevice" because device doesn't support it
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeconnect.plugin.mpris: MPRIS service "org.mpris.MediaPlayer2.clementine" just came online
kdeconnect.plugin.mpris: Mpris addPlayer "org.mpris.MediaPlayer2.clementine" -> "Clementine"
kdeconnect.plugin.sftp: add to dolphin
kdeconnect.plugin.sftp: Created device: "OnePlus"
discarding unsupported package "kdeconnect.runcommand.request" for "OnePlus"
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/a77729036df82d1daa9d9085253369f9") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/a77729036df82d1daa9d9085253369f9") size: 6821
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/a77729036df82d1daa9d9085253369f9") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/a77729036df82d1daa9d9085253369f9") size: 6821
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/12e673432d351e0c508edf910094ee9d") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/12e673432d351e0c508edf910094ee9d") size: 9411
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/b63a275187c6c51784fb27abf1e15bb7") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/b63a275187c6c51784fb27abf1e15bb7") size: 2563
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/a77729036df82d1daa9d9085253369f9") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/a77729036df82d1daa9d9085253369f9") size: 6821
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/a77729036df82d1daa9d9085253369f9") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/a77729036df82d1daa9d9085253369f9") size: 6821
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/12e673432d351e0c508edf910094ee9d") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/12e673432d351e0c508edf910094ee9d") size: 9411
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/b63a275187c6c51784fb27abf1e15bb7") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/b63a275187c6c51784fb27abf1e15bb7") size: 2563
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket succesfully stablished an SSL connection
kdeconnect.core: It is a known device "OnePlus"
kdeconnect.plugin.notification: Not found noti by internal Id:  "0|com.google.android.gm|7|null|10061"
kdeconnect.core: Destination QUrl QUrl("/tmp/kdeconnect/654db74a4a34b95672cc883fdbfe4293") lacks a scheme. Setting its scheme to 'file'.
kdeconnect.core: FileTransferJob Downloading payload to QUrl("/tmp/kdeconnect/654db74a4a34b95672cc883fdbfe4293") size: 3071
kdeconnect.core: Finished transfer QUrl("file:///tmp/kdeconnect/654db74a4a34b95672cc883fdbfe4293")

Thread 1 "kdeconnectd" received signal SIGSEGV, Segmentation fault.
0x00007ffff6106ab3 in operator==(QString const&, QString const&) () from /usr/lib64/libQt5Core.so.5
(gdb) thread apply all bt

Thread 4 (Thread 0x7fffd7573700 (LWP 15501)):
#0  0x00007ffff593299d in poll () from /lib64/libc.so.6
#1  0x00007ffff07984f6 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff079860c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff628958f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ffff6237b8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ffff6092d53 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007ffff6097281 in ?? () from /usr/lib64/libQt5Core.so.5
#7  0x00007ffff256d887 in start_thread () from /lib64/libpthread.so.0
#8  0x00007ffff593dd4f in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fffd7d74700 (LWP 15500)):
#0  0x00007ffff593299d in poll () from /lib64/libc.so.6
#1  0x00007ffff07984f6 in ?? () from /usr/lib64/libglib-2.0.so.0
#2  0x00007ffff079860c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#3  0x00007ffff628958f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ffff6237b8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#5  0x00007ffff6092d53 in QThread::exec() () from /usr/lib64/libQt5Core.so.5
#6  0x00007ffff52286e5 in ?? () from /usr/lib64/libQt5DBus.so.5
#7  0x00007ffff6097281 in ?? () from /usr/lib64/libQt5Core.so.5
#8  0x00007ffff256d887 in start_thread () from /lib64/libpthread.so.0
#9  0x00007ffff593dd4f in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fffdfb8d700 (LWP 15499)):
#0  0x00007ffff593299d in poll () from /lib64/libc.so.6
#1  0x00007fffef31785f in ?? () from /usr/lib64/libxcb.so.1
#2  0x00007fffef3195e9 in xcb_wait_for_event () from /usr/lib64/libxcb.so.1
#3  0x00007fffe1efa1f9 in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#4  0x00007ffff6097281 in ?? () from /usr/lib64/libQt5Core.so.5
#5  0x00007ffff256d887 in start_thread () from /lib64/libpthread.so.0
#6  0x00007ffff593dd4f in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fffe8c3a800 (LWP 15495)):
#0  0x00007ffff6106ab3 in operator==(QString const&, QString const&) () from /usr/lib64/libQt5Core.so.5
#1  0x00007ffff760ac4c in KNotification::setTitle(QString const&) () from /usr/lib64/libKF5Notifications.so.5
#2  0x00007fffd48604cd in Notification::createKNotification (this=0x555555a95370, update=<optimized out>, np=...) at /tmp/portage/kde-misc/kdeconnect-1.2/work/kdeconnect-kde-1.2/plugins/notifications/notification.cpp:90
#3  0x00007fffd4861ecd in Notification::update (this=<optimized out>, np=...) at /tmp/portage/kde-misc/kdeconnect-1.2/work/kdeconnect-kde-1.2/plugins/notifications/notification.cpp:76
#4  0x00007fffd4867517 in NotificationsDbusInterface::processPackage (this=0x55555594f2c0, np=...) at /tmp/portage/kde-misc/kdeconnect-1.2/work/kdeconnect-kde-1.2/plugins/notifications/notificationsdbusinterface.cpp:88
#5  0x00007fffd486258b in NotificationsPlugin::receivePackage (this=0x55555594f110, np=...) at /tmp/portage/kde-misc/kdeconnect-1.2/work/kdeconnect-kde-1.2/plugins/notifications/notificationsplugin.cpp:59
#6  0x00007ffff7bc0348 in Device::privateReceivedPackage (this=<optimized out>, np=...) at /tmp/portage/kde-misc/kdeconnect-1.2/work/kdeconnect-kde-1.2/core/device.cpp:345
#7  0x00007ffff6261cae in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#8  0x00007ffff7bc6cd5 in DeviceLink::receivedPackage (this=this@entry=0x55555587c4a0, _t1=...) at /tmp/portage/kde-misc/kdeconnect-1.2/work/kdeconnect-1.2_build/core/kdeconnectcore_autogen/CSWKE6ESUK/moc_devicelink.cpp:209
#9  0x00007ffff7ba35ea in LanDeviceLink::dataReceived (this=0x55555587c4a0) at /tmp/portage/kde-misc/kdeconnect-1.2/work/kdeconnect-kde-1.2/core/backends/lan/landevicelink.cpp:133
#10 0x00007ffff6261cae in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#11 0x00007ffff7ba8666 in SocketLineReader::dataReceived (this=0x555555877b00) at /tmp/portage/kde-misc/kdeconnect-1.2/work/kdeconnect-kde-1.2/core/backends/lan/socketlinereader.cpp:51
#12 0x00007ffff6261cae in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#13 0x00007ffff7f37f2f in ?? () from /usr/lib64/libQt5Network.so.5
#14 0x00007ffff7f22c21 in ?? () from /usr/lib64/libQt5Network.so.5
#15 0x00007ffff6261959 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#16 0x00007ffff7ef02d3 in ?? () from /usr/lib64/libQt5Network.so.5
#17 0x00007ffff7ef038c in ?? () from /usr/lib64/libQt5Network.so.5
#18 0x00007ffff7f00f91 in ?? () from /usr/lib64/libQt5Network.so.5
#19 0x00007ffff6c8c21c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#20 0x00007ffff6c93aa9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#21 0x00007ffff6238e5a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#22 0x00007ffff6289f0f in ?? () from /usr/lib64/libQt5Core.so.5
#23 0x00007ffff07982f7 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#24 0x00007ffff0798560 in ?? () from /usr/lib64/libglib-2.0.so.0
#25 0x00007ffff079860c in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#26 0x00007ffff628958f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#27 0x00007ffff6237b8a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#28 0x00007ffff6240084 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#29 0x0000555555555ff4 in main (argc=<optimized out>, argv=<optimized out>) at /tmp/portage/kde-misc/kdeconnect-1.2/work/kdeconnect-kde-1.2/daemon/kdeconnectd.cpp:88
(gdb) continue
Continuing.
[Thread 0x7fffd7573700 (LWP 15501) exited]
[Thread 0x7fffd7d74700 (LWP 15500) exited]
[Thread 0x7fffdfb8d700 (LWP 15499) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.
Comment 16 David Mattatall 2018-01-17 12:48:27 UTC
This seems to have some percentage to crash when I get an alert on runscope on my phone and I think it's sending that alert to my desktop.
Comment 17 Kai Uwe Broulik 2018-01-17 12:55:07 UTC
I can see why the notification thing crashes, it stores KNotification as a raw pointer but that class will self-delete when closed. That doesn't explain the sendAsyncData one, though
Comment 18 David Mattatall 2018-01-17 13:35:04 UTC
Let me know what further information you need.
Comment 19 David Mattatall 2018-01-18 10:33:10 UTC
Created attachment 109961 [details]
Crashlog for kdeconnect 1 18 2018

Crashlog for 1 18 2018 for kdeconnect 1.2.1
Comment 20 Albert Vaca Cintora 2018-01-20 14:21:26 UTC
(In reply to Kai Uwe Broulik from comment #17)
> I can see why the notification thing crashes, it stores KNotification as a
> raw pointer but that class will self-delete when closed. That doesn't
> explain the sendAsyncData one, though

The notification crash was fixed in 895a9206ffafd4b9725f567fd069fd655f200139
Comment 21 David Mattatall 2018-01-20 14:23:00 UTC
Great so is this to be set to resolved?
Comment 22 Albert Vaca Cintora 2018-01-20 14:36:40 UTC
There are two different stack traces on this issue. I'm not sure if the other crash, on sendAsyncData, has actually been fixed (it might) but I'm gonna mark it as resolved for now. Feel free to reopen if the sendAsyncData crash can be reproduced.
Comment 23 David Mattatall 2018-01-20 20:36:03 UTC
I resolved that crash on load (sendAsyncData) by clearing out the config directory. So I cannot replicate it.
Comment 24 Łukasz Żarnowiecki 2018-03-01 13:33:59 UTC
It's happening to me as well:

Thread 4 (Thread 0x7f0ce82a5700 (LWP 678)):
#0  0x00007f0d0130997b in poll () from /usr/lib/libc.so.6
#1  0x00007f0cfb503ff3 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f0cfb50410e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f0d01c552f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#4  0x00007f0d01bf73db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f0d01a067ae in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f0d00668416 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007f0d01a0bb4d in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f0cfd4d908c in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f0d01313e7f in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f0cf1118700 (LWP 660)):
#0  0x00007f0d0130997b in poll () from /usr/lib/libc.so.6
#1  0x00007f0cf9e508e0 in ?? () from /usr/lib/libxcb.so.1
#2  0x00007f0cf9e52679 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
#3  0x00007f0cf3cb482a in ?? () from /usr/lib/libQt5XcbQpa.so.5
#4  0x00007f0d01a0bb4d in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f0cfd4d908c in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f0d01313e7f in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f0ce7aa4700 (LWP 681)):
#0  0x00007f0d0130997b in poll () from /usr/lib/libc.so.6
#1  0x00007f0cfb503ff3 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f0cfb50410e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f0d01c552f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#4  0x00007f0d01bf73db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f0d01a067ae in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f0d01a0bb4d in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007f0cfd4d908c in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007f0d01313e7f in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f0d03ecd500 (LWP 647)):
#0  0x00007f0d001291c2 in KIO::TransferJob::sendAsyncData (this=this@entry=0x564d1342c990, dataForSlave=...)
    at /home/dlh/abs/packages/kio/repos/extra-x86_64/src/kio-5.43.0/src/core/transferjob.cpp:189
#1  0x00007f0d00129924 in KIO::TransferJobPrivate::slotIODeviceClosed (this=0x564d13397380)
    at /home/dlh/abs/packages/kio/repos/extra-x86_64/src/kio-5.43.0/src/core/transferjob.cpp:457
#2  0x00007f0d0012a0c9 in KIO::TransferJob::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, 
    _a=<optimized out>)
    at /home/dlh/abs/packages/kio/repos/extra-x86_64/src/build/src/core/KF5KIOCore_autogen/include/moc_transferjob.cpp:171
#3  0x00007f0d01c296c6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#4  0x00007f0d00fad06e in ?? () from /usr/lib/libQt5Network.so.5
#5  0x00007f0d01c296c6 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#6  0x00007f0d00f791c1 in QAbstractSocket::disconnectFromHost() () from /usr/lib/libQt5Network.so.5
#7  0x00007f0d00f7a5e6 in QAbstractSocket::~QAbstractSocket() () from /usr/lib/libQt5Network.so.5
#8  0x00007f0d00f7e36a in QTcpSocket::~QTcpSocket() () from /usr/lib/libQt5Network.so.5
#9  0x00007f0d00fa31fd in QSslSocket::~QSslSocket() () from /usr/lib/libQt5Network.so.5
#10 0x00007f0d00fa322a in QSslSocket::~QSslSocket() () from /usr/lib/libQt5Network.so.5
#11 0x00007f0d03ae5df9 in QtSharedPointer::ExternalRefCountData::destroy (this=0x564d133f15f0)
    at /usr/include/qt/QtCore/qsharedpointer_impl.h:157
#12 QSharedPointer<QIODevice>::deref (dd=0x564d133f15f0) at /usr/include/qt/QtCore/qsharedpointer_impl.h:461
#13 QSharedPointer<QIODevice>::deref (this=0x564d1335dd78) at /usr/include/qt/QtCore/qsharedpointer_impl.h:456
#14 QSharedPointer<QIODevice>::~QSharedPointer (this=0x564d1335dd78, __in_chrg=<optimized out>)
    at /usr/include/qt/QtCore/qsharedpointer_impl.h:313
#15 FileTransferJob::~FileTransferJob (this=0x564d1335dd60, __in_chrg=<optimized out>)
    at /home/dlh/abs/community/kdeconnect/trunk/src/build/core/kdeconnectcore_autogen/EWIEGA46WW/../../../../kdeconnect-kde-v1.2.1/core/filetransferjob.h:41
#16 FileTransferJob::~FileTransferJob (this=0x564d1335dd60, __in_chrg=<optimized out>)
    at /home/dlh/abs/community/kdeconnect/trunk/src/build/core/kdeconnectcore_autogen/EWIEGA46WW/../../../../kdeconnect-kde-v1.2.1/core/filetransferjob.h:41
#17 0x00007f0d01c2a131 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#18 0x00007f0d02976fec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#19 0x00007f0d0297e9c6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#20 0x00007f0d01bf8da0 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#21 0x00007f0d01bfba06 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
   from /usr/lib/libQt5Core.so.5
#22 0x00007f0d01c55d04 in ?? () from /usr/lib/libQt5Core.so.5
#23 0x00007f0cfb503e38 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x00007f0cfb504081 in ?? () from /usr/lib/libglib-2.0.so.0
#25 0x00007f0cfb50410e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x00007f0d01c552f1 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
   from /usr/lib/libQt5Core.so.5
#27 0x00007f0cf3d3c482 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#28 0x00007f0d01bf73db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#29 0x00007f0d01c007d8 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#30 0x0000564d12b11e43 in main (argc=<optimized out>, argv=<optimized out>)
    at /home/dlh/abs/community/kdeconnect/trunk/src/kdeconnect-kde-v1.2.1/daemon/kdeconnectd.cpp:88
Comment 25 David Mattatall 2018-03-01 13:47:14 UTC
Just to update,


I'm up to 1.2.1-r1 and it is still constantly crashing in the same manner

Cheers,
David A. Mattatall | 778-323-7857

On 03/01/2018 05:33 AM, Lukasz wrote:
> https://bugs.kde.org/show_bug.cgi?id=388991
>
> Lukasz <dolohow@outlook.com> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |dolohow@outlook.com
>              Status|RESOLVED                    |VERIFIED
>
> --- Comment #24 from Lukasz <dolohow@outlook.com> ---
> It's happening to me as well:
>
> Thread 4 (Thread 0x7f0ce82a5700 (LWP 678)):
> #0  0x00007f0d0130997b in poll () from /usr/lib/libc.so.6
> #1  0x00007f0cfb503ff3 in ?? () from /usr/lib/libglib-2.0.so.0
> #2  0x00007f0cfb50410e in g_main_context_iteration () from
> /usr/lib/libglib-2.0.so.0
> #3  0x00007f0d01c552f1 in
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
>    from /usr/lib/libQt5Core.so.5
> #4  0x00007f0d01bf73db in
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib/libQt5Core.so.5
> #5  0x00007f0d01a067ae in QThread::exec() () from /usr/lib/libQt5Core.so.5
> #6  0x00007f0d00668416 in ?? () from /usr/lib/libQt5DBus.so.5
> #7  0x00007f0d01a0bb4d in ?? () from /usr/lib/libQt5Core.so.5
> #8  0x00007f0cfd4d908c in start_thread () from /usr/lib/libpthread.so.0
> #9  0x00007f0d01313e7f in clone () from /usr/lib/libc.so.6
>
> Thread 3 (Thread 0x7f0cf1118700 (LWP 660)):
> #0  0x00007f0d0130997b in poll () from /usr/lib/libc.so.6
> #1  0x00007f0cf9e508e0 in ?? () from /usr/lib/libxcb.so.1
> #2  0x00007f0cf9e52679 in xcb_wait_for_event () from /usr/lib/libxcb.so.1
> #3  0x00007f0cf3cb482a in ?? () from /usr/lib/libQt5XcbQpa.so.5
> #4  0x00007f0d01a0bb4d in ?? () from /usr/lib/libQt5Core.so.5
> #5  0x00007f0cfd4d908c in start_thread () from /usr/lib/libpthread.so.0
> #6  0x00007f0d01313e7f in clone () from /usr/lib/libc.so.6
>
> Thread 2 (Thread 0x7f0ce7aa4700 (LWP 681)):
> #0  0x00007f0d0130997b in poll () from /usr/lib/libc.so.6
> #1  0x00007f0cfb503ff3 in ?? () from /usr/lib/libglib-2.0.so.0
> #2  0x00007f0cfb50410e in g_main_context_iteration () from
> /usr/lib/libglib-2.0.so.0
> #3  0x00007f0d01c552f1 in
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
>    from /usr/lib/libQt5Core.so.5
> #4  0x00007f0d01bf73db in
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib/libQt5Core.so.5
> #5  0x00007f0d01a067ae in QThread::exec() () from /usr/lib/libQt5Core.so.5
> #6  0x00007f0d01a0bb4d in ?? () from /usr/lib/libQt5Core.so.5
> #7  0x00007f0cfd4d908c in start_thread () from /usr/lib/libpthread.so.0
> #8  0x00007f0d01313e7f in clone () from /usr/lib/libc.so.6
>
> Thread 1 (Thread 0x7f0d03ecd500 (LWP 647)):
> #0  0x00007f0d001291c2 in KIO::TransferJob::sendAsyncData
> (this=this@entry=0x564d1342c990, dataForSlave=...)
>     at
> /home/dlh/abs/packages/kio/repos/extra-x86_64/src/kio-5.43.0/src/core/transferjob.cpp:189
> #1  0x00007f0d00129924 in KIO::TransferJobPrivate::slotIODeviceClosed
> (this=0x564d13397380)
>     at
> /home/dlh/abs/packages/kio/repos/extra-x86_64/src/kio-5.43.0/src/core/transferjob.cpp:457
> #2  0x00007f0d0012a0c9 in KIO::TransferJob::qt_static_metacall (_o=<optimized
> out>, _c=<optimized out>, _id=<optimized out>, 
>     _a=<optimized out>)
>     at
> /home/dlh/abs/packages/kio/repos/extra-x86_64/src/build/src/core/KF5KIOCore_autogen/include/moc_transferjob.cpp:171
> #3  0x00007f0d01c296c6 in QMetaObject::activate(QObject*, int, int, void**) ()
> from /usr/lib/libQt5Core.so.5
> #4  0x00007f0d00fad06e in ?? () from /usr/lib/libQt5Network.so.5
> #5  0x00007f0d01c296c6 in QMetaObject::activate(QObject*, int, int, void**) ()
> from /usr/lib/libQt5Core.so.5
> #6  0x00007f0d00f791c1 in QAbstractSocket::disconnectFromHost() () from
> /usr/lib/libQt5Network.so.5
> #7  0x00007f0d00f7a5e6 in QAbstractSocket::~QAbstractSocket() () from
> /usr/lib/libQt5Network.so.5
> #8  0x00007f0d00f7e36a in QTcpSocket::~QTcpSocket() () from
> /usr/lib/libQt5Network.so.5
> #9  0x00007f0d00fa31fd in QSslSocket::~QSslSocket() () from
> /usr/lib/libQt5Network.so.5
> #10 0x00007f0d00fa322a in QSslSocket::~QSslSocket() () from
> /usr/lib/libQt5Network.so.5
> #11 0x00007f0d03ae5df9 in QtSharedPointer::ExternalRefCountData::destroy
> (this=0x564d133f15f0)
>     at /usr/include/qt/QtCore/qsharedpointer_impl.h:157
> #12 QSharedPointer<QIODevice>::deref (dd=0x564d133f15f0) at
> /usr/include/qt/QtCore/qsharedpointer_impl.h:461
> #13 QSharedPointer<QIODevice>::deref (this=0x564d1335dd78) at
> /usr/include/qt/QtCore/qsharedpointer_impl.h:456
> #14 QSharedPointer<QIODevice>::~QSharedPointer (this=0x564d1335dd78,
> __in_chrg=<optimized out>)
>     at /usr/include/qt/QtCore/qsharedpointer_impl.h:313
> #15 FileTransferJob::~FileTransferJob (this=0x564d1335dd60,
> __in_chrg=<optimized out>)
>     at
> /home/dlh/abs/community/kdeconnect/trunk/src/build/core/kdeconnectcore_autogen/EWIEGA46WW/../../../../kdeconnect-kde-v1.2.1/core/filetransferjob.h:41
> #16 FileTransferJob::~FileTransferJob (this=0x564d1335dd60,
> __in_chrg=<optimized out>)
>     at
> /home/dlh/abs/community/kdeconnect/trunk/src/build/core/kdeconnectcore_autogen/EWIEGA46WW/../../../../kdeconnect-kde-v1.2.1/core/filetransferjob.h:41
> #17 0x00007f0d01c2a131 in QObject::event(QEvent*) () from
> /usr/lib/libQt5Core.so.5
> #18 0x00007f0d02976fec in QApplicationPrivate::notify_helper(QObject*, QEvent*)
> () from /usr/lib/libQt5Widgets.so.5
> #19 0x00007f0d0297e9c6 in QApplication::notify(QObject*, QEvent*) () from
> /usr/lib/libQt5Widgets.so.5
> #20 0x00007f0d01bf8da0 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
> () from /usr/lib/libQt5Core.so.5
> #21 0x00007f0d01bfba06 in QCoreApplicationPrivate::sendPostedEvents(QObject*,
> int, QThreadData*) ()
>    from /usr/lib/libQt5Core.so.5
> #22 0x00007f0d01c55d04 in ?? () from /usr/lib/libQt5Core.so.5
> #23 0x00007f0cfb503e38 in g_main_context_dispatch () from
> /usr/lib/libglib-2.0.so.0
> #24 0x00007f0cfb504081 in ?? () from /usr/lib/libglib-2.0.so.0
> #25 0x00007f0cfb50410e in g_main_context_iteration () from
> /usr/lib/libglib-2.0.so.0
> #26 0x00007f0d01c552f1 in
> QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
>    from /usr/lib/libQt5Core.so.5
> #27 0x00007f0cf3d3c482 in ?? () from /usr/lib/libQt5XcbQpa.so.5
> #28 0x00007f0d01bf73db in
> QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from
> /usr/lib/libQt5Core.so.5
> #29 0x00007f0d01c007d8 in QCoreApplication::exec() () from
> /usr/lib/libQt5Core.so.5
> #30 0x0000564d12b11e43 in main (argc=<optimized out>, argv=<optimized out>)
>     at
> /home/dlh/abs/community/kdeconnect/trunk/src/kdeconnect-kde-v1.2.1/daemon/kdeconnectd.cpp:88
>
Comment 26 Christoph Feck 2018-03-01 14:14:57 UTC
Reopening based on recent comments. Please set the KF5 frameworks version number.
Comment 27 Albert Astals Cid 2018-03-01 22:41:07 UTC
(In reply to Lukasz from comment #24)
> It's happening to me as well:

Lukasz can you reproduce this easily? Do you know how to run kdeconnect under valgrind? I'd help me quite a bit having the valgrind trace to understand what's going on.
Comment 28 David Mattatall 2018-03-02 06:13:06 UTC
Hi Albert,

Provide instruction and I'd be happy to test

Cheers,
David A. Mattatall | 778-323-7857

On 03/01/2018 02:41 PM, Albert Astals Cid wrote:
> https://bugs.kde.org/show_bug.cgi?id=388991
>
> --- Comment #27 from Albert Astals Cid <aacid@kde.org> ---
> (In reply to Lukasz from comment #24)
>> It's happening to me as well:
> Lukasz can you reproduce this easily? Do you know how to run kdeconnect under
> valgrind? I'd help me quite a bit having the valgrind trace to understand
> what's going on.
>
Comment 29 Albert Astals Cid 2018-03-03 16:11:33 UTC
go to a terminal, make sure you have valgrind installed and then run

killall kdeconnectd; valgrind /usr/lib/kdeconnectd

and try to make it crash, attach the output of valgrind
Comment 30 H L Prasad 2018-03-04 04:58:44 UTC
I am also facing the same issue. I'm using KDE Neon User Edition with kdeconnect version 1.2.1-0neon+16.04+xenial+build31, on laptop, and kdeconnect app v1.7.1 on Android. I observed that if I disable 'Receive Notifications' on KDEConnect android, then this crash of kdeconnectd does not happen on my laptop.
Comment 31 David Mattatall 2018-03-04 06:41:37 UTC
Here's my valgrind output.

It's absolutely massive, I hope it's useful.
https://we.tl/2rAd4UrD49
Comment 32 David Mattatall 2018-03-04 06:42:02 UTC
Here's my valgrind output.

It's absolutely massive, I hope it's useful.
https://we.tl/2rAd4UrD49
Comment 33 Albert Astals Cid 2018-03-04 10:27:02 UTC
(In reply to David Mattatall from comment #32)
> Here's my valgrind output.
> 
> It's absolutely massive, I hope it's useful.
> https://we.tl/2rAd4UrD49

That's not the output of valgrind to the terminal.
Comment 34 David Mattatall 2018-03-04 19:35:58 UTC
Created attachment 111184 [details]
valgrind terminal output for crash

Here's the valgrind terminal output
Comment 35 Albert Astals Cid 2018-03-04 19:49:30 UTC
David, your backtrace is different from the one Lukasz shows, yours is about the notifications code

==9724== Invalid read of size 8
==9724==    at 0x53DBD0C: KNotification::setTitle(QString const&) (in /usr/lib64/libKF5Notifications.so.5.43.0)
==9724==    by 0x265F8886: Notification::createKNotification(bool, NetworkPackage const&) (notification.cpp:94)
==9724==    by 0x265FEC78: NotificationsDbusInterface::processPackage(NetworkPackage const&) (notificationsdbusinterface.cpp:96)
==9724==    by 0x265F9C0A: NotificationsPlugin::receivePackage(NetworkPackage const&) (notificationsplugin.cpp:59)
==9724==    by 0x4E733B7: Device::privateReceivedPackage(NetworkPackage const&) (device.cpp:345)
==9724==    by 0x6BDED4D: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==    by 0x4E79D74: DeviceLink::receivedPackage(NetworkPackage const&) (moc_devicelink.cpp:209)
==9724==    by 0x4E56659: LanDeviceLink::dataReceived() (landevicelink.cpp:133)
==9724==    by 0x6BDED4D: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==    by 0x4E5B6D5: SocketLineReader::dataReceived() (socketlinereader.cpp:51)
==9724==    by 0x6BDED4D: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==    by 0x78E8C1E: ??? (in /usr/lib64/libQt5Network.so.5.9.4)
==9724==  Address 0x27af00a0 is 16 bytes inside a block of size 24 free'd
==9724==    at 0x4C2C63B: operator delete(void*) (vg_replace_malloc.c:576)
==9724==    by 0x6BDF9D7: QObject::event(QEvent*) (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==    by 0x5BD7D6B: QApplicationPrivate::notify_helper(QObject*, QEvent*) (in /usr/lib64/libQt5Widgets.so.5.9.4)
==9724==    by 0x5BDF5F8: QApplication::notify(QObject*, QEvent*) (in /usr/lib64/libQt5Widgets.so.5.9.4)
==9724==    by 0x6BB5E59: QCoreApplication::notifyInternal2(QObject*, QEvent*) (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==    by 0x6BB8ACC: QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==    by 0x6C06822: ??? (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==    by 0xCD64516: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.5200.3)
==9724==    by 0xCD6477F: ??? (in /usr/lib64/libglib-2.0.so.0.5200.3)
==9724==    by 0xCD6482B: g_main_context_iteration (in /usr/lib64/libglib-2.0.so.0.5200.3)
==9724==    by 0x6C0660E: QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==    by 0x6BB4B89: QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==  Block was alloc'd at
==9724==    at 0x4C2B57F: operator new(unsigned long) (vg_replace_malloc.c:334)
==9724==    by 0x265F8DDF: Notification::createKNotification(bool, NetworkPackage const&) (notification.cpp:86)
==9724==    by 0x265F91FD: Notification::Notification(NetworkPackage const&, QObject*) (notification.cpp:53)
==9724==    by 0x265FF4D0: NotificationsDbusInterface::processPackage(NetworkPackage const&) (notificationsdbusinterface.cpp:84)
==9724==    by 0x265F9C0A: NotificationsPlugin::receivePackage(NetworkPackage const&) (notificationsplugin.cpp:59)
==9724==    by 0x4E733B7: Device::privateReceivedPackage(NetworkPackage const&) (device.cpp:345)
==9724==    by 0x6BDED4D: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==    by 0x4E79D74: DeviceLink::receivedPackage(NetworkPackage const&) (moc_devicelink.cpp:209)
==9724==    by 0x4E56659: LanDeviceLink::dataReceived() (landevicelink.cpp:133)
==9724==    by 0x6BDED4D: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib64/libQt5Core.so.5.9.4)
==9724==    by 0x4E5B6D5: SocketLineReader::dataReceived() (socketlinereader.cpp:51)
==9724==    by 0x6BDED4D: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib64/libQt5Core.so.5.9.4)

I suggest you open a new bug so we can track the kio related one here.
Comment 36 David Mattatall 2018-03-04 20:12:23 UTC
This was my ticket initially and has always been about this notifications bug.
Comment 37 Albert Astals Cid 2018-03-04 21:06:51 UTC
Ok, so the bug is yours

Find someone else that is not me to help you fix it and debug it, i'm only interested in the kio side since it's the only part i have some expertise, so removing myself from this bug, if someone has a valgrind trace involving KIO open a new bug then.

You may also want to find someone else to move it out of the frameworks-kio since this bug that belongs to you may be in the wrong product.
Comment 38 David Mattatall 2018-03-06 10:50:10 UTC
I mean, The bug is not mine, I just filed it. I have no idea where this should go or how to request it be reassigned.

I'm just saying my whole issue has always been that when I get a slack notification on my phone kdeconnect crashes.

Anyone out there?
Comment 39 Christoph Feck 2018-03-29 18:01:01 UTC
https://cgit.kde.org/kdeconnect-kde.git/commit/?id=6495e8dc538610fb679df0f1522243103a3a1789 could have fixed it, but it was committed after the kdeconnect 1.2.1 release. If you can test kdeconnect master branch, please confirm.
Comment 40 Synthetic451 2018-04-26 19:54:13 UTC
I am not the original bug reporter, but I've been getting the exact same crash as he is. After updating to KDE Connect 1.3 (from the Fedora testing repos), the crash no longer seems to happen! Also it seems to have fixed the issue where I have to keep my phone awake to get notifications.
Comment 41 daniel roi 2018-08-13 15:24:47 UTC
On a freshly installed Arch Linux wth kdeconnect 1.3.1-1 I see this in my logs:

[ 2124.044491] kdeconnectd[6908]: segfault at 8 ip 00007f3b7c892fbf sp 00007ffc9fa641d0 error 4 in libQt5XcbQpa.so.5.11.1[7f3b7c88b000+d4000]
[ 2532.915715] kdeconnectd[7661]: segfault at 8 ip 00007f28b4c0bfbf sp 00007ffe8d171400 error 4 in libQt5XcbQpa.so.5.11.1[7f28b4c04000+d4000]
[ 2685.638765] kdeconnectd[8090]: segfault at 8 ip 00007fe03721bfbf sp 00007ffd002331d0 error 4 in libQt5XcbQpa.so.5.11.1[7fe037214000+d4000]
[ 2738.130807] kdeconnectd[8449]: segfault at 8 ip 00007ffb40b7ffbf sp 00007ffcc1bae8d0 error 4 in libQt5XcbQpa.so.5.11.1[7ffb40b78000+d4000]
[ 2817.788883] kdeconnectd[8732]: segfault at 8 ip 00007f81a2c1ffbf sp 00007ffcbcb08830 error 4 in libQt5XcbQpa.so.5.11.1[7f81a2c18000+d4000]
[ 3087.642255] kdeconnectd[9392]: segfault at 8 ip 00007f78b00ddfbf sp 00007ffe586d45a0 error 4 in libQt5XcbQpa.so.5.11.1[7f78b00d6000+d4000]
[ 3409.277672] kdeconnectd[10123]: segfault at 8 ip 00007fe77ccfefbf sp 00007fff680def70 error 4 in libQt5XcbQpa.so.5.11.1[7fe77ccf7000+d4000]
[ 3441.648155] kdeconnectd[10389]: segfault at 8 ip 00007fa04c6affbf sp 00007ffd4577ee80 error 4 in libQt5XcbQpa.so.5.11.1[7fa04c6a8000+d4000]
Comment 42 daniel roi 2018-08-16 15:20:19 UTC
Nevermind, it seems the segfault I reported above only happened once, I can't reproduce it.
Comment 43 David Mattatall 2018-08-22 23:51:04 UTC
Just bumping this. Still crashes and detaches.
Comment 44 Kai Uwe Broulik 2018-10-19 07:19:10 UTC
*** Bug 400010 has been marked as a duplicate of this bug. ***
Comment 45 Albert Vaca Cintora 2018-10-19 12:57:58 UTC
1.2 is an old version, this problem is fixed in the current version 1.3.2.