Thread: Macro Help
View Single Post
Old April 19, 2015, 20:25   #10
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,367
AnonymousHero is on a distinguished road
Quote:
Originally Posted by chris View Post
(FYI: Address sanitizer does not detect out of bounds stuff for arrays inside the middle of structs.)
Are you sure? I think it should be able to, unless the structs are packed for some reason. (Maybe it's version-dependent, I'm currently running clang 3.6.)

Quote:
Originally Posted by chris View Post
EDIT3: Better answer. Install llvm-3.5 package and run
Code:
ASAN_SYMBOLIZER_PATH=/usr/bin/llvm-symbolizer-3.5 ./poschengband -g -uChris -- -n1
. I'm not sure that's any easier to type, though!
Sounds like bad packaging to me. I get symbol output by default without having to fiddle with ASAN_SYMBOLIZER_PATH or anything like that. (I'm pretty sure that was also the case with Clang 3.5.)

I guess you could always just add ASAN_SYMBOLIZER_PATH to your ~/.bash_profile (or whatever your shell is) so that you at least won't have to type all of that every time.
AnonymousHero is offline   Reply With Quote