Skip to content

linux: Add support for stack guard changes on fork #3912

@permobergedge

Description

@permobergedge

Describe the bug
A while after CEF is initialized, it starts logging *** stack smashing detected ***: terminated

Is is the utility process unzip.mojom.Unzipper that is crashing.

To Reproduce
Steps to reproduce the behavior:

  1. Clone and build the minimal example found here: https://bitbucket.org/chromiumembedded/cef-project/src/master/examples/minimal/
  2. After some time, 1-4 minutes the stack smashing will begin to happen.

Expected behavior
No stack smashing

Versions (please complete the following information):

  • OS: [Ubuntu 22.04]
  • CEF Version: [134.3.7+g37e6a40]

Additional context
Typical output:

/home/per/projects/cef-project/cmake-build-debug/Debug/minimal
[0331/112558.214059:WARNING:resource_util.cc(83)] Please customize CefSettings.root_cache_path for your application. Use of the default value may lead to unintended process singleton behavior.
[178377:178377:0331/112617.169124:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[178377:178377:0331/112617.172353:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[178377:178377:0331/112618.815041:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated
*** stack smashing detected ***: terminated

I've tracked it down to that the process that is crashing is the Unzipper:

--type=utility --utility-sub-type=unzip.mojom.Unzipper --lang=en-US --service-sandbox-type=service --no-sandbox --mute-audio=1 --enable-crash-reporter=, --change-stack-guard-on-fork=enable --user-data-dir=/tmp/acl_cef_cache_157734 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,4072184129660785516,6758860463998701141,262144 --disable-features=EnableHangWatcher --variations-seed-version

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement requestlinuxLinux platform

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions