forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix occasional test crashes if fake HTTP post times out
Prior to this patch, if the command times out (usually during shutdown), the unretained string pointers may point to freed memory, and the FakeServer may crash with: BrowserTestBase received signal: Segmentation fault. Backtrace: #0 0x0000f6acf3b8 base::debug::CollectStackTrace() Pissandshittium#1 0x0000f682c97f base::debug::StackTrace::StackTrace() Pissandshittium#2 0x0000f682c90e base::debug::StackTrace::StackTrace() Pissandshittium#3 0x00005d659bac content::(anonymous namespace)::DumpStackTraceSignalHandler() Pissandshittium#4 0x0000f76e0cb0 ([vdso]+0xcaf) Pissandshittium#5 0x0000569dd026 std::__Cr::char_traits<>::assign() Pissandshittium#6 0x0000569e138b std::__Cr::basic_string<>::clear() Pissandshittium#7 0x00005d7c965e fake_server::FakeServer::HandleCommand() Pissandshittium#8 0x00005d7d0a54 fake_server::(anonymous namespace)::HandleCommandOnFakeServerThread() Pissandshittium#9 0x00005d7d130f base::internal::FunctorTraits<>::Invoke<>() The new approach avoids time-based codepaths and instead handles the Abort() case explicitly. Bug: 869404 Change-Id: Ibae008d16d331db85d7fe1dd3609255813818fa8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1511353 Commit-Queue: Mikel Astiz <mastiz@chromium.org> Auto-Submit: Mikel Astiz <mastiz@chromium.org> Reviewed-by: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#639026}
- Loading branch information
Mikel Astiz
authored and
Commit Bot
committed
Mar 8, 2019
1 parent
b810be4
commit 8398334
Showing
2 changed files
with
45 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters