gopalshankar / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

asan should report line number for definitions of globals #299

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When asan reports bugs related to globals, it shows the name of the global 
variable and the name of the module where it is defined.
But not the line number.

Today in clang the line number is available only with -g in the debug info
metadata. But we need to provide the line number w/o -g, 
at least with -gline-tables-only, but preferably w/o any -g* flag.

Alexey, does this look similar to the other work you are planing to do with the 
debug info? 

Once the LLVM pass knows the line number for the global we'll need to 
extent the __asan_global structure to contain the line number (and bump 
the ABI version). 

Original issue reported on code.google.com by konstant...@gmail.com on 25 Apr 2014 at 9:28

GoogleCodeExporter commented 9 years ago
Yes, that's on my list of custom debug information we want to get from frontend.

Original comment by samso...@google.com on 25 Apr 2014 at 5:20