Bug 2335406
| Summary: | glibc-2.40.9000-25.fc42 breaks google-chrome-stable and chromium | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Yanko Kaneti <yaneti> |
| Component: | glibc | Assignee: | Florian Weimer <fweimer> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | arjun, codonell, dj, fberat, fweimer, grgoffe, jlaw, josmyers, mcermak, mcoufal, mfabian, mikhail.v.gavrilov, pfrankli, sipoyare, skolosov, suraj.ghimire7 |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | glibc-2.40.9000-26.fc42 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-01-13 10:54:54 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Yanko Kaneti
2025-01-03 12:07:36 UTC
Just tested with chromium-131.0.6778.204-1.fc42.x86_64 as found in rawhide and it also crashes. Unfortunately it seems to be build without debuginfo atm Unfortunately /usr/lib/systemd/systemd-executor: /lib64/libc.so.6: version `GLIBC_2.41' not found (required by /usr/lib/systemd/systemd-executor) So its not that painless to workaround temporarily.. With strace, I can see this:
[pid 20515] capset({version=_LINUX_CAPABILITY_VERSION_3, pid=0}, {effective=0, permitted=0, inheritable=0} <unfinished ...>
[pid 20515] <... capset resumed>) = 0
> /usr/lib64/libc.so.6(syscall+0x1d) [0xf30ed]
> /opt/google/chrome/chrome() [0x4791229]
> /opt/google/chrome/chrome() [0x47912dc]
> /opt/google/chrome/chrome() [0x4791d71]
> /opt/google/chrome/chrome() [0x4790696]
> /opt/google/chrome/chrome() [0x5bf5e80]
> /opt/google/chrome/chrome() [0x5add620]
> /opt/google/chrome/chrome(ChromeMain+0x23e) [0x5adcace]
> /usr/lib64/libc.so.6(__libc_start_call_main+0x77) [0x4087]
> /usr/lib64/libc.so.6(__libc_start_main@@GLIBC_2.34+0x8a) [0x414a]
> /opt/google/chrome/chrome(_start+0x29) [0x6975199]
[pid 20515] gettid( <unfinished ...>
[pid 20515] <... gettid resumed>) = 1
> /usr/lib64/libc.so.6(syscall+0x1d) [0xf30ed]
> /opt/google/chrome/chrome() [0x47912f0]
> /opt/google/chrome/chrome() [0x4791d71]
> /opt/google/chrome/chrome() [0x4790696]
> /opt/google/chrome/chrome() [0x5bf5e80]
> /opt/google/chrome/chrome() [0x5add620]
> /opt/google/chrome/chrome(ChromeMain+0x23e) [0x5adcace]
> /usr/lib64/libc.so.6(__libc_start_call_main+0x77) [0x4087]
> /usr/lib64/libc.so.6(__libc_start_main@@GLIBC_2.34+0x8a) [0x414a]
> /opt/google/chrome/chrome(_start+0x29) [0x6975199]
[pid 20515] --- SIGTRAP {si_signo=SIGTRAP, si_code=SI_KERNEL, si_addr=NULL} ---
> /opt/google/chrome/chrome() [0x47913bb]
> /opt/google/chrome/chrome() [0x4791d71]
> /opt/google/chrome/chrome() [0x4790696]
> /opt/google/chrome/chrome() [0x5bf5e80]
> /opt/google/chrome/chrome() [0x5add620]
> /opt/google/chrome/chrome(ChromeMain+0x23e) [0x5adcace]
> /usr/lib64/libc.so.6(__libc_start_call_main+0x77) [0x4087]
> /usr/lib64/libc.so.6(__libc_start_main@@GLIBC_2.34+0x8a) [0x414a]
> /opt/google/chrome/chrome(_start+0x29) [0x6975199]
[pid 20515] --- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPN, si_addr=0x556f58fde3bb} ---
> /opt/google/chrome/chrome() [0x47913bb]
> /opt/google/chrome/chrome() [0x4791d71]
> /opt/google/chrome/chrome() [0x4790696]
> /opt/google/chrome/chrome() [0x5bf5e80]
> /opt/google/chrome/chrome() [0x5add620]
> /opt/google/chrome/chrome(ChromeMain+0x23e) [0x5adcace]
> /usr/lib64/libc.so.6(__libc_start_call_main+0x77) [0x4087]
> /usr/lib64/libc.so.6(__libc_start_main@@GLIBC_2.34+0x8a) [0x414a]
> /opt/google/chrome/chrome(_start+0x29) [0x6975199]
This matches this code in sandbox/linux/services/namespace_sandbox.cc:
92 #if defined(LIBC_GLIBC)
93 // The first few fields of glibc's struct pthread. The full
94 // definition is in:
95 // https://sourceware.org/git/?p=glibc.git;a=blob;f=nptl/descr.h;hb=95a7
95 3392580761abc62fc9b1386d232cd55878e9#l121
96 struct glibc_pthread {
97 union {
98 #if defined(ARCH_CPU_X86_64)
99 // On x86_64, sizeof(tcbhead_t) > sizeof(void*)*24.
100 // https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/x86_64/n
100 ptl/tls.h;hb=95a73392580761abc62fc9b1386d232cd55878e9#l65
101 // For all other architectures, sizeof(tcbhead_t) <= sizeof(void*)*2
101 4.
102 // https://sourceware.org/git/?p=glibc.git&a=search&h=HEAD&st=grep&s
102 =%7D+tcbhead_t
103 char header[704];
104 #endif
105 void* padding[24];
106 } header;
107 void* list[2];
108 pid_t tid;
109 };
110
111 pid_t GetGlibcCachedTid() {
112 pthread_mutex_t lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
113 CHECK_EQ(0, pthread_mutex_lock(&lock));
114 pid_t tid = lock.__data.__owner;
115 CHECK_EQ(0, pthread_mutex_unlock(&lock));
116 CHECK_EQ(0, pthread_mutex_destroy(&lock));
117 return tid;
118 }
119
120 void MaybeUpdateGlibcTidCache() {
121 // After the below CL, glibc does not does not reset the cached
122 // TID/PID on clone(), but pthread depends on it being up-to-date.
123 // This CL was introduced in glibc 2.25, and backported to 2.24 on
124 // at least Debian and Fedora. This is a workaround that updates
125 // the cache manually.
126 // https://sourceware.org/git/?p=glibc.git;a=commit;h=c579f48edba88380 126 635ab98cb612030e3ed8691e
127 pid_t real_tid = sys_gettid();
128 pid_t cached_tid = GetGlibcCachedTid();
129 if (cached_tid != real_tid) {
130 pid_t* cached_tid_location =
131 &reinterpret_cast<struct glibc_pthread*>(pthread_self())->tid;
132 CHECK_EQ(cached_tid, *cached_tid_location);
133 *cached_tid_location = real_tid;
134 CHECK_EQ(real_tid, GetGlibcCachedTid());
135 }
136 }
137 #endif // defined(LIBC_GLIBC)
All these are glibc internals, and Chromium should not be poking at them. If this code is still need in glibc 2.41, we need to provide an alternative solution.
*** Bug 2335408 has been marked as a duplicate of this bug. *** I applied a patch to glibc-2.40.9000-26.fc42: [PATCH] x86_64: Reset TID in TCB on clone that does not use CLONE_VM <https://inbox.sourceware.org/libc-alpha/87jzbblwp1.fsf@oldenburg.str.redhat.com/> Thanks. 2.40.9000-26.fc42 cures the chrome crash here too. *** Bug 2336557 has been marked as a duplicate of this bug. *** |