[MacPorts] #41366: asan (address sanitizer) is broken
MacPorts
noreply at macports.org
Thu Nov 14 06:22:25 PST 2013
#41366: asan (address sanitizer) is broken
-----------------------------+--------------------------------
Reporter: akim.demaille@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Keywords: | Port: gcc48
-----------------------------+--------------------------------
address sanitizer is broken with 4.8, probably because its library is not
installed. It works with 4.9:
{{{
$ cat foo.cc
int main() {}
$ gcc-mp-4.9 -fsanitize=address foo.cc
$ g++-mp-4.8 -fsanitize=address foo.cc
ld: library not found for -lasan
collect2: error: ld returned 1 exit status
}}}
(C vs. C++ is irrelevant)
Note that neither thread sanitizers work properly:
{{{
$ gcc-mp-4.9 -fsanitize=thread foo.cc
Undefined symbols for architecture x86_64:
"___tsan_init", referenced from:
__GLOBAL__sub_I_00099_0_foo.cc in ccs9M1Tr.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
$ gcc-mp-4.8 -fsanitize=thread foo.cc
Undefined symbols for architecture x86_64:
"___tsan_init", referenced from:
__GLOBAL__sub_I_00099_0_foo.cc in ccx7nFfX.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
}}}
--
Ticket URL: <https://trac.macports.org/ticket/41366>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list