Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-Defect Priority-Medium

New issue 300 by [email protected]: llvm-symbolizer does not see inlined functions
http://code.google.com/p/address-sanitizer/issues/detail?id=300

$ cat ../1.cc
#include <stdio.h>

void f() {
  int * volatile p = new int;
  if (*p)
    printf("zzz\n");
}

int main(void) {
  f();
  return 0;
}
$ bin/clang++ -O2 -g ../1.cc -fsanitize=memory -o 1
$ MSAN_SYMBOLIZER_PATH=bin/llvm-symbolizer ./1
==7082== WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x7f33c05fcc73 in main /code/llvm/build0/../1.cc:6
#1 0x7f33bf17b76c in __libc_start_main /build/buildd/eglibc-2.15/csu/libc-start.c:226
    #2 0x7f33c05fca40 in _start (/code/llvm/build0/1+0x82a40)

Line number correctly points inside f() but function name is wrong. We used to have one more line in the stack with the same pc pointing to f(), right?


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to