Process of user 1000 dumped core | Flatpak | Discord

How do I debug, trace these type of core dumps?
These seem to be happening exclusively with flatpaks.

systemd-coredump[4481]: [🡕] Process 4424 (Discord) of user 1000 dumped core.
                                                         
                                                         Stack trace of thread 5:
                                                         #0  0x0000563bd5224f26 n/a (/app/discord/Discord + 0x746af26)
                                                         #1  0x0000563bd16a248d n/a (/app/discord/Discord + 0x38e848d)
                                                         #2  0x0000563bd187d4a0 n/a (/app/discord/Discord + 0x3ac34a0)
                                                         #3  0x0000563bd185acdf n/a (/app/discord/Discord + 0x3aa0cdf)
                                                         #4  0x0000563bd185bcce n/a (/app/discord/Discord + 0x3aa1cce)
                                                         #5  0x0000563bd1fd19fe n/a (/app/discord/Discord + 0x42179fe)
                                                         #6  0x0000563bd1c668e0 n/a (/app/discord/Discord + 0x3eac8e0)
                                                         #7  0x0000563bd1c8dfa9 n/a (/app/discord/Discord + 0x3ed3fa9)
                                                         #8  0x0000563bd1c8d71c n/a (/app/discord/Discord + 0x3ed371c)
                                                         #9  0x0000563bd1c8c673 n/a (/app/discord/Discord + 0x3ed2673)
                                                         #10 0x0000563bd1cae2ef n/a (/app/discord/Discord + 0x3ef42ef)
                                                         #11 0x0000563bcff748f6 n/a (/app/discord/Discord + 0x21ba8f6)
                                                         #12 0x0000563bcfff8db4 n/a (/app/discord/Discord + 0x223edb4)
                                                         #13 0x0000563bcfedc224 n/a (/app/discord/Discord + 0x2122224)
                                                         #14 0x0000563bcff8cb78 n/a (/app/discord/Discord + 0x21d2b78)
                                                         #15 0x0000563bcfedc224 n/a (/app/discord/Discord + 0x2122224)
                                                         #16 0x0000563bcfedc224 n/a (/app/discord/Discord + 0x2122224)
                                                         #17 0x0000563bcfedc224 n/a (/app/discord/Discord + 0x2122224)
                                                         #18 0x0000563bcfedc224 n/a (/app/discord/Discord + 0x2122224)
                                                         #19 0x0000563bcfedc224 n/a (/app/discord/Discord + 0x2122224)
                                                         #20 0x0000563bcfedc224 n/a (/app/discord/Discord + 0x2122224)
                                                         #21 0x0000563bcfedc224 n/a (/app/discord/Discord + 0x2122224)
                                                         #22 0x0000563bcfed9ddc n/a (/app/discord/Discord + 0x211fddc)
                                                         #23 0x0000563bcfed9b07 n/a (/app/discord/Discord + 0x211fb07)
                                                         #24 0x0000563bd17c68bc n/a (/app/discord/Discord + 0x3a0c8bc)
                                                         #25 0x0000563bd17c65db n/a (/app/discord/Discord + 0x3a0c5db)
                                                         #26 0x0000563bd16bb2b9 n/a (/app/discord/Discord + 0x39012b9)
                                                         #27 0x0000563bd7cc903d n/a (/app/discord/Discord + 0x9f0f03d)
                                                         #28 0x0000563bd7cc93d1 n/a (/app/discord/Discord + 0x9f0f3d1)
                                                         #29 0x0000563bd7cc95b2 n/a (/app/discord/Discord + 0x9f0f5b2)
                                                         #30 0x0000563bd7b8bbbd n/a (/app/discord/Discord + 0x9dd1bbd)
                                                         #31 0x0000563bd042c780 n/a (/app/discord/Discord + 0x2672780)
                                                         #32 0x0000563bd042e036 n/a (/app/discord/Discord + 0x2674036)
                                                         #33 0x0000563bd0385ad2 n/a (/app/discord/Discord + 0x25cbad2)
                                                         #34 0x0000563bd2b07bd7 n/a (/app/discord/Discord + 0x4d4dbd7)
                                                         #35 0x0000563bd2b0bb56 n/a (/app/discord/Discord + 0x4d51b56)
                                                         #36 0x0000563bd2b072b2 n/a (/app/discord/Discord + 0x4d4d2b2)
                                                         #37 0x0000563bd05bfab4 n/a (/app/discord/Discord + 0x2805ab4)
                                                         #38 0x0000563bd05c13ce n/a (/app/discord/Discord + 0x28073ce)
                                                         #39 0x0000563bd05c11b6 n/a (/app/discord/Discord + 0x28071b6)
                                                         #40 0x0000563bd05be9fd n/a (/app/discord/Discord + 0x28049fd)
                                                         #41 0x0000563bd05beb06 n/a (/app/discord/Discord + 0x2804b06)
                                                         #42 0x0000563bd029f469 n/a (/app/discord/Discord + 0x24e5469)
                                                         #43 0x00007f353942c30b n/a (/app/lib/libzypak-preload-host-spawn-strategy.so + 0xad30b)
                                                         #44 0x00007f353743808a n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x2808a)
                                                         #45 0x00007f353743814b n/a (/usr/lib/x86_64-linux-gnu/libc.so.6 + 0x2814b)
                                                         #46 0x00007f353942c59d n/a (/app/lib/libzypak-preload-host-spawn-strategy.so + 0xad59d)
                                                         #47 0x0000563bcfea902a n/a (/app/discord/Discord + 0x20ef02a)
                                                         ELF object binary architecture: AMD x86-64

Not addressing your question directly, but i am running discord from their linux tar.gz download without issue.

You could run the debug tools from within the flatpak environment.

  • flatpak ps

  • flatpak run --command=bash <application_id>

  • strace -f -o /tmp/strace_output.log /app/bin/<application>

Yeah it’s intermittent, I will sometimes launch an application and it will start fine, sometimes it just crashes, when it crashes and I relaunch it starts fine.

Happens with Joplin, Discord, Slack, and a few others.

AppImages don’t launch at all.

Added f40, flatpak and removed amd