Bug 486016

Summary: CTD malloc(): unaligned tcache chunk detected
Product: [Applications] knetwalk Reporter: Lone_Wolf <Lone_Wolf>
Component: generalAssignee: Ashwin Rajeev <ashwin_rajeev>
Status: REPORTED ---    
Severity: normal CC: aacid, kde-games-bugs-null, Lone_Wolf
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: valgrind log from starting & closing knetwalk
journal snippet of drkonqi during knetwalk crash
crash log with coredump info
CTD log with debug info 2024-06-07 approx 01:10
crash log with lots more debug symbols

Description Lone_Wolf 2024-04-23 12:57:03 UTC
Created attachment 168835 [details]
valgrind log from starting & closing knetwalk

SUMMARY

When clicking new in menu knetwalk occasionally crashes to desktop. 
When this happens CLI output shows 
malloc(): unaligned tcache chunk detected



SOFTWARE/OS VERSIONS
KDE Plasma Version:  6.0.4
KDE Frameworks Version:  6.1.0
Qt Version: 6.7.0

Knetwalk version 24.02.2


https://forum.qt.io/topic/142378/what-is-reson-behind-error-malloc-unaligned-tcache-chunk-detected suggested to run 
valgrind --tool=memcheck --leak-check=yes /path/to/app

Running in a X session with openbox as WM and lxqt as DE.
Comment 1 Albert Astals Cid 2024-04-23 14:15:16 UTC
> When clicking new in menu knetwalk occasionally crashes to desktop. 

There's sadly nothing really problematic in that valgrind trace.

If you could submit the crash report that happens when you get the crash (drkonqui) it could give us some pointer.

For other devels, i've found https://crash-reports.kde.org/organizations/kde/issues/11014/ that may be this, but the backtrace is rather not super useful.
Comment 2 Lone_Wolf 2024-04-23 15:25:12 UTC
(In reply to Albert Astals Cid from comment #1)
> > When clicking new in menu knetwalk occasionally crashes to desktop. 
> 
> There's sadly nothing really problematic in that valgrind trace.
> 
> If you could submit the crash report that happens when you get the crash
> (drkonqui) it could give us some pointer.
> 
> For other devels, i've found
> https://crash-reports.kde.org/organizations/kde/issues/11014/ that may be
> this, but the backtrace is rather not super useful.

I installed drkonqi and debug symbols for knetwalk . gdb and debuginfod are also installed.

Drkonqi is triggered when knetwalk crashes, but claims the crash report (attached) is not useful.
I'll need more guidance.
Comment 3 Lone_Wolf 2024-04-23 15:26:23 UTC
Created attachment 168842 [details]
journal snippet of drkonqi during knetwalk crash
Comment 4 Lone_Wolf 2024-04-26 20:38:36 UTC
Created attachment 168930 [details]
crash log with coredump info

I had coredumps disabled (building a certain compiler gives lots of coredumps that only hinder the build and have no other purpose as far as I know ) and it seems dr konqi needs them.

new dr konqi crash report attached, hope this helps.
Comment 5 Albert Astals Cid 2024-05-16 21:19:07 UTC
It's crashing in "new" which is like if you were running out of memory or something, are you running some weird kernel or libc or something that tries to be "extra secure" by limiting the memory usage?
Comment 6 Lone_Wolf 2024-05-22 15:29:45 UTC
(In reply to Albert Astals Cid from comment #5)
> It's crashing in "new" which is like if you were running out of memory or
> something, are you running some weird kernel or libc or something that tries
> to be "extra secure" by limiting the memory usage?

16 GiB ram, swapfile of 24 GiB .
Packages from archlinux official repos, kernel config & build files at https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/blob/9f042c5b72f15799ec45d5acec115dfa2b2caf34/config 

I'm 99% sure the crashes started after archlinux switched to Qt 6.7.0 early in april, but haven't occured in the past 2 weeks.
Could Qt be involved ?
Comment 7 Lone_Wolf 2024-06-05 09:22:30 UTC
Just had another crash, but crash reporter was disabled so no logs. (re-enabled now)

Versions 
KDE Plasma Version:  6.0.5
KDE Frameworks Version:  6.2.0
Qt Version: 6.7.1
Knetwalk version 24.05.0

kernel 6.9.3
Comment 8 Albert Astals Cid 2024-06-06 21:30:29 UTC
I'm also on archlinux and can't reproduce this crash at all.

Do i understand that just opening knetwalk, and pressing and holding Ctrl+N will make it crash eventually for you? after how much time?

Which difficulty and theme are you using?

Which Qt style are you using?  if you do knetwalk -style blo what styles tell you that you have available?
Comment 9 Lone_Wolf 2024-06-06 23:28:08 UTC
(In reply to Albert Astals Cid from comment #8)
> I'm also on archlinux and can't reproduce this crash at all.
> 
> Do i understand that just opening knetwalk, and pressing and holding Ctrl+N
> will make it crash eventually for you? after how much time?
Nope, start knetwalk
play until solved
click new
often no problem, sometimes the described crash .

I just encountered a crash again , attached the log.
> 
> Which difficulty and theme are you using?
from ~/config/knetwalkrc
[KgDifficulty]
Level=Hard

[KgTheme]
Theme=themes/electronic.desktop

> 
> Which Qt style are you using?  if you do knetwalk -style blo what styles
> tell you that you have available?

$ knetwalk --style blo
QApplication: invalid style override 'blo' passed, ignoring it.
        Available styles: Oxygen, Windows, Fusion
[ALSOFT] (EE) Could not query RTKit: No such file or directory (2)
$
Comment 10 Lone_Wolf 2024-06-06 23:31:35 UTC
Created attachment 170215 [details]
CTD log with debug info 2024-06-07 approx 01:10
Comment 11 Lone_Wolf 2024-06-07 09:52:54 UTC
No idea how to verify the used style.

I don't use/have installed systemsettings. Running lxqt as DE with openbox as WM so I expect the style to be Fusion .
Comment 12 Lone_Wolf 2024-06-13 14:03:22 UTC
Created attachment 170470 [details]
crash log with lots more debug symbols

Checking previious logs showed radeonsi_dri.so and libc.so.6 as missing debug symbols .
I installed debug symbol pacakges for my mesa trunk build and glibc, and attached a fresh crash log with a lot more info .