Re: Connected sanitizer libraries to the build (for x86)
On 14 Jan 2015, at 22:17, Kurt Lidl wrote: > > This apparently breaks the build when compiling on a > system that has WITHOUT_IPFILTER= in /etc/src.conf: > > --- depend_subdir_libclang_rt --- > In file included from > /usr/src/lib/libclang_rt/asan/../../../contrib/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:59: > /usr/obj/usr/src/tmp/usr/include/sys/timeb.h:42:2: warning: "this file > includes which is deprecated" [-W#warnings] > #warning "this file includes which is deprecated" > ^ > /usr/src/lib/libclang_rt/asan/../../../contrib/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:100:11: > fatal error: 'netinet/ip_compat.h' file not found > # include > ^ Thanks for the reminder (I already got a similar report earlier), this has been fixed in r277201. -Dimitry signature.asc Description: Message signed with OpenPGP using GPGMail
Re: Connected sanitizer libraries to the build (for x86)
This apparently breaks the build when compiling on a system that has WITHOUT_IPFILTER= in /etc/src.conf: --- depend_subdir_libclang_rt --- In file included from /usr/src/lib/libclang_rt/asan/../../../contrib/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:59: /usr/obj/usr/src/tmp/usr/include/sys/timeb.h:42:2: warning: "this file includes which is deprecated" [-W#warnings] #warning "this file includes which is deprecated" ^ /usr/src/lib/libclang_rt/asan/../../../contrib/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:100:11: fatal error: 'netinet/ip_compat.h' file not found # include ^ -Kurt ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Connected sanitizer libraries to the build (for x86)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 01/13/15 12:28, Dimitry Andric wrote: > Hi, > > In r277146, I have connected the sanitizer libraries from > compiler-rt to the build. Currently, this works for i386 and > amd64, and contains Address Sanitizer (ASan) and Undefined Behavior > Sanitizer. > > AddressSanitizer is a fast memory error detector [1]. It consists > of a compiler instrumentation module and a run-time library. The > tool can detect the following types of bugs: > > * Out-of-bounds accesses to heap, stack and globals * > Use-after-free * Use-after-return (to some extent) * Double-free, > invalid free * Memory leaks (experimental) > > The typical slowdown introduced by AddressSanitizer is 2x. Enable > it by compiling and linking with clang, and using the > -fsanitize=address flag. > > Undefined Behavior Sanitizer is a fast and compatible undefined > behavior checker, which enables a number of checks that have small > runtime cost and no impact on address space layout or ABI. Enable > it by using the -fsanitize=undefined flag. [2] > > Please note that the sanitizers still have some rough edges on > FreeBSD, particularly on i386. These will hopefully be smoothed > out in the coming time. Reports of problems (and fixes :) are very > welcome, but please log them in Bugzilla, so they can be tracked. > > -Dimitry > > [1] > http://llvm.org/releases/3.5.0/tools/clang/docs/AddressSanitizer.html > > [2] http://llvm.org/releases/3.5.0/tools/clang/docs/UsersManual.html#opt-fsanitize-undefined > Do you want a test run for arm? sean -BEGIN PGP SIGNATURE- Version: GnuPG v2 iQF8BAEBCgBmBQJUtaFkXxSAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5k5nsH/iHhTW359K0f2BtUDBwH/+ga 9w7MbymRJZvKTh60LABeuN//DJ9BBRHzGHtRd5nYvvLSBN5HfVy2LbmNvz9H1p0B /Gw6N9XL3pVMpLxU4JP6IMJ6c1YIlrapDxfUPOVpEPmdOeZ2xPsgRDB20tDNuKxj AQftpNqf1KJL0FhzfKv0TupxPpCKuffTfO+kYa5tQQU/bDXkgxB1BsuxUD/4HiZU nRAsbhlZV1roEo3l36a2mlRtc6sEPpZTKn4Phv3oNT7cfCd5hnuhyCfcZOWk7yXo HyboVn10ABX8GismKQ0erkxNhcHD4VepY2CCc/0z+AhUV0DztpfLvzDoEE0lDaY= =DqeZ -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Connected sanitizer libraries to the build (for x86)
On Tue, 13 Jan 2015 21:28:08 +0100 Dimitry Andric wrote > Hi, > > In r277146, I have connected the sanitizer libraries from compiler-rt to > the build. Currently, this works for i386 and amd64, and contains > Address Sanitizer (ASan) and Undefined Behavior Sanitizer. > > AddressSanitizer is a fast memory error detector [1]. It consists of a > compiler instrumentation module and a run-time library. The tool can > detect the following types of bugs: > > * Out-of-bounds accesses to heap, stack and globals > * Use-after-free > * Use-after-return (to some extent) > * Double-free, invalid free > * Memory leaks (experimental) > > The typical slowdown introduced by AddressSanitizer is 2x. Enable it by > compiling and linking with clang, and using the -fsanitize=address flag. > > Undefined Behavior Sanitizer is a fast and compatible undefined behavior > checker, which enables a number of checks that have small runtime cost > and no impact on address space layout or ABI. Enable it by using the > -fsanitize=undefined flag. [2] > > Please note that the sanitizers still have some rough edges on FreeBSD, > particularly on i386. These will hopefully be smoothed out in the > coming time. Reports of problems (and fixes :) are very welcome, but > please log them in Bugzilla, so they can be tracked. These looks like welcomed addition(s). Thank you, Dimitry! --Chris > > -Dimitry > > [1] http://llvm.org/releases/3.5.0/tools/clang/docs/AddressSanitizer.html > [2] > http://llvm.org/releases/3.5.0/tools/clang/docs/UsersManual.html#opt-fsanitiz ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"