Note: Google Test filter = *PeepholeStaleOffsetAfterSequence* [==========] Running 1 test from 1 test suite. [----------] Global test environment set-up. [----------] 1 test from RegExpTest [ RUN ] RegExpTest.PeepholeStaleOffsetAfterSequence [POC] SkipUntilOneOfMasked @168 on_match2=296 length=220 ================================================================= ==3539==ERROR: AddressSanitizer: use-after-poison on address 0x7e1c10e01030 at pc 0x556e65cbb76f bp 0x7ffc62e46eb0 sp 0x7ffc62e46ea8 READ of size 8 at 0x7e1c10e01030 thread T0 #0 0x556e65cbb76e in v8::internal::regexp::CodeGenerator::PreVisitBytecodes() v8/src/utils/bit-vector.h:235:13 #1 0x556e65cb7e33 in v8::internal::regexp::CodeGenerator::Assemble(v8::internal::DirectHandle, v8::base::Flags) v8/src/regexp/regexp-code-generator.cc:58:3 #2 0x556e622e378c in v8::internal::RegExpTest_PeepholeStaleOffsetAfterSequence_Test::TestBody() v8/test/unittests/regexp/regexp-unittest.cc:2595:16 #3 0x556e69d27c0b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #4 0x556e69d2a8b7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #5 0x556e69d2c823 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #6 0x556e69d5c48a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #7 0x556e69d5aeee in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x556e622f6097 in main third_party/googletest/src/googletest/include/gtest/gtest.h:2337:73 #9 0x7fcc11dde249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) 0x7e1c10e01030 is located 1840 bytes inside of 8192-byte region [0x7e1c10e00900,0x7e1c10e02900) allocated by thread T0 here: #0 0x556e612cf324 in malloc (/chromium/chromium/src/out/asan/v8_unittests+0x50b7324) (BuildId: ae2dd29d2e007245) #1 0x556e6609ebd7 in v8::internal::AllocAtLeastWithRetry(unsigned long) v8/src/base/platform/memory.h:44:10 #2 0x556e660a9f60 in v8::internal::AccountingAllocator::AllocateSegment(unsigned long) v8/src/zone/accounting-allocator.cc:121:14 #3 0x556e660ae0b6 in v8::internal::Zone::Expand(unsigned long) v8/src/zone/zone.cc:178:34 #4 0x556e660adf72 in v8::internal::Zone::AsanNew(unsigned long) v8/src/zone/zone.cc:52:5 #5 0x556e65cb7892 in v8::internal::regexp::CodeGenerator::CodeGenerator(v8::internal::Isolate*, v8::internal::regexp::RegExpMacroAssembler*, v8::internal::DirectHandle) v8/src/zone/zone.h:57:12 #6 0x556e622e374c in v8::internal::RegExpTest_PeepholeStaleOffsetAfterSequence_Test::TestBody() v8/test/unittests/regexp/regexp-unittest.cc:2592:25 #7 0x556e69d27c0b in testing::Test::Run() third_party/googletest/src/googletest/src/gtest.cc #8 0x556e69d2a8b7 in testing::TestInfo::Run() third_party/googletest/src/googletest/src/gtest.cc:2892:11 #9 0x556e69d2c823 in testing::TestSuite::Run() third_party/googletest/src/googletest/src/gtest.cc:3070:30 #10 0x556e69d5c48a in testing::internal::UnitTestImpl::RunAllTests() third_party/googletest/src/googletest/src/gtest.cc:6062:44 #11 0x556e69d5aeee in testing::UnitTest::Run() third_party/googletest/src/googletest/src/gtest.cc #12 0x556e622f6097 in main third_party/googletest/src/googletest/include/gtest/gtest.h:2337:73 #13 0x7fcc11dde249 (/lib/x86_64-linux-gnu/libc.so.6+0x27249) (BuildId: 6196744a316dbd57c0fd8968df1680aac482cec4) SUMMARY: AddressSanitizer: use-after-poison v8/src/utils/bit-vector.h:235:13 in v8::internal::regexp::CodeGenerator::PreVisitBytecodes() Shadow bytes around the buggy address: 0x7e1c10e00d80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e1c10e00e00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e1c10e00e80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e1c10e00f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e1c10e00f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 f7 =>0x7e1c10e01000: f7 f7 00 00 00 00[f7]f7 f7 00 00 00 00 f7 f7 f7 0x7e1c10e01080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e1c10e01100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e1c10e01180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e1c10e01200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x7e1c10e01280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb NOTE: the stack trace above identifies the code that *accessed* the poisoned memory. To identify the code that *poisoned* the memory, try the experimental setting ASAN_OPTIONS=poison_history_size=. ==3539==ABORTING