Skip to content

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

Open

Description

@kungf

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

Activity

  1. ckennelly commented on Dec 2, 2023

    @ckennelly
    Collaborator

    Is the program built with debug symbols?

  2. layman163 commented on Oct 15, 2024

    @layman163

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions