google / google/tcmalloc

bazel test failed, how to do with this failed?

Open
#192 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.3k
Forks
570
Avg merge
23h 43m
Merged PRs (30d)
172

Description

tcmalloc/testing/memory_errors_test.cc:322: Failure
Death test: { fprintf(stderr, "size=%zu\n", size); ScopedAlwaysSample always_sample; for (size_t i = 0; i < 10000; ++i) { char* volatile ptr = static_cast(malloc(size)); ptr = static_cast(realloc(ptr, size + 1)); ptr[size + 2] = 'A'; free(ptr); } }
Result: died but not with expected error.
Expected: contains regular expression "SIGSEGV"
Actual msg:
[ DEATH ] size=2
[ DEATH ] tcmalloc/guarded_page_allocator.cc:488] *** GWP-ASan (https://google.github.io/tcmalloc/gwp-asan.html) has detected a memory error ***
[ DEATH ] tcmalloc/guarded_page_allocator.cc:492] >>> Access at offset 0 into buffer of length 3
[ DEATH ] tcmalloc/guarded_page_allocator.cc:494] Error originates from memory allocated in thread 18342 at:
[ DEATH ] tcmalloc/guarded_page_allocator.cc:460] @ 0x44830b

it seems old_sa do not hanlder SIGSEGV

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.