Comment #12 on issue 235 by [email protected]: compiling with asan generates wrong DWARF
https://code.google.com/p/address-sanitizer/issues/detail?id=235

Hi,

with clang 3.5 this is still broken for simple cases. I tested on SLES 11 x86_64. Please see the attached example. A debugger session is pasted in build.sh, and you can also run build.sh to generate the binary "gtest_asan" which reproduces the problem. Both a local variable and the "this" pointer get optimized out and can not be displayed in the debugger.

One precondition seems to be that an external function call must be there, though I was only able to reproduce it with the gtest framework, but not with a simple extern function.

Interestingly, the debug information for the local variable is there if compiled with -O1 ("this" pointer is still optimized out).

I did not test this on trunk yet.

Best regards,
Martin Richtarsky

Attachments:
        debuginfo.tar.gz  205 KB

--
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