When using 32-bit python with 64-bit asan the pc array in sancov.py cannot fit in 64-bit pc's because the type-code 'L' for arrays in python corresponds to the C type long which is only of 4 bytes. Because of this some of the coverage tool tests fail on mips. To fix these test possible solutions are to use 64-bit python or use struct.unpack with the 'Q' type-code. We have used struct.unpack with 'Q' type code since it is not appropriate to have a 64-bit python on all hosts.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
I'd like to eventually deprecate the use of sancov.py in favor of the C++-based sancov.
Does this tool work for you?
Comment Actions
That wasn't my question.
I asked whether the new C++-based sancov (no .py) works for you.
http://clang.llvm.org/docs/SanitizerCoverage.html#sancov-tool
Comment Actions
Yes, making sancov.cc working for you would be ideal.
As for this change, it does make existing code better in terms of bitness flexibility.