Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Chromium 115 segfault and Firefox random crashes [SOLVED]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
28 posts
  • 1
  • 2
  • Next
Author
Message
NathanZachary
Bodhisattva
Bodhisattva
User avatar
Posts: 2627
Joined: Tue Jan 30, 2007 1:50 am

Chromium 115 segfault and Firefox random crashes [SOLVED]

  • Quote

Post by NathanZachary » Tue Jun 27, 2023 3:19 am

Hello,

I just finished a world update, and now Chromium is segfaulting at startup:

Code: Select all

$ chromium
[0626/221832.103106:ERROR:elf_dynamic_array_reader.h(64)] tag not found
Received signal 11 SI_KERNEL000000000000
 Possibly a General Protection Fault, can be due to a non-canonical address dereference. See "Intel 64 and IA-32 Architectures Software Developer’s Manual", Volume 1, Section 3.3.7.1.
#0 0x5607972c43c5 (/usr/lib64/chromium-browser/chrome+0x83523c4)
#1 0x5607972a7096 (/usr/lib64/chromium-browser/chrome+0x8335095)
#2 0x5607972c4903 (/usr/lib64/chromium-browser/chrome+0x8352902)
#3 0x7fd196182fa0 (/lib64/libc.so.6+0x38f9f)
#4 0x7fd19629c9d9 (/lib64/libc.so.6+0x1529d8)
#5 0x560799e0f3bd (/usr/lib64/chromium-browser/chrome+0xae9d3bc)
#6 0x560799e0ee54 (/usr/lib64/chromium-browser/chrome+0xae9ce53)
#7 0x560796da01e8 (/usr/lib64/chromium-browser/chrome+0x7e2e1e7)
#8 0x560796dcb0cb (/usr/lib64/chromium-browser/chrome+0x7e590ca)
#9 0x560796dcb920 (/usr/lib64/chromium-browser/chrome+0x7e5991f)
#10 0x560793836909 (/usr/lib64/chromium-browser/chrome+0x48c4908)
#11 0x56079424f5de (/usr/lib64/chromium-browser/chrome+0x52dd5dd)
#12 0x560793837678 (/usr/lib64/chromium-browser/chrome+0x48c5677)
#13 0x56079383be27 (/usr/lib64/chromium-browser/chrome+0x48c9e26)
#14 0x560793833ca0 (/usr/lib64/chromium-browser/chrome+0x48c1c9f)
#15 0x560795fc2b98 (/usr/lib64/chromium-browser/chrome+0x7050b97)
#16 0x560795fc34c2 (/usr/lib64/chromium-browser/chrome+0x70514c1)
#17 0x560795fc3bf2 (/usr/lib64/chromium-browser/chrome+0x7051bf1)
#18 0x560795fc13d4 (/usr/lib64/chromium-browser/chrome+0x704f3d3)
#19 0x560795fc1985 (/usr/lib64/chromium-browser/chrome+0x704f984)
#20 0x5607903a18fd ChromeMain
#21 0x7fd19616d98a (/lib64/libc.so.6+0x23989)
#22 0x7fd19616da45 __libc_start_main
#23 0x5607903a16c1 _start
  r8: 0000000000000000  r9: 0000000000000013 r10: 0000000000000000 r11: 00000b2800546da0
 r12: 00007fffaa737a80 r13: 00007fffaa737ad0 r14: 0080008000800080 r15: 00007fffaa737ad0
  di: 0080008000800080  si: 0000000000000000  bp: 00007fffaa737a40  bx: 00007fffaa737ad0
  dx: 0080008000800080  ax: 0000000000000080  cx: 00000b2800546d50  sp: 00007fffaa7379d8
  ip: 00007fd19629c9d9 efl: 0000000000010287 cgf: 002b000000000033 erf: 0000000000000000
 trp: 000000000000000d msk: 0000000000000000 cr2: 0000000000000000
[end of stack trace]
Segmentation fault

Code: Select all

# emerge --info chromium
Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r3, 6.4.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.4.0-gentoo-x86_64-AMD_Ryzen_Threadripper_3960X_24-Core_Processor-with-glibc2.37
KiB Mem:   131788240 total, 109758192 free
KiB Swap:     262140 total,    262140 free
Timestamp of repository gentoo: Mon, 26 Jun 2023 23:18:55 +0000
Head commit of repository gentoo: a0a0c75f1f96c3efc74445bd69906d772b0e567b

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-lang/perl:             5.36.1-r2::gentoo
dev-lang/python:           3.11.4::gentoo, 3.12.0_beta3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.32::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             13.1.0-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch 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=native -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_GB"
MAKEOPTS="-j48"
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"
SHELL="/bin/bash"
USE="X acl alsa amd64 bzip2 cli crypt cups dbus dri elogind exif ffmpeg flac fortran gdbm gif harfbuzz iconv icu ipv6 jpeg libnotify libsamplerate libtirpc lm-sensors multilib ncurses nls nptl ogg opengl openh264 openmp pam pcre pdf png postproc postscript readline savedconfig seccomp session spell split-usr ssl startup-notification svg test-rust theora tiff truetype udev udisks unicode usb v4l vaapi vorbis webp xattr xcb xcrypt zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

www-client/chromium-115.0.5790.40::gentoo was built with the following:
USE="X cups hangouts (pic) proprietary-codecs suid system-harfbuzz system-icu system-png vaapi (-component-build) -custom-cflags -debug -gtk4 (-headless) -kerberos -libcxx -lto -official -pax-kernel (-pgo) -pulseaudio -qt5 -screencast (-selinux) (-system-av1) (-system-ffmpeg) -wayland -widevine" ABI_X86="(64)" L10N="en-GB -af -am -ar -bg -bn -ca -cs -da -de -el -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW"
CXXFLAGS="-march=native -O2 -pipe -fno-tree-vectorize"
I found some bug reports regarding AMD GPUs, but they don't seem to be the same problem that I'm seeing.

I appreciate any help.

Cheers,
Nathan Zachary
Last edited by NathanZachary on Thu Jul 13, 2023 4:38 am, edited 2 times in total.
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Thu Jun 29, 2023 12:29 am

there are known bugs in mix with newer versions of glibc-2.37.* and also maybe gcc-13.1.* - don't know about chromium 115.* ?

IIRC, chromium 114.* is current stable and is working great here (ungoogled-chromium).

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
NathanZachary
Bodhisattva
Bodhisattva
User avatar
Posts: 2627
Joined: Tue Jan 30, 2007 1:50 am

  • Quote

Post by NathanZachary » Thu Jun 29, 2023 1:51 am

Thanks for the information. I had previously been on Chromium 113, then upgraded to 115, bug with the segfaults I downgraded to 114 as a test. 114 seems to be working just fine. As I am using glibc-2.37 and gcc-13.1.1, I'll just stick to Chromium 114 for now. Maybe things will stabilise in the near future. If not, I'll look further into it.
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Fri Jun 30, 2023 9:35 am

CooSee wrote:there are known bugs in mix with newer versions of glibc-2.37.* and also maybe gcc-13.1.* - don't know about chromium 115.* ?

IIRC, chromium 114.* is current stable and is working great here (ungoogled-chromium).

8)
This is the first I've heard of such a thing. Can you give a source?
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Fri Jun 30, 2023 1:34 pm

sorry, i can't find it anymore !

for a long time, i always used ~amd64 ebuilds, but someday i came across this annoying oh snap issue with ungoogled-chromium >>> every tab just crashed.

after some search i found out that this was caused by glibc from testing! - also tried a patch for glibc without luck.

reinstalled gentoo - thx to usepkg=y, but this time only stable and everything went as expected - same make.conf - no oh snap crashes anymore.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
Hu
Administrator
Administrator
Posts: 24397
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Fri Jun 30, 2023 3:02 pm

That might be an issue that has occasionally hit Firefox as well. In the Firefox case, and if Chromium is what I suspect, then in its case too, the problem is a design bug in the browser. They set a seccomp filter that kills the process if any library anywhere in the process uses any system call that was not on the allow-list shipped with the browser, then they're surprised when libraries they don't control, such as glibc, suddenly start using system calls they did not allow. The glibc project never promised the browser that it would not add use of new system calls as the glibc developers see fit, so it is a design bug in the browser to assume that they can build an exhaustive list that is valid not only on release day, but indefinitely into the future as new versions of other libraries, such as glibc, are put into use. Historically, this bug was exacerbated by needing a new release from the browser project to extend the allow-list to cover the newly used system calls. I don't know if they ever learned their lesson and added a mechanism to allow new system calls without requiring a new release. The only reason glibc testing is relevant in those cases is that it is the most likely place for new system calls to show up first, so it is the most likely to trigger the overzealous system call filter.
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sat Jul 01, 2023 12:49 pm

Hu wrote:That might be an issue that has occasionally hit Firefox as well. In the Firefox case, and if Chromium is what I suspect, then in its case too, the problem is a design bug in the browser. They set a seccomp filter that kills the process if any library anywhere in the process uses any system call that was not on the allow-list shipped with the browser, then they're surprised when libraries they don't control, such as glibc, suddenly start using system calls they did not allow. The glibc project never promised the browser that it would not add use of new system calls as the glibc developers see fit, so it is a design bug in the browser to assume that they can build an exhaustive list that is valid not only on release day, but indefinitely into the future as new versions of other libraries, such as glibc, are put into use. Historically, this bug was exacerbated by needing a new release from the browser project to extend the allow-list to cover the newly used system calls. I don't know if they ever learned their lesson and added a mechanism to allow new system calls without requiring a new release. The only reason glibc testing is relevant in those cases is that it is the most likely place for new system calls to show up first, so it is the most likely to trigger the overzealous system call filter.
Yes, it's a fundamental flaw in seccomp. That said, I've heard 0 reports of this with glibc-2.37.
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Sun Jul 02, 2023 2:28 pm

sultan, one of the Chromium maintainers in Gentoo, found this thread and identified it as bug 909198. That should fix your problem, thanks!
Top
NathanZachary
Bodhisattva
Bodhisattva
User avatar
Posts: 2627
Joined: Tue Jan 30, 2007 1:50 am

  • Quote

Post by NathanZachary » Wed Jul 05, 2023 2:56 am

With Firefox 114 (and now 115), I'm getting random crashes. Unlike Chromium 115, Firefox will start without segfaulting. However, seemingly randomly it will crash:

Code: Select all

$ firefox 
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
ATTENTION: default value of option mesa_glthread overridden by environment.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Exiting due to channel error.
Illegal instruction
Exiting due to channel error.
Is it possible that these two problems are related?
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Wed Jul 05, 2023 3:37 am

sometimes i get these too - Exiting due to channel error.

have you used Developer Tools in FF? - i read somewhere that this channel error also happens while using DT.

i still use glibc-2.36.* and gcc-12.* and i just compiled ungoogled-chromium (pf4public) and firefox (pg_overlay).

no (big) issues - no crashes - except, couple of days ago all of a sudden traps: chrome[9344] trap int3 ip:64573fb16f11 sp:7ffdfb1c2a00 error:0 in chrome[64573f149000+ab63000]

FF is more chatty now - i get many JavaScript errors or console.warn: LoginRecipes: "Falling back to a synchronous message for: https://forums.gentoo.org." etc.

other than that, everythings fine - using wayland only system here, no xwayland.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
NathanZachary
Bodhisattva
Bodhisattva
User avatar
Posts: 2627
Joined: Tue Jan 30, 2007 1:50 am

  • Quote

Post by NathanZachary » Wed Jul 05, 2023 3:48 am

Though I haven't seen reports of these problems being related to glibc-2.37, it's possible that that's when the problems started. Or maybe it's even related to glib-2.76 like the tint2 tray icon bug. At this point, I think I'm going to have to delve more deeply into things as there are several instability problems that I'm encountering. I haven't had it like this in a long time.
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Wed Jul 05, 2023 3:58 am

don't want to confuse anyone, because i assume this is a glibc issue!

found this https://bugs.kde.org/show_bug.cgi?id=471559 and https://arcolinuxforum.com/viewtopic.php?p=14376 for those using nvidia + plasma - egl-wayland 1.1.12 seems to be the culprit.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
NathanZachary
Bodhisattva
Bodhisattva
User avatar
Posts: 2627
Joined: Tue Jan 30, 2007 1:50 am

  • Quote

Post by NathanZachary » Wed Jul 05, 2023 4:04 am

I'm not sure that it is going to do anything to help, but I decided to start with a trivial-to-implement potential fix: removing my profile and starting with a fresh one. It would be nice to have an easy fix, though. 8)

EDIT: Nope, still crashing. :(
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Wed Jul 05, 2023 4:23 am

@NathanZachary

if it's not much to ask, please try by downgrading gui-libs/egl-wayland to 1.1.11_p20230202-r1.

the ATTENTION Bug is explained here https://bugzilla.mozilla.org/show_bug.cgi?id=1744389

8)
Last edited by CooSee on Wed Jul 05, 2023 4:26 am, edited 1 time in total.
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
NathanZachary
Bodhisattva
Bodhisattva
User avatar
Posts: 2627
Joined: Tue Jan 30, 2007 1:50 am

  • Quote

Post by NathanZachary » Wed Jul 05, 2023 4:25 am

I wouldn't mind doing any tests, but I'm using Xorg not Wayland (so egl-wayland isn't installed).
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Wed Jul 05, 2023 4:31 am

CooSee wrote:don't want to confuse anyone, because i assume this is a glibc issue!

found this https://bugs.kde.org/show_bug.cgi?id=471559 and https://arcolinuxforum.com/viewtopic.php?p=14376 for those using nvidia + plasma - egl-wayland 1.1.12 seems to be the culprit.

8)
Please stop assuming! The 'illegal instruction' implies this is likely https://bugs.gentoo.org/908412 (caused by GCC LTO).

Also, when it gets to the point where you really have no clue & the forum suggestions have been exhausted, please do search bugzilla and if no duplicates exist, file a bug.

EDIT: I realise now you might've meant "I don't want to confuse anyone because I assumed before that it's a glibc issue"?
Top
NathanZachary
Bodhisattva
Bodhisattva
User avatar
Posts: 2627
Joined: Tue Jan 30, 2007 1:50 am

  • Quote

Post by NathanZachary » Wed Jul 05, 2023 4:39 am

I don't know that it is related to GCC LTO in my case:

Code: Select all

$ emerge --info firefox
Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r3, 6.4.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.4.0-gentoo-x86_64-AMD_Ryzen_Threadripper_3960X_24-Core_Processor-with-glibc2.37
KiB Mem:   131788240 total,  64417432 free
KiB Swap:     262140 total,    262140 free
Timestamp of repository gentoo: Tue, 04 Jul 2023 22:46:58 +0000
Head commit of repository gentoo: d70c94182c50c96c96cd25d50a0531adeeb46c76

sh bash 5.2_p15-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r6::gentoo
dev-lang/perl:             5.38.0::gentoo
dev-lang/python:           3.11.4::gentoo, 3.12.0_beta3::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/openrc:           0.47.1::gentoo
sys-apps/sandbox:          2.34::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             13.1.1_p20230527::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.4::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch 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=native -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_GB"
MAKEOPTS="-j48"
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"
SHELL="/bin/bash"
USE="X acl alsa amd64 bzip2 cli crypt cups dbus dri elogind exif ffmpeg flac fortran gdbm gif harfbuzz iconv icu ipv6 jpeg libnotify libsamplerate libtirpc lm-sensors multilib ncurses nls nptl ogg opengl openh264 openmp pam pcre pdf png postproc postscript readline savedconfig seccomp session spell split-usr ssl startup-notification svg test-rust theora tiff truetype udev udisks unicode usb v4l vaapi vorbis webp xattr xcb xcrypt zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a 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" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" 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:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

www-client/firefox-115.0::gentoo was built with the following:
USE="X clang dbus gmp-autoupdate jumbo-build openh264 system-av1 system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-webp telemetry -debug -eme-free -geckodriver -hardened -hwaccel -jack -libproxy -lto -pgo -pulseaudio -screencast (-selinux) -sndio -system-png (-system-python-libs) (-valgrind) -wayland -wifi" ABI_X86="(64)" L10N="en-GB -ach -af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fur -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -sc -sco -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -tr -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"
CFLAGS="-march=native -pipe"
CXXFLAGS="-march=native -pipe"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--compress-debug-sections=zlib -Wl,-rpath=/usr/lib64/firefox,--enable-new-dtags"
@sam_
If it would be helpful, I can add anything you may need to Bug 908412. Please just let me know if you would like me to do any testing, and thanks for your insights.
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Top
sam_
Developer
Developer
User avatar
Posts: 2816
Joined: Fri Aug 14, 2020 12:33 am

  • Quote

Post by sam_ » Wed Jul 05, 2023 4:42 am

Okay, so it's something new, or you have an old version of NSS installed (what version of dev-libs/nss do you have? If it's 3.90, please upgrade to 3.91.)

The only other thing which came to mind was the elfhack bug but that never applied to Clang anyway, and indeed, the GCC LTO one is irrelevant here for the same reason.

If you can consistently reproduce the "Illegal instruction" error, please file a new bug and we'll dig into it there.
Top
NathanZachary
Bodhisattva
Bodhisattva
User avatar
Posts: 2627
Joined: Tue Jan 30, 2007 1:50 am

  • Quote

Post by NathanZachary » Wed Jul 05, 2023 4:51 am

I'm running =dev-libs/nss-3.91. I can't reproduce the problem consistently by any means, but I would say that the crashes happen 10+ times per day. For now, I have filed Bug 909676 for tracking. I can run any troubleshooting tests that would be helpful; please just let me know in the bug.

Thanks again for your help.
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Top
CooSee
Veteran
Veteran
User avatar
Posts: 1617
Joined: Sat Nov 20, 2004 10:38 pm
Location: right here !

  • Quote

Post by CooSee » Thu Jul 06, 2023 11:11 pm

i just noticed that i'am also using sys-libs/glibc-2.37-r3 - re-emerged FF and chromium - no crashes so far on my wayland only system.

it seems that this is happening more often, while using X11.

8)
" Die Realität ist eine Illusion, die durch Mangel an ehrlicher Kommunikation entsteht "
---
" Der Mensch ist von Natur aus neugierig, was am Ende übrig bleibt ist die Gier "
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Fri Jul 07, 2023 9:24 am

Kernel 6.4.0 caused FF to crash on my machine, I downgraded to 6.3.9 and linux-headers 6.3. Got no problems since then.
Top
stefan11111
Veteran
Veteran
Posts: 1025
Joined: Sun Jan 29, 2023 6:08 pm
Location: Romania
Contact:
Contact stefan11111
Website

  • Quote

Post by stefan11111 » Fri Jul 07, 2023 1:22 pm

gorg86 wrote:Kernel 6.4.0 caused FF to crash on my machine, I downgraded to 6.3.9 and linux-headers 6.3. Got no problems since then.
I'm using 6.4.2. No crashes here.
Firefox 115 works well. What did you do to crash it?
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Fri Jul 07, 2023 2:32 pm

It crashed randomly, most of the time when opening a new tab. The error it spit out on the console was always the same GPU or mesa related thing (I don't remember exactly).
Top
stefan11111
Veteran
Veteran
Posts: 1025
Joined: Sun Jan 29, 2023 6:08 pm
Location: Romania
Contact:
Contact stefan11111
Website

  • Quote

Post by stefan11111 » Fri Jul 07, 2023 2:40 pm

gorg86 wrote:It crashed randomly, most of the time when opening a new tab. The error it spit out on the console was always the same GPU or mesa related thing (I don't remember exactly).
You have hwaccel forced?
My overlay: https://github.com/stefan11111/stefan_overlay
INSTALL_MASK="/etc/systemd /lib/systemd /usr/lib/systemd /usr/lib/modules-load.d *udev* /usr/lib/tmpfiles.d *tmpfiles* /var/lib/dbus /usr/bin/gdbus /lib/udev"
Top
gorg86
Guru
Guru
User avatar
Posts: 359
Joined: Fri May 20, 2011 6:20 pm

  • Quote

Post by gorg86 » Fri Jul 07, 2023 2:47 pm

The checkbox "Use hardware acceleration when available" is activated. I can't reproduce that error right now, but I think AMDGPU was causing it.
Top
Post Reply

28 posts
  • 1
  • 2
  • Next

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic