Bug 305682
| Summary: | WTF::IntervalSet : AddressSanitizer: invalid alignment requested in aligned_alloc | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <fujii.hironori> |
| Component: | Web Template Framework | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | dan.hecht, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Fujii Hironori
$ ./WebKitBuild/GTK/Release/bin/TestWebKitAPI/TestWTF --gtest_filter=WTF_IntervalSet.SingleInterval
=================================================================
==773923==ERROR: AddressSanitizer: invalid alignment requested in aligned_alloc: 64, alignment must be a power of two and the requested size 0x3c must be a multiple of alignment (thread T0)
#0 0x55c8235638c6 in aligned_alloc (/home/fujii/wf/WebKitBuild/GTK/Release/bin/TestWebKitAPI/TestWTF+0x62d8c6) (BuildId: ee7d06dc8f37f17e)
#1 0x55c824833d53 in pas_system_heap_memalign (/home/fujii/wf/WebKitBuild/GTK/Release/bin/TestWebKitAPI/TestWTF+0x18fdd53) (BuildId: ee7d06dc8f37f17e)
#2 0x55c8244af36d in pas_system_heap_allocate(unsigned long, unsigned long, pas_allocation_mode) FastMalloc.cpp
#3 0x55c8244b01ac in bmalloc_allocate_with_alignment_impl_casual_case(unsigned long, unsigned long, pas_allocation_mode) FastMalloc.cpp
#4 0x55c8244ac5e5 in WTF::fastAlignedMalloc(unsigned long, unsigned long) (/home/fujii/wf/WebKitBuild/GTK/Release/bin/TestWebKitAPI/TestWTF+0x15765e5) (BuildId: ee7d06dc8f37f17e)
#5 0x55c823a5e6f8 in WTF::IntervalSet<unsigned int, int, 1ul>::insert(WTF::Range<unsigned int> const&, int const&) IntervalSet.cpp
#6 0x55c823a5a9bf in TestWebKitAPI::WTF_IntervalSet_SingleInterval_Test::TestBody() IntervalSet.cpp
#7 0x7ffb32c87c21 in testing::Test::Run() (/sdk/webkit/WebKitBuild/GTK/Release/lib/libgtest.so+0x7ec21) (BuildId: b2adffd6359f821c)
#8 0x7ffb32c8a532 in testing::TestInfo::Run() (/sdk/webkit/WebKitBuild/GTK/Release/lib/libgtest.so+0x81532) (BuildId: b2adffd6359f821c)
#9 0x7ffb32c8c601 in testing::TestSuite::Run() (/sdk/webkit/WebKitBuild/GTK/Release/lib/libgtest.so+0x83601) (BuildId: b2adffd6359f821c)
#10 0x7ffb32cb296c in testing::internal::UnitTestImpl::RunAllTests() (/sdk/webkit/WebKitBuild/GTK/Release/lib/libgtest.so+0xa996c) (BuildId: b2adffd6359f821c)
#11 0x7ffb32cb0fdc in testing::UnitTest::Run() (/sdk/webkit/WebKitBuild/GTK/Release/lib/libgtest.so+0xa7fdc) (BuildId: b2adffd6359f821c)
#12 0x55c823599d40 in TestWebKitAPI::TestsController::run(int, char**) TestsController.cpp
#13 0x55c82449620f in main main.cpp
#14 0x7ffb300801c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#15 0x7ffb3008028a in __libc_start_main csu/../csu/libc-start.c:360:3
#16 0x55c8234c9ee4 in _start (/home/fujii/wf/WebKitBuild/GTK/Release/bin/TestWebKitAPI/TestWTF+0x593ee4) (BuildId: ee7d06dc8f37f17e)
==773923==HINT: if you don't care about these errors you may set allocator_may_return_null=1
SUMMARY: AddressSanitizer: invalid-aligned-alloc-alignment (/home/fujii/wf/WebKitBuild/GTK/Release/bin/TestWebKitAPI/TestWTF+0x62d8c6) (BuildId: ee7d06dc8f37f17e) in aligned_alloc
==773923==ABORTING
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Fujii Hironori
Pull request: https://github.com/WebKit/WebKit/pull/56751
EWS
Committed 305994@main (edcec34a35be): <https://commits.webkit.org/305994@main>
Reviewed commits have been landed. Closing PR #56751 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/168647541>