Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bazel test failed, how to do with this failed? #192

Open
kungf opened this issue Jul 14, 2023 · 0 comments
Open

bazel test failed, how to do with this failed? #192

kungf opened this issue Jul 14, 2023 · 0 comments

Comments

@kungf
Copy link

kungf commented Jul 14, 2023

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<char*>(malloc(size)); ptr = static_cast<char*>(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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant