Bug 313140
| Summary: | run-api-tests fails under ASan | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> |
| Component: | Tools / Tests | Assignee: | Alexey Proskuryakov <ap> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | k_monsen, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Alexey Proskuryakov
When running API tests with ASan, I see them fail right away:
$ run-api-tests --release
Failed to list TestWTF tests
Failed to collect tests
The underlying issue is that the harness is crashing:
==46795==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x604000050480 at pc 0x000101c91dd8 bp 0x00016f256d90 sp 0x00016f256d88
READ of size 8 at 0x604000050480 thread T0
#0 0x000101c91dd4 in void testing::internal::ParseGoogleTestFlagsOnlyImpl<char>(int*, char**)+0x328 (ToBeListed:arm64e+0x1010e9dd4)
#1 0x000101c91a1c in testing::internal::ParseGoogleTestFlagsOnly(int*, char**)+0x28 (ToBeListed:arm64e+0x1010e9a1c)
#2 0x000101c923c4 in void testing::internal::InitGoogleTestImpl<char>(int*, char**)+0x170 (ToBeListed:arm64e+0x1010ea3c4)
#3 0x000101c22e34 in TestWebKitAPI::TestsController::run(int, char**)+0x17c (ToBeListed:arm64e+0x10107ae34)
#4 0x000101c2449c in specialized withUnsafeMutableCStyleArguments<A, B>(_:_:)+0x1ac (ToBeListed:arm64e+0x10107c49c)
#5 0x000101c24278 in GoogleTestsController.run(with:)+0x70 (ToBeListed:arm64e+0x10107c278)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/175434331>
Alexey Proskuryakov
Pull request: https://github.com/WebKit/WebKit/pull/63434
EWS
Committed 311891@main (68bd088218fb): <https://commits.webkit.org/311891@main>
Reviewed commits have been landed. Closing PR #63434 and removing active labels.