-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cefclient crash navigating to web.dev #3717
Comments
This looks to be another dangling pointer crash like #3239. |
Yes, likely the same one we tried to fix in 47798d3. |
@salvadordf Please test M126 with the above fix and let me know if the issue still reproduces for you. |
REMOVED. EDIT: I was wrong. |
I'm sorry but I still get the crash in two different computers running https://cef-builds.spotifycdn.com/cef_binary_126.2.4%2Bg5e718e0%2Bchromium-126.0.6478.62_windows64_client.tar.bz2 PC 1: AMD Ryzen 7 3700X 8-Core Processor 3.59 GHz 24GB RAM with Windows 10 Pro 19045.4529 (Spanish) It takes more time to reproduce in the second PC. The callstacks are almost identical (see attachments) Sometimes I had to go back and forward several times. Sometimes I had to reload or paste the web.dev address again instead of pressing forward. I used WinDbg and crashing cefclient while using WinDbg takes a lot fewer navigations. |
I guess I should have noted that my attempts were on Mac OS. EDIT: And another attempt caused it to crash. |
Thanks for the updates. |
It may take some time to fix this issue. In the mean time, you should be able to disable the check by passing |
I believe the problem is this line (and maybe other places as well).
The |request| parameter is a pointer, and via some template magic Chromium is wrapping it in a type that checks if the pointer is dangling.
As a short-term solution we can add explicit use of |
I tested https://cef-builds.spotifycdn.com/cef_binary_126.2.6%2Bgc7c4ac9%2Bchromium-126.0.6478.115_windows64_client.tar.bz2 with the --disable-features=PartitionAllocDanglingPtr switch and it took me more time but it crashed when pressing the back button. This time I had to navigate back and forth many more times. Before the crash cefclient was showing the web,dev page, I waited 3 seconds, pressed back and it crashed. |
@salvadordf can you try |
@magreenblatt This time it took a lot more time to reproduce the crash and the callstack is different. |
Looks like that did the trick:
|
@salvadordf Thanks, that looks like a new (unrelated) crash. |
Change UnretainedWrapper traits from MayNotDangle (default) to MayDangleUntriaged as a short-term fix.
I believe the known/related crashes are now fixed, but of course we can reopen if there are more. |
I'm leaving the original commit 47798d3 fix for M127+, as I believe that change is correct in combination with the new fix (pending any crashes to the contrary 😄) |
For my understanding, as of this time all known crashes are addressed and the next CEF build for the 126 baseline should be danging-pointer-crash free? |
@bjdupuis We address dangling-ptr crashes as they're reported. You can run with |
Change UnretainedWrapper traits from MayNotDangle (default) to MayDangleUntriaged as a short-term fix.
I thought that @salvadordf had run with those flags and still experienced crashes. Or was it because both weren't specified at the same time? |
The final crash that @salvadordf reported (with PartitionAllocUnretainedDanglingPtr disabled) is a DCHECK here in Chromium and unrelated to dangling rawptrs. |
And finally (sorry... really mostly trying to figure out when it's safe to cut a new build on a CEF release to have the best chance at stability), has that DCHECK been reported? If not, is that something that @salvadordf or myself should do? |
A quick search of https://crbug.com didn't reveal anything. You can file a new bug there, however Debug-only checks in Chromium tend not to get much attention. |
Ohh, didn't realize DCHECKs were in debug-only builds. Sorry Marshall, I'll zip it now. |
Describe the bug
cefclient crashes when you navigate back from web.dev. Sometimes it crashes as soon as you navigate to the web.dev website.
To Reproduce
Steps to reproduce the behavior:
Sometimes cefclient crashes as soon as it loads the web.dev link and sometimes you have to click "back" and "forward" several times.
Expected behavior
cefclient shouldn't crash when it navigates to any website.
Versions (please complete the following information):
No relevant information in debug.log.
Here's the callstack of the crash:
callstack.txt
The text was updated successfully, but these errors were encountered: