google / tcmalloc

Apache License 2.0
4.31k stars 463 forks source link

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

Open kungf opened 1 year ago

kungf commented 1 year ago

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 commented 9 months ago

Is the program built with debug symbols?