Closed GoogleCodeExporter closed 9 years ago
very strange. I can't reproduce this.
(I've just edited the wiki so that one can copy-paste the entire command
sequence)
Here is what I've done:
mkdir tracing_example
cd tracing_example
cat << EOF > re2_hello_world.cc
#include "re2/re2.h"
#include <cassert>
int main(int argc, char **argv) {
assert(argc == 3);
return RE2::PartialMatch(/*text*/argv[1], /*re=*/argv[2]);
}
EOF
hg clone https://re2.googlecode.com/hg re2
ASAN="-fsanitize=address"
TRACE="-fsanitize-coverage=3 -mllvm -sanitizer-coverage-experimental-tracing"
(cd re2 && CXX="clang++ $ASAN $TRACE" make -j)
clang++ -fsanitize=address re2_hello_world.cc -Ire2 re2/obj/libre2.a
ASAN_OPTIONS=coverage=1:verbosity=1 ./a.out hello 'h.*o'
And here is what I get:
==17097== CovDump: Trace: 13573 PCs written
==17097== CovDump: Trace: 16443 Events written
==17097== CovDump: ./a.out.17097.sancov: 1409 PCs written
Original comment by konstant...@gmail.com
on 5 May 2015 at 7:14
I clobbered everything and ran your code and couldn't reproduce the issue
either.
I think I had re2 built with an older version of clang. (I mean, I did build it
with an old version initially, and was 99% sure I clobbered it afterwards, but
apparently I didn't.)
Let's chalk it up as unreproducible.
Original comment by earth...@google.com
on 5 May 2015 at 7:21
Adding Project:AddressSanitizer as part of GitHub migration.
Original comment by ramosian.glider@gmail.com
on 30 Jul 2015 at 9:14
Original issue reported on code.google.com by
earth...@google.com
on 5 May 2015 at 5:52