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

why the gwp-asan stack frame only address pointer #194

Open
kungf opened this issue Jul 15, 2023 · 2 comments
Open

why the gwp-asan stack frame only address pointer #194

kungf opened this issue Jul 15, 2023 · 2 comments

Comments

@kungf
Copy link

kungf commented Jul 15, 2023

How can I get the code backtrace?
This is some test result.

[  DEATH   ] tcmalloc/guarded_page_allocator.cc:488] *** GWP-ASan (https://google.github.io/tcmalloc/gwp-asan.html)  ha
s 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 27 at:
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x55b7c96f7c3f
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x55b7c96e4008
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x55b7c97a507e
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x55b7c96cb9d6
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea933ea4
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea92e059
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea90ef20
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea90f9ae
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea91035f
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea92019d
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea934e82
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea92f2bb
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea91e835
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea986af8
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbdea986a7a
[  DEATH   ] tcmalloc/guarded_page_allocator.cc:460]   @   0x7fbde9f73083

@ckennelly
Copy link
Collaborator

Is the program built with debug symbols?

@layman163
Copy link

layman163 commented Oct 15, 2024

Is the program built with debug symbols?

hi, I have the same question. My compilation instrution is

bazel build --compilation_mode=dbg --config=asan-libfuzzer tcmalloc/testing:memory_errors_test

And, it prints "*** Try rerunning with --config=asan to get stack trace of overflow ***"

Thanks for your help :)

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

3 participants