New comment by Plut0nio on void-packages repository https://github.com/void-linux/void-packages/issues/51303#issuecomment-2269292679 Comment: > you can prove it's a stack overflow with like > > ``` > # crashing frame > (lldb) f 0 > # note down the 0x address > (lldb) reg read $sp > # frame that the thread starts at (__clone) > (lldb) f 7 > # note it again > (lldb) reg read $sp > ``` > > then in python > > ``` > 0xsecondone - 0xfirstone > ``` > > gives you a value larger than 128KiB, so the stack has overflowed. the -Wl link args i posted would fix it `f 7` gave me `error: Frame index (7) out of range.`, so I had to use `f 1` instead. Here's my output: ``` $ lldb dolphin (lldb) target create "dolphin" Current executable set to '/usr/bin/dolphin' (x86_64). (lldb) run Process 23321 launched: '/usr/bin/dolphin' (x86_64) Process 23321 stopped * thread #11, name = 'KIO::WorkerThre', stop reason = signal SIGSEGV: invalid permissions for mapped object (fault address: 0x7fffe05b13a8) frame #0: 0x00007fffe0ab4eb9 -> 0x7fffe0ab4eb9: orq $0x0, (%rsp) 0x7fffe0ab4ebe: cmpq %r11, %rsp 0x7fffe0ab4ec1: jne 0x7fffe0ab4eb2 0x7fffe0ab4ec3: subq $0x2c8, %rsp ; imm = 0x2C8 (lldb) f 0 frame #0: 0x00007fffe0ab4eb9 -> 0x7fffe0ab4eb9: orq $0x0, (%rsp) 0x7fffe0ab4ebe: cmpq %r11, %rsp 0x7fffe0ab4ec1: jne 0x7fffe0ab4eb2 0x7fffe0ab4ec3: subq $0x2c8, %rsp ; imm = 0x2C8 (lldb) reg read $sp rsp = 0x00007fffe05b13a8 (lldb) f 7 error: Frame index (7) out of range. (lldb) f 1 frame #1: 0x00007fffe05d2520 -> 0x7fffe05d2520: movabsb -0x4fffffaaaaa9c8c5, %al 0x7fffe05d2529: cmpl (%rdi), %esi 0x7fffe05d252b: pushq %rsi 0x7fffe05d252c: pushq %rbp (lldb) f 2 error: Frame index (2) out of range. (lldb) f 1 frame #1: 0x00007fffe05d2520 -> 0x7fffe05d2520: movabsb -0x4fffffaaaaa9c8c5, %al 0x7fffe05d2529: cmpl (%rdi), %esi 0x7fffe05d252b: pushq %rsi 0x7fffe05d252c: pushq %rbp (lldb) reg read $sp rsp = 0x00007fffe05d23f8 ``` According to Python, 0x00007fffe05d23f8 - 0x00007fffe05b13a8 = 135248, which is indeed greater than 128 kibibytes (131072 bytes). I have no idea how to use those `-Wl,-z,stack-size=0x200000`, though. Is that for linking/building? All my KDE stuff (except for kio-admin) was downloaded and installed from the Void repos.