https://bugs.kde.org/show_bug.cgi?id=469160
Bug ID: 469160 Summary: kscreen-doctor segmentation faults when exiting Classification: Plasma Product: KScreen Version: 5.27.4 Platform: Archlinux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: common Assignee: kscreen-bugs-n...@kde.org Reporter: mooodyhun...@outlook.com Target Milestone: --- SUMMARY kscreen-doctor sometimes gets killed (when calling the destructors?) STEPS TO REPRODUCE 1. run `kscreen-doctor -j` 2. sometimes it aborts with "malloc_consolidate(): unaligned fastbin chunk detected" OBSERVED RESULT Sometimes: ~ > kscreen-doctor -j malloc_consolidate(): unaligned fastbin chunk detected fish: Job 1, 'kscreen-doctor -j' terminated by signal SIGABRT (Abort) EXPECTED RESULT kscreen-doctor prints my screen config normally SOFTWARE/OS VERSIONS Linux/KDE Plasma: /usr/bin/kscreen-doctor is owned by libkscreen 5.27.4-1 (available in About System) KDE Plasma Version: 5.27.4 KDE Frameworks Version: 5.105.0 Qt Version: 5.15.9 ADDITIONAL INFORMATION Thread 1 "kscreen-doctor" received signal SIGABRT, Aborted. __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0; (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 #1 0x00007ffff6ca0953 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78 #2 0x00007ffff6c51ea8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007ffff6c3b53d in __GI_abort () at abort.c:79 #4 0x00007ffff6c3c29e in __libc_message (fmt=fmt@entry=0x7ffff6db377e "%s\n") at ../sysdeps/posix/libc_fatal.c:150 #5 0x00007ffff6caa657 in malloc_printerr (str=str@entry=0x7ffff6db6400 "malloc_consolidate(): unaligned fastbin chunk detected") at malloc.c:5651 #6 0x00007ffff6cab2ec in malloc_consolidate (av=av@entry=0x7ffff6df1aa0 <main_arena>) at malloc.c:4736 #7 0x00007ffff6cac7e0 in _int_free (av=0x7ffff6df1aa0 <main_arena>, p=0x555555813ad0, have_lock=<optimized out>, have_lock@entry=0) at malloc.c:4660 #8 0x00007ffff6caee63 in __GI___libc_free (mem=<optimized out>) at malloc.c:3367 #9 0x00007ffff72ea9b6 in QArrayData::deallocate (data=<optimized out>, objectSize=objectSize@entry=2, alignment=alignment@entry=8) at tools/qarraydata.cpp:267 #10 0x00007ffff1e7b844 in QTypedArrayData<unsigned short>::deallocate (data=<optimized out>) at /usr/include/qt/QtCore/qarraydata.h:237 #11 QString::~QString (this=<optimized out>, this=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1311 #12 QString::~QString (this=<optimized out>, this=<optimized out>) at /usr/include/qt/QtCore/qstring.h:1311 #13 KIconThemeDir::~KIconThemeDir (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kiconthemes/kiconthemes-5.105.0/src/kicontheme.cpp:114 #14 qDeleteAll<QTypedArrayData<KIconThemeDir*>::const_iterator> (end=..., begin=...) at /usr/include/qt/QtCore/qalgorithms.h:320 #15 qDeleteAll<QVector<KIconThemeDir*> > (c=...) at /usr/include/qt/QtCore/qalgorithms.h:328 #16 KIconTheme::~KIconTheme (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kiconthemes/kiconthemes-5.105.0/src/kicontheme.cpp:391 #17 0x00007ffff1e74a9a in KIconThemeNode::~KIconThemeNode (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kiconthemes/kiconthemes-5.105.0/src/kiconloader.cpp:127 #18 qDeleteAll<QList<KIconThemeNode*>::const_iterator> (end=..., begin=...) at /usr/include/qt/QtCore/qalgorithms.h:320 #19 qDeleteAll<QList<KIconThemeNode*> > (c=...) at /usr/include/qt/QtCore/qalgorithms.h:328 #20 KIconLoaderPrivate::clear (this=this@entry=0x5555557a79c0) at /usr/src/debug/kiconthemes/kiconthemes-5.105.0/src/kiconloader.cpp:255 #21 0x00007ffff1e76fde in KIconLoaderPrivate::~KIconLoaderPrivate (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kiconthemes/kiconthemes-5.105.0/src/kiconloader.cpp:243 #22 std::default_delete<KIconLoaderPrivate>::operator() (this=<optimized out>, __ptr=0x5555557a79c0) at /usr/include/c++/12.2.1/bits/unique_ptr.h:95 #23 std::default_delete<KIconLoaderPrivate>::operator() (__ptr=0x5555557a79c0, this=<optimized out>) at /usr/include/c++/12.2.1/bits/unique_ptr.h:89 #24 std::unique_ptr<KIconLoaderPrivate, std::default_delete<KIconLoaderPrivate> >::~unique_ptr (this=<optimized out>, this=<optimized out>) at /usr/include/c++/12.2.1/bits/unique_ptr.h:396 #25 KIconLoader::~KIconLoader (this=<optimized out>, this=<optimized out>) at /usr/src/debug/kiconthemes/kiconthemes-5.105.0/src/kiconloader.cpp:460 #26 0x00007ffff1e771ee in (anonymous namespace)::Q_QGS_globalIconLoader::innerFunction()::Holder::~Holder() () at /usr/src/debug/kiconthemes/kiconthemes-5.105.0/src/kiconloader.cpp:1656 #27 0x00007ffff6c54445 in __run_exit_handlers (status=0, listp=0x7ffff6df1660 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108 #28 0x00007ffff6c545b0 in __GI_exit (status=<optimized out>) at exit.c:138 #29 0x00007ffff6c3c797 in __libc_start_call_main (main=main@entry=0x555555559170 <main(int, char**)>, argc=argc@entry=2, argv=argv@entry=0x7fffffffe208) at ../sysdeps/nptl/libc_start_call_main.h:74 #30 0x00007ffff6c3c84a in __libc_start_main_impl (main=0x555555559170 <main(int, char**)>, argc=2, argv=0x7fffffffe208, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe1f8) at ../csu/libc-start.c:360 #31 0x000055555555aa15 in _start () -- You are receiving this mail because: You are watching all bug changes.