Index: content/gpu/gpu_main.cc |
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc |
index a6728e042e44aa1f977bbd89951ecd5aa378e226..aeacd36dd4b0f2e63ed733c105ab91f024864930 100644 |
--- a/content/gpu/gpu_main.cc |
+++ b/content/gpu/gpu_main.cc |
@@ -521,6 +521,13 @@ bool StartSandboxWindows(const sandbox::SandboxInterfaceInfo* sandbox_info) { |
// content. |
sandbox::TargetServices* target_services = sandbox_info->target_services; |
if (target_services) { |
+#if defined(ADDRESS_SANITIZER) |
+ // Bind and leak dbghelp.dll before the token is lowered, otherwise |
+ // AddressSanitizer will crash when trying to symbolize a report. |
+ if (!LoadLibraryA("dbghelp.dll")) |
+ return false; |
+#endif |
+ |
target_services->LowerToken(); |
return true; |
} |