Bug 414862

Summary: ksplashqml crashed after login [double free or corruption (fasttop)]
Product: [Plasma] plasmashell Reporter: Szőts Ákos <akos+kde>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.17.3   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Szőts Ákos 2019-12-05 13:44:08 UTC
SUMMARY

After a logout I logged in again when DrKonqi reported that ksplashqml has crashed.

Additionally, it's not possible to report ksplashqml crashes via DrKonqi since the "Report error" button is disabled there.

Backtrace:
Application: ksplashqml (ksplashqml), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
29	  return SYSCALL_CANCEL (poll, fds, nfds, timeout);
[Current thread is 1 (Thread 0x7f4918b792c0 (LWP 25853))]

Thread 2 (Thread 0x7f4915971700 (LWP 25864)):
#0  0x00007f491b78abdf in __GI___poll (fds=0x7f49080029e0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f4919b3e27e in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0x7f49080029e0, timeout=<optimized out>, context=0x7f4908000c30) at ../glib/gmain.c:4216
#2  g_main_context_iterate (context=context@entry=0x7f4908000c30, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:3912
#3  0x00007f4919b3e39f in g_main_context_iteration (context=0x7f4908000c30, may_block=may_block@entry=1) at ../glib/gmain.c:3978
#4  0x00007f491bd2a98b in QEventDispatcherGlib::processEvents (this=0x7f4908000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f491bcd30cb in QEventLoop::exec (this=this@entry=0x7f4915970d70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:140
#6  0x00007f491bb0b021 in QThread::exec (this=this@entry=0x7f491c674d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:120
#7  0x00007f491c5f24f6 in QDBusConnectionManager::run (this=0x7f491c674d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f491bb0c1a2 in QThreadPrivate::start (arg=0x7f491c674d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:360
#9  0x00007f491ad02f2a in start_thread (arg=<optimized out>) at pthread_create.c:479
#10 0x00007f491b7954af in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f4918b792c0 (LWP 25853)):
[KCrash Handler]
#6  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7  0x00007f491b6bb55d in __GI_abort () at abort.c:79
#8  0x00007f491b71545f in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7f491b823f49 "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#9  0x00007f491b71c8fc in malloc_printerr (str=str@entry=0x7f491b825bd8 "double free or corruption (fasttop)") at malloc.c:5332
#10 0x00007f491b71e425 in _int_free (av=0x7f48fc000020, p=0x7f48fc6c7e60, have_lock=0) at malloc.c:4266
#11 0x00007f491c4335e0 in QCache<QByteArray, QOpenGLProgramBinaryCache::MemCacheEntry>::clear (this=0x7f491c58c4f0 <QOpenGLShaderProgramPrivate::linkBinary()::binCache+16>) at /usr/include/c++/9/bits/atomic_base.h:326
#12 QCache<QByteArray, QOpenGLProgramBinaryCache::MemCacheEntry>::~QCache (this=0x7f491c58c4f0 <QOpenGLShaderProgramPrivate::linkBinary()::binCache+16>, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qcache.h:93
#13 QOpenGLProgramBinaryCache::~QOpenGLProgramBinaryCache (this=0x7f491c58c4e0 <QOpenGLShaderProgramPrivate::linkBinary()::binCache>, __in_chrg=<optimized out>) at opengl/qopenglprogrambinarycache_p.h:60
#14 0x00007f491b6d4877 in __run_exit_handlers (status=0, listp=0x7f491b856578 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
#15 0x00007f491b6d4a2c in __GI_exit (status=<optimized out>) at exit.c:139
#16 0x00007f491b6bce12 in __libc_start_main (main=0x561a57731710 <main(int, char**)>, argc=2, argv=0x7fff4dba1478, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff4dba1468) at ../csu/libc-start.c:342
#17 0x0000561a577317ba in _start () at ../sysdeps/x86_64/start.S:120
[Inferior 1 (process 25853) detached]


Operating System: openSUSE Tumbleweed 20191127
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.1
Kernel Version: 5.3.12-1-default
OS Type: 64-bit
Comment 1 Nate Graham 2021-02-23 20:23:23 UTC
Memory issue deep in the graphics stack:

#11 0x00007f491c4335e0 in QCache<QByteArray, QOpenGLProgramBinaryCache::MemCacheEntry>::clear (this=0x7f491c58c4f0 <QOpenGLShaderProgramPrivate::linkBinary()::binCache+16>) at /usr/include/c++/9/bits/atomic_base.h:326
#12 QCache<QByteArray, QOpenGLProgramBinaryCache::MemCacheEntry>::~QCache (this=0x7f491c58c4f0 <QOpenGLShaderProgramPrivate::linkBinary()::binCache+16>, __in_chrg=<optimized out>) at ../../include/QtCore/../../src/corelib/tools/qcache.h:93
#13 QOpenGLProgramBinaryCache::~QOpenGLProgramBinaryCache (this=0x7f491c58c4e0 <QOpenGLShaderProgramPrivate::linkBinary()::binCache>, __in_chrg=<optimized out>) at opengl/qopenglprogrambinarycache_p.h:60

No KDE code is implicated so this seems to be an issue in Qt. You can go report it to them, or hope it's fixed in Qt 6 :)