Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 1223031]
Internals>CrashReporting
Supplemental component tags only. Set main component first. [ID: 1222907]
[ID: 1223136]
Design doc to be reviewed. [ID: 1223032]
[ID: 1223087]
[ID: 1223134]
Milestone(s) impacted by this issue. [ID: 1223085]
[ID: 1223084]
[ID: 1223086]
[ID: 1223034]
Link to incidents in IRM as a result of this ticket. [ID: 1300460]
[ID: 1223088]
This field contains Gerrit urls of code changes that ‘fix’ a security bug (i.e., excluding logging/cleanup commits) and is used when a singular fix cannot be uniquely identified from the existing “Code Changes” field. The change can be in the chromium repo or any other third_party repo. [ID: 1358989]
Internals
[ID: 1253656]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Estimated effort
Attachment actions
Description
Info
Chrome Version: CEF 130.1.16+g5a7e5ed+chromium-130.0.6723.117 (fromhttps://cef-builds.spotifycdn.com )
Is this the most recent version: no, the same issue is present on the
main
branch thoughOS + version: reproduced on Ubuntu 22.04 and Fedora 41
CPU architecture (32-bit / 64-bit): 64-bit
Window manager: irrelevant
We use CEF in our product and managed to trace the cause of a "random" renderer crash we were getting while in high-memory-usage situations. This problem shows only when compiled with glibc<2.33. We cannot use glibc>2.31 to keep compatibility with Ubuntu 20.04.
Steps
What steps will reproduce the problem?
malloc
so thatmallinfo
data wraps around and returns negative values (between 2 GiB and 4 GiB).TabMemoryMetricsReporter
to request a memory dump.checked_cast<size_t>
fails (see below the source code line). This terminates the render process.What is the expected result?
What happens instead?
Please provide any additional information below. Attach a screenshot and backtrace if possible.
Dumps
This is a backtrace of the issue on CEF 130.1.16+g5a7e5ed+chromium-130.0.6723.117:
This is the failing check that jumps tohttps://source.chromium.org/chromium/chromium/src/+/refs/tags/133.0.6943.142:base/trace_event/malloc_dump_provider.cc;l=203
ud2
instruction, causing a SIGILL:The disassembly of
OnMemoryDump
reveals that failed casts jump toOnMemoryDump+449
, which isud2
:Fix
We patched this locally by casting the data returned by
mallinfo
.The data will still be wrong when malloc usage is >4GiB, but the crash is prevented.