You are not logged in.

#1 2021-01-31 13:53:39

Dennis
Member
Registered: 2014-11-04
Posts: 46
Website

[workaround] discord segfault when trying to screenshare in voicechat

Since about a week ago, whenever I try to share an application window or a screen inside a Discord voice-chat channel, Discord briefly shows the thumbnails of screens and application windows and then segfaults.

I tried downgrading lib32-glibc and also tried downgrading Electron (as suggested on https://aur.archlinux.org/packages/disc … _electron/ ) but the segfault prevails in both discord_arch_electron 0.0.13-2 from AUR and also in discord 0.0.13-1 from https://archlinux.org/packages/communit … 4/discord/ .

Does anyone else experience this issue and/or has an idea how to fix it?

dmesg wrote:

[ 1814.835597] DesktopMediaLis[57348]: segfault at 7fde8119f000 ip 00007fde982e3bf0 sp 00007fde838ad1c8 error 4 in libc-2.32.so[7fde981a4000+14d000]
[ 1814.835604] Code: 16 c0 c5 fe 7f 07 c5 fe 7f 4f 20 c5 fe 7f 54 17 e0 c5 fe 7f 5c 17 c0 c5 f8 77 c3 48 39 f7 0f 87 ab 00 00 00 0f 84 e5 fe ff ff <c5> fe 6f 26 c5 fe 6f 6c 16 e0 c5 fe 6f 74 16 c0 c5 fe 6f 7c 16 a0
[ 1814.835624] audit: type=1701 audit(1612100579.779:208): auid=1000 uid=1000 gid=1000 ses=1 pid=50489 comm="DesktopMediaLis" exe="/opt/discord/Discord" sig=11 res=1
[ 1814.845519] audit: type=1334 audit(1612100579.789:209): prog-id=32 op=LOAD
[ 1814.845589] audit: type=1334 audit(1612100579.789:210): prog-id=33 op=LOAD
[ 1814.846096] audit: type=1130 audit(1612100579.789:211): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@8-57356-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 1814.883708] audit: type=1131 audit(1612100579.825:212): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-coredump@8-57356-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 1815.224378] audit: type=1334 audit(1612100580.169:213): prog-id=33 op=UNLOAD
[ 1815.224381] audit: type=1334 audit(1612100580.169:214): prog-id=32 op=UNLOAD

Last edited by Dennis (2021-02-06 08:32:35)

Offline

#2 2021-01-31 21:44:36

Dennis
Member
Registered: 2014-11-04
Posts: 46
Website

Re: [workaround] discord segfault when trying to screenshare in voicechat

Ran it through gdb but still looking for ideas on how to fix it.

gdb output wrote:

Thread 39 "DesktopMediaLis" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fa143323640 (LWP 52146)]
0x00007fa15bdf1bf0 in __memmove_avx_unaligned_erms () from /usr/lib/libc.so.6
(gdb) bt
#0  0x00007fa15bdf1bf0 in __memmove_avx_unaligned_erms () at /usr/lib/libc.so.6
#1  0x00005618ae32a7c5 in  ()
#2  0x000013707a137268 in  ()
#3  0x00000000ffffffc4 in  ()
#4  0x0000000000001fa8 in  ()
#5  0x0000137079c2c280 in  ()
#6  0x0000000000004600 in  ()
#7  0x000013707a137214 in  ()
#8  0x000013707a1372d0 in  ()
#9  0x0000137079c2c2a8 in  ()
#10 0xaaaaaaaaaaaaaaaa in  ()
#11 0x00007fa1433220a0 in  ()
#12 0x00007fa143322060 in  ()
#13 0x00005618ae326890 in  ()
#14 0x0000000000000020 in  ()
#15 0x00001370793d6388 in  ()
#16 0x000013707976a3e8 in  ()
#17 0x000013707a137268 in  ()
#18 0x000009d800001180 in  ()
#19 0x00001370793d6360 in  ()
#20 0x00001370793d6360 in  ()
#21 0x00007fa1433220a8 in  ()
#22 0x0000137079ddb000 in  ()
#23 0x000013707976a3c0 in  ()
#24 0x00005618b14ff388 in  ()
#25 0x0000137079ddb000 in  ()
#26 0x00007fa143322060 in  ()
#27 0x0000137079c2c280 in  ()
#28 0x69eefaf861a31500 in  ()
#29 0x00007fa143322300 in  ()
#30 0x000013707a1371c0 in  ()
#31 0x000013707a220690 in  ()
#32 0x0000099a26ca9004 in  ()
#33 0x00001370793d6360 in  ()
#34 0x00007fa1433222a0 in  ()
#35 0x00005618ae3263aa in  ()
#36 0x00007fa15bf80701 in std::basic_ios<char, std::char_traits<char> >::imbue(std::locale const&) (this=0x7fa15bdf1a10 <__memmove_avx_unaligned>, __loc=...)
    at /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/basic_ios.tcc:114
#37 0x0000000000000000 in  ()

Offline

#3 2021-02-06 08:32:21

Dennis
Member
Registered: 2014-11-04
Posts: 46
Website

Re: [workaround] discord segfault when trying to screenshare in voicechat

While I have not found a real solution for the segfault yet, I am working around the issue by using the web version of Discord in a seperate browser session instead.

The workaround is (using google-chrome-stable from AUR):
1.) made a folder $HOME/Config/DiscordChrome
2.) made a launch script in $HOME/Config/launchDiscordChrome.sh:
google-chrome-stable --user-data-dir=$HOME/Config/DiscordChrome --new-window https://discord.com/channels/@me

Offline

Board footer

Powered by FluxBB