The C++ ABI's __cxa_demangle() function rejects unscoped/local/static names. The attached test outputs: _Z9NullDerefPi: status 0; demangled: 'NullDeref(int*)' _ZL9NullDerefPi: status -2 The expected output is: _Z9NullDerefPi: status 0; demangled: 'NullDeref(int*)' _ZL9NullDerefPi: status 0; demangled: 'NullDeref(int*)' Obvisouly, the reason of the rejection is the 'L' in front of the 2nd identifier. That letter reflects the fact the name is declared static: static void NullDeref(int*); This defect prevents the LLVM's address sanitizer test null_deref.cc from passing on FreeBSD 9.2 .
Created attachment 144120 [details] The test source
__cxa_demangle on 10.1+ / HEAD handles these. No more releases are planned from stable/9.
Thank you for the report. FreeBSD 9 is now past its end of life date. I have verified that this issue is not present in FreeBSD 10 and later.