Commit f7d65046 authored by kylechar's avatar kylechar Committed by Commit Bot

Fix wayland_fuzzer crash on exit.

base::AtExitManager is getting destroyed after the last fuzzer test case
runs due to the static initialization. Running exit tasks after some
arbitrary fuzzer test case isn't useful and destroying the
TestGpuThreadService causes a crash in eglDestroySurface().

Bug: 1009165
Change-Id: Ifde4517b574aaa367a94dcbcc502bb2ad2027813
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1872156Reviewed-by: default avatarNic Hollingum <hollingum@google.com>
Commit-Queue: kylechar <kylechar@chromium.org>
Cr-Commit-Position: refs/heads/master@{#708318}
parent 7cbdf7c9
......@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include "base/at_exit.h"
#include "base/no_destructor.h"
#include "components/exo/wayland/fuzzer/actions.pb.h"
#include "components/exo/wayland/fuzzer/harness.h"
#include "components/exo/wayland/fuzzer/server_environment.h"
......@@ -19,7 +20,7 @@ class FuzzerEnvironment {
};
DEFINE_TEXT_PROTO_FUZZER(const exo::wayland_fuzzer::actions::actions& acts) {
static base::AtExitManager exit_manager;
static base::NoDestructor<base::AtExitManager> exit_manager;
static FuzzerEnvironment environment;
exo::wayland_fuzzer::Harness().Run(acts);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment