DescriptionAdd some function to induce ASan crashes.
This will allows to induce ASan crashes in the browser and in the renderer processes, this is really useful when trying to debug an ASan crash (to make sure that the build is really instrumented).
This code add the following crash urls to chrome:
chrome://crash/browser-heap-overflow
chrome://crash/browser-heap-underflow
chrome://crash/browser-use-after-free
chrome://crash/browser-corrupt-heap-block
chrome://crash/browser-corrupt-heap
Those URLs induce a crash in the browser process, while those:
chrome://crash/heap-overflow
chrome://crash/heap-underflow
chrome://crash/use-after-free
chrome://crash/corrupt-heap-block
chrome://crash/corrupt-heap
induce a crash in the renderer process.
We need this because as these process use a different DLL (chrome.dll vs
chrome_child.dll) one of them could be ASan-instrumented while the other one
isn't... So the current code in renderer/ is useless for the browser-only
instrumented builds...
BUG=
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277201
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : Fix the test on Linux. #Patch Set 5 : Move the tests to tools_sanity_unittests. #Patch Set 6 : Use the new Asan debug functions in the crash urls. #
Total comments: 14
Patch Set 7 : Address Timur's comments. #Patch Set 8 : Fix a compilation bug. #
Total comments: 6
Patch Set 9 : Address Timur and nasko's comments. #
Total comments: 4
Patch Set 10 : Address Nico's comments. #Patch Set 11 : Add a check to ensure that the URL scheme is 'chrome://' #
Messages
Total messages: 34 (0 generated)
|