Bug 511894

Summary: Memory overuse in KConfigIniBackend::parseConfig
Product: [Plasma] plasmashell Reporter: Andrew Rembrandt <public>
Component: generic-crashAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde, kdedev, me
Priority: NOR Keywords: drkonqi
Version First Reported In: 6.5.1   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description Andrew Rembrandt 2025-11-10 03:25:17 UTC
Application: plasmashell (6.5.1)

ApplicationNotResponding [ANR]: false
Qt Version: 6.10.0
Frameworks Version: 6.19.0
Operating System: Linux 6.17.6-xanmod1-1-edge-x64v3 x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 6.5.1 [CoredumpBackend]

-- Information about the crash:
Hi KDE QA/Devs,
I just booted my laptop (Framework 13, AMD AI 7 350 with Radeon 860M) and the saved session was resumed. I tried to click Night Light icon on the system tray but plasmashell crashed (either from or just before the click).

Happy to answer any questions / attempt to repro etc.

Many thanks for all the hard work!
Andrew

The reporter is unsure if this crash is reproducible.

-- Backtrace (Reduced):
#4  __pthread_kill_implementation (threadid=<optimized out>, signo=6, no_tid=<optimized out>) at pthread_kill.c:44
#5  0x00007f5e72c3e410 in __GI_raise (sig=6) at ../sysdeps/posix/raise.c:26
#6  0x00007f5e72c2557a in __GI_abort () at abort.c:77
#7  0x00007f5e72c26613 in __libc_message_impl (fmt=<optimized out>) at ../sysdeps/posix/libc_fatal.c:138
#8  0x00007f5e72ca2d65 in malloc_printerr (str=str@entry=0x7f5e72db7298 "malloc_consolidate(): unaligned fastbin chunk detected") at malloc.c:5892
#9  0x00007f5e72ca3a8c in malloc_consolidate (av=av@entry=0x7f5e72e09ac0 <main_arena>) at malloc.c:4964
#10 0x00007f5e72ca5f98 in _int_malloc (av=av@entry=0x7f5e72e09ac0 <main_arena>, bytes=bytes@entry=32768) at malloc.c:4174
#11 0x00007f5e72ca6a59 in __libc_malloc2 (bytes=32768) at malloc.c:3458
#12 0x00007f5e736342df in allocateHelper (dptr=<synthetic pointer>, objectSize=1, alignment=16, capacity=<optimized out>, option=QArrayData::Grow) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qarraydata.cpp:178
#13 QArrayData::allocate1 (dptr=<synthetic pointer>, capacity=<optimized out>, option=QArrayData::Grow) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qarraydata.cpp:205
#14 QTypedArrayData<char>::allocate (capacity=<optimized out>, option=QArrayData::Grow) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qarraydata.h:136
#15 QArrayDataPointer<char>::QArrayDataPointer (this=0x7ffc3762f7c0, alloc=<optimized out>, n=<optimized out>, option=QArrayData::Grow) at /usr/src/debug/qt6-base/qtbase/src/corelib/tools/qarraydatapointer.h:58
#16 QByteArray::reallocData (this=this@entry=0x7ffc3762f970, alloc=alloc@entry=20150, option=option@entry=QArrayData::Grow) at /usr/src/debug/qt6-base/qtbase/src/corelib/text/qbytearray.cpp:1993
#17 0x00007f5e7363451b in QByteArray::resize (this=0x7ffc3762f970, size=20150) at /usr/src/debug/qt6-base/qtbase/src/corelib/text/qbytearray.cpp:1917
#18 0x00007f5e73530a38 in QIODevice::readAll (this=this@entry=0x7ffc3762f900) at /usr/src/debug/qt6-base/qtbase/src/corelib/io/qiodevice.cpp:1273
#19 0x00007f5e74dc5d98 in KConfigIniBackend::parseConfig (this=<optimized out>, currentLocale=..., entryMap=..., options=..., merging=false) at /usr/src/debug/kconfig/kconfig-6.19.0/src/core/kconfigini.cpp:83


Reported using DrKonqi
Comment 1 Andrew Rembrandt 2025-11-10 03:25:21 UTC
Created attachment 186663 [details]
New crash information added by DrKonqi

DrKonqi auto-attaching complete backtrace.
Comment 2 David Edmundson 2025-11-10 11:18:03 UTC
*** Bug 511862 has been marked as a duplicate of this bug. ***
Comment 3 David Edmundson 2025-11-10 11:19:07 UTC
If you can reliably reproduce, if you can run:

strace plasmashell --replace > plasmastracelog

and then reproduce that would be amazing.
Comment 4 Andrew Rembrandt 2025-11-11 14:08:29 UTC
Hi David,
I've since upgraded to Plasma 6.5.2 and booted twice and haven't seen the crash / been able to reproduce.

Perhaps it's been fixed...
However, I'll try strace if I do happen to see the crash again

Many thanks,
Andrew
Comment 5 TraceyC 2026-01-13 23:57:06 UTC
Based on the backtrace this looks like the same crash as bug 506642, so I'll merge this in with that report. If you do experience the crash again, please make a note in 506642. Thanks.

*** This bug has been marked as a duplicate of bug 506642 ***