develooper Front page | perl.perl5.porters | Postings from September 2016


Jarkko Hietaniemi
September 20, 2016 12:03
Message ID:
The -fsanitize=undefined seems to be getting much better in both
gcc and clang.  I tried configuring in OS X as:

sh Configure -des -Dusedevel -Dcc=clang-mp-3.9 

(the clang-mp-3.9 is the MacPorts clang)

Note that I configured also with "asan".  This is possible, as in,
the sanitizers can coexist.  The downside is that the "AddressSanitizer"
label gets overused a bit in the reports (at least with clang, didn't
try gcc).  But the point is that the "ubsan" will insert its checks,
visible in the output as "runtime".

Built miniperl, and ran minitest. 18 failures, log attached, linenumbers 
as of blead edc2c47a7af2b67f9541072b69a97b21f56cdcd4

By default ubsan just warns about the problem and doesn't halt, if you 
want that, run with

env UBSAN_OPTIONS=halt_on_error=1 ...

More information for clang and gcc: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About