I can't join any more a running meeting even with audio muted and video disabled. It keeps segfaulting and/or trapping immediately of after a while: [Oct 7 08:57] teams[5247]: segfault at 0 ip 00007f1b724af284 sp 00007f1b703dfa00 error 6 in slimcore.node[7f1b70ef4000+2e42000] [ +0.000013] Code: 00 75 3b 48 8b 47 18 48 8d 57 10 c7 46 18 00 00 00 00 48 89 54 24 f0 f3 0f 7e 44 24 f0 48 89 44 24 f0 0f 16 44 24 f0 0f 11 06 <48> 89 30 b8 01 00 00 00 48 89 77 18 c3 0f 1f 80 00 00 00 00 c7 46 [Oct 7 09:20] traps: teams[5264] trap invalid opcode ip:55e260e7d79f sp:7ffed7ff4f30 error:0 in teams (deleted)[55e260dd3000+5fbe000] [Oct 7 09:30] teams[12898]: segfault at 0 ip 00007fcf464af284 sp 00007fcf60633a00 error 6 in slimcore.node[7fcf44ef4000+2e42000] [ +0.000014] Code: 00 75 3b 48 8b 47 18 48 8d 57 10 c7 46 18 00 00 00 00 48 89 54 24 f0 f3 0f 7e 44 24 f0 48 89 44 24 f0 0f 16 44 24 f0 0f 11 06 <48> 89 30 b8 01 00 00 00 48 89 77 18 c3 0f 1f 80 00 00 00 00 c7 46 It happens both with and without USE=swiftshader. Reproducible: Always Steps to Reproduce: 1. Start teams 2. Have someone start a meeting and invite you 3. Click "Join" on the running meeting invitation 4. Disable audio/video, set default devices. Click "Join now" Actual Results: Teams crashes almost consistently. I managed to stay connected for some minutes once out of a dozen attempts. Expected Results: The connection to the running meeting is durably established. Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/no-multilib, gcc-10.3.0, glibc-2.33-r1, 5.13.19-gentoo x86_64) ================================================================= System uname: Linux-5.13.19-gentoo-x86_64-Intel-R-_Core-TM-_i7-4702MQ_CPU_@_2.20GHz-with-glibc2.33 KiB Mem: 16111928 total, 11051340 free KiB Swap: 16777212 total, 16777212 free Timestamp of repository gentoo: Wed, 06 Oct 2021 15:36:18 +0000 Head commit of repository gentoo: bff1e8a7db95899b23ab933e55209f52d1c1c4e7 sh bash 5.1_p8 ld GNU ld (Gentoo 2.36.1 p5) 2.36.1 app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.34.0-r2::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.8.12::gentoo, 3.9.6_p2::gentoo dev-lang/rust-bin: 1.53.0::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.43.5::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.4::gentoo sys-devel/binutils: 2.36.1-r2::gentoo, 2.37_p1::gentoo sys-devel/gcc: 10.3.0-r2::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git priority: -1000 localrepo location: /var/db/repos/overlay/localrepo masters: gentoo priority: 10 Installed sets: @audio, @dev, @emacs, @emul, @fonts, @gkrellm, @graphix, @net, @office, @utilz, @video, @web, @webdev, @xfce ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=haswell -pipe -O2 -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=haswell -pipe -O2 -fomit-frame-pointer" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=haswell -pipe -O2 -fomit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=haswell -pipe -O2 -fomit-frame-pointer" GENTOO_MIRRORS="http://distfiles.gentoo.org" INSTALL_MASK="/lib/systemd /usr/lib/systemd" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="" MAKEOPTS="-j9" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" USE="alsa amd64 apng bittorrent bluetooth btrfs bzip2 cacert calendar caps cddb cdio clang cli corefonts crypt cups curl cvs dav1d dbus device-mapper djvu dri dvd dynamic-loading ebook elogind emacs eme-free enchant fam fbcon fortran fpm gdbm git glamor gnome-keyring gnutls gpm graphicsmagick gtk3 gtkstyle gui h323 hddtemp heif http hunspell iconv icu id3tag imagemagick introspection jabber jpeg jumbo-build kpathsea ladspa laptop latex lcms libglvnd libnotify libsamplerate libtirpc lm_sensors lto luks1_default mng mp3 mplayer musepack musicbrainz mysql mysqli ncurses networkmanager nls nptl ntfs ntfsprogs objc objc++ ogg openmp openvg opus pam pcre pgo png policykit postscript ppds python3 readline rtmp scanner sdl seamonkey seccomp split-usr sql sqlite sqlitessh ssl system-av1 system-bootstrap system-cmark system-crontab system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-libyaml system-llvm system-mesa system-sqlite system-ssl system-webp system-zlib tcpd threads tordns truetype udisks unicode v4l v4l2 video vlc vorbis wavpack xattr xcb xcomposite xetex xfce xfs xkb xmp xorg xvfb zlib" ABI_X86="64" ADA_TARGET="gnat_2019" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" SANE_BACKENDS="epson2 epkowa hp" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Looks like regression, as with `net-im/teams-1.4.00.7556` all seems fine.
Please disable USE=system-ffmpeg for teams. It is known to fail.
(In reply to Stephan Hartmann from comment #2) > Please disable USE=system-ffmpeg for teams. It is known to fail. Forgot to say, that was already the case: # equery u teams ... U I - - system-ffmpeg : Use the system-wide media-video/ffmpeg instead of bundled. + + system-mesa : Use the system-wide media-libs/mesa instead of bundled. How about 'system-mesa'?
system-mesa is basically swiftshader now. Are you running teams in wayland?
(In reply to Stephan Hartmann from comment #4) > system-mesa is basically swiftshader now. Are you running teams in wayland? Nope, xorg-server-1.20.13-r1. Kernel is 5.13.19-gentoo.
Can you try teams-1.4.00.26453?
With teams-1.4.00.26453 (no system-ffmpeg, irrespective of USE=swiftshader) it looks the same, though segfaults in libpthread now. Try a test call: [Oct 7 21:01] traps: teams[27700] general protection fault ip:7eff46b1b904 sp:7eff7c75d2d8 error:0 in slimcore.node[7eff44526000+2ff1000] [Oct 7 21:03] teams[28588]: segfault at 1500200030 ip 00007fa6282f9ec0 sp 00007fa6202f1a00 error 4 in libpthread-2.33.so[7fa6282f6000+f000] [ +0.000012] Code: e8 35 c3 ff ff 48 8d 0d 5e b9 00 00 ba 45 02 00 00 48 8d 35 d4 b7 00 00 48 8d 3d 00 b8 00 00 e8 16 c3 ff ff e8 a1 c2 ff ff 90 <8b> 47 10 89 c2 81 e2 7f 01 00 00 83 e0 7c 0f 85 7c 00 00 00 53 48
Let me know if you need a backtrace.
I'm seeing the same, both 13653 and 26453 crash immediately when joining a meeting with: traps: teams[6507] general protection fault ip:7f82a331c904 sp:7f82b83db2d8 error:0 in slimcore.node[7f82a0d27000+2ff1000] ...and the app restarts. 7556 is the last one working for meetings, but screen sharing is there broken and throws a: teams[15834]: segfault at 7fa9b2ffd910 ip 00007fa9d0b1b13e sp 00007fff305f6080 error 4 in libpthread-2.33.so[7fa9d0b18000+f000] This is a X-based setup, Intel integrated graphics, with -swiftshader -system-ffmpeg -system-mesa, and I also tried disabling GPU acceleration in Teams settings.
I still can't reproduce. Can someone try to get a backtrace?
maybe related to compositing on/off?
> still can't reproduce. Can someone try to get a backtrace? uh... how is this done? >maybe related to compositing on/off? Not sure what you mean, but WM is Openbox. 7556 and older builds worked fine for a over a year (except for screen sharing).
Will provide a bt. XFCE4 here with compositing disabled, BTW. @Morton, if you wanna give it a try: https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
> Will provide a bt. any progress? thanky you for the docs, I tried, but teams seems to be a start script, that calls a big complicated binary, with many threads and.... uh... well, I failed to get a backtrace from this? :-/
Created attachment 747762 [details] GDB backtrace for teams-1.4.00.26453-r1
BT for teams-1.4.00.26453-r1 attached! The crash occurred during a test call launched from the parameters dialog. Compiled with swiftshader. Possibly incomplete? When extracting it from a core dump (as per https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces#Core_dumps), I see: $ gdb_get_backtrace /opt/teams/teams core > teams-1.4.00.26453-r1.gdb-bt warning: Can't open file /dev/shm/.org.chromium.Chromium.gIYjOz (deleted) during file-backed mapping note processing warning: Can't open file /dev/shm/.org.chromium.Chromium.dhxnCJ (deleted) during file-backed mapping note processing warning: Can't open file /SYSV000014d3 (deleted) during file-backed mapping note processing warning: Can't open file /dev/shm/.org.chromium.Chromium.4O8wED (deleted) during file-backed mapping note processing warning: Can't open file /SYSV000014d2 (deleted) during file-backed mapping note processing warning: Can't open file /dev/shm/.org.chromium.Chromium.nIa3jx (deleted) during file-backed mapping note processing warning: Can't open file /dev/shm/.org.chromium.Chromium.N16YGj (deleted) during file-backed mapping note processing HTH!
Comment on attachment 747762 [details] GDB backtrace for teams-1.4.00.26453-r1 Trace obtained from core dump. Teams build with splitdebug feature.
I have two AMD64 Linux machines - personal and work. Both run Gentoo, but separate installations. Both are older Intel Core i7 machines using Intel graphics / X11. On my work machine, teams has been solid for the last two years, never crashing. I do a lot of video and audio calls, including screen sharing. I have only just tried to use teams on my personal laptop, but I am getting repeated segfaults in libpthread-2.33.so within a few seconds of joining any call. Nov 11 14:56:09 [kernel] teams[16146]: segfault at 230 ip 00007f9fe34f9070 sp 00007f9fdc45a9f0 error 4 in libpthread-2.33.so[7f9fe34f5000+f000] Nov 11 14:56:09 [kernel] Code: c1 ff ff e8 12 c1 ff ff 48 8d 0d ab b7 00 00 ba 45 02 00 00 48 8d 35 21 b6 00 00 48 8d 3d 4d b6 00 00 e8 63 c1 ff ff 0f 1f 00 <8b> 47 10 89 c2 81 e2 7f 01 00 00 83 e0 7c 0f 85 7c 00 00 00 55 48 Is there something I can do to compare between the two systems and see what the differences between the two systems might be? Right now I don't have both systems in front of me, the first thing I will do is check that the same version is running on both.
You may want to force system-ffmpeg(need to edit the ebuild for that) System ffmpeg may need a patch: cat /etc/portage/patches/media-video/ffmpeg/av_max_alloc_0.patch --- ./libavutil/mem.c.org 2020-10-07 19:22:30.286728200 +0200 +++ ./libavutil/mem.c 2020-10-07 19:24:04.039885660 +0200 @@ -71,6 +71,8 @@ static size_t max_alloc_size= INT_MAX; void av_max_alloc(size_t max){ + if (!max) + max = INT_MAX; /* be compatible to older < 4.3 versions */ max_alloc_size = max; } At work we use this in various Intel systems without problems for quite a while.
Added +system-ffmpeg, tried with 1.4.00.26453-r1 ffmpeg gets downgraded from 4.4-r1 to 4.2.4-r1 and required +chromium. Self-test call at least seems stable now - will test further... Screen sharing still throws something like: kernel: teams[11229]: segfault at 7fbbfffff910 ip 00007fbc3052709e sp 00007ffeea478a30 error 4 in libpthread-2.33.so[7fbc30524000+f000] kernel: Code: 54 24 f8 c3 0f 1f 84 00 00 00 00 00 41 57 41 56 41 55[...]
I'm hitting this issue, that whenever starting/joining a (test) call, Teams crashes. I've tried with/without system-ffmpeg, I've downgraded from 1.5 to 1.4, I've removed the cache at "~/.config/Microsoft/Microsoft Teams". None of these things fixed it. This started happening yesterday and I cannot pinpoint the cause. Two days ago, it still worked. In my logs, I have: kernel: traps: teams[295304] general protection fault ip:7374e32d6da4 sp:737524d3b218 error:0 in slimcore.node[7374e09b2000+3357000] systemd-coredump[295307]: [🡕] Process 265430 (teams) of user 1000 dumped core. Module linux-vdso.so.1 with build-id 931d713f911aed3a3107b10c889664289e80ff11 Module libnss_resolve.so.2 without build-id. … Module libdl.so.2 without build-id. Module libffmpeg.so with build-id f4cbd7c85466098f8f63de880e565d5001e8322d Module teams with build-id c3b7f83e8a64a8f83449435bcddfbafa5a185d35 Stack trace of thread 295304: #0 0x00007374e32d6da4 n/a (slimcore.node + 0x2924da4) #1 0x00007374e32d7256 n/a (slimcore.node + 0x2925256) #2 0x00007374e32d79ee n/a (slimcore.node + 0x29259ee) #3 0x00007374e32471b7 n/a (slimcore.node + 0x28951b7) #4 0x00007374e0dab749 n/a (slimcore.node + 0x3f9749) #5 0x00007374e20b7c9f n/a (slimcore.node + 0x1705c9f) #6 0x00007374e243f2c3 n/a (slimcore.node + 0x1a8d2c3) #7 0x0000737524d3bab0 n/a (n/a + 0x0) ELF object binary architecture: AMD x86-64 Is there any known workaround?
A possible workaround (at least that's what I think fixed my issue) is to complie and run pulse audio. If you are already running pulseaudio, I don't know of anything else that will help.
I (and my company) run with system-mesa/system-ffmpeg with patch: cat /etc/portage/patches/media-video/ffmpeg/av_max_alloc_0.patch --- ./libavutil/mem.c.org 2020-10-07 19:22:30.286728200 +0200 +++ ./libavutil/mem.c 2020-10-07 19:24:04.039885660 +0200 @@ -71,6 +71,8 @@ static size_t max_alloc_size= INT_MAX; void av_max_alloc(size_t max){ + if (!max) + max = INT_MAX; /* be compatible to older < 4.3 versions */ max_alloc_size = max; } for years now. However I don't think the SEGV has much to do with that. slimnode depends on alsa-lib so perhaps USE flags make a differnce, we have USE="python thread-safety" for alsa-lib
(In reply to Karl Hakimian from comment #22) > A possible workaround (at least that's what I think fixed my issue) is to > complie and run pulse audio. > > If you are already running pulseaudio, I don't know of anything else that > will help. Thanks for this suggestion. I am running pulseaudio, but apparently it was crashing and restarting regularly the last two days. Changing from it to autospawn and using the user systemd socket activation fixed its behavior after a reboot. At that point, Teams did not crash anymore.
The nightmare goes on with v1.5.00.10453 now crashing in libc again when trying a test call: [Aug 9 06:55] teams[32031]: segfault at 1500200030 ip 00007f6f2d96b380 sp 00007f6f0806fa40 error 4 in libc.so.6[7f6f2d909000+169000] [ +0.000009] Code: c5 fa ff 48 8d 0d 60 b0 12 00 ba 53 02 00 00 48 8d 35 9f 2c 12 00 48 8d 3d c3 2c 12 00 e8 c8 c5 fa ff 0f 1f 84 00 00 00 00 00 <8b> 47 10 89 c2 81 e2 7f 01 00 00 83 e0 7c 0f 85 ac 00 00 00 53 48
(In reply to Karl Hakimian from comment #22) > A possible workaround (at least that's what I think fixed my issue) is to > complie and run pulse audio. > > If you are already running pulseaudio, I don't know of anything else that > will help. Yes, that's worked for me : net-im/teams-1.5.00.10453-r1 crash when launching test call and incoming/outgoing audio/video calls. thx
(In reply to julien.bozzolo from comment #26) > (In reply to Karl Hakimian from comment #22) > > A possible workaround (at least that's what I think fixed my issue) is to > > complie and run pulse audio. > > > > If you are already running pulseaudio, I don't know of anything else that > > will help. > > Yes, that's worked for me : > net-im/teams-1.5.00.10453-r1 > crash when launching test call and incoming/outgoing audio/video calls. > > > thx pipewire has had a few bugs lately w.r.t Teams, next release will fix a few though. There is also Teams 1.5.00.23861 too.
FYI. I've been using teams-for-linux for a while from overlay "nitratesky": https://gpo.zugaina.org/net-im/teams-for-linux Source code here: https://github.com/IsmaelMartinez/teams-for-linux It works like a charm :-) might be worth considering an official ebuild for it..
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9197132a0849eaaf682de1019271e6cd51209330 commit 9197132a0849eaaf682de1019271e6cd51209330 Author: David Seifert <soap@gentoo.org> AuthorDate: 2023-03-26 10:56:41 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2023-03-26 10:56:41 +0000 net-im/teams: treeclean Closes: https://bugs.gentoo.org/816774 Closes: https://bugs.gentoo.org/880425 Signed-off-by: David Seifert <soap@gentoo.org> net-im/teams/Manifest | 4 -- net-im/teams/metadata.xml | 13 ---- net-im/teams/teams-1.4.00.13653-r3.ebuild | 107 ---------------------------- net-im/teams/teams-1.4.00.26453-r2.ebuild | 107 ---------------------------- net-im/teams/teams-1.4.00.7556-r2.ebuild | 113 ------------------------------ net-im/teams/teams-1.5.00.10453-r1.ebuild | 107 ---------------------------- profiles/package.mask | 5 -- 7 files changed, 456 deletions(-)