Commit Graph

397 Commits

Author SHA1 Message Date
Mike Aizatsky 6841a534a1 [infra] removed debug output 2017-01-06 13:27:37 -08:00
Mike Aizatsky 59b8c60fac [infra] do not use any sanitizers for afl (#128) 2017-01-05 13:49:28 -08:00
Mike Aizatsky 23b72b4130 [infra] afl fuzzing engine support (#128)
Use FUZZING_ENGINE="afl" to build fuzzers.
2017-01-05 13:40:45 -08:00
Abhishek Arya adb6d612c1 Update Dockerfile
Fixes #245
2017-01-04 20:16:13 -08:00
Mike Aizatsky 2e4b96c93c [infra] enabling track origins for msan (#59) 2017-01-03 14:10:50 -08:00
Abhishek Arya 5faaddd044 Update helper.py 2017-01-03 13:28:28 -08:00
Abhishek Arya 66b19116bd Update helper.py 2017-01-03 11:07:58 -08:00
Abhishek Arya 3cb1898cdd Update README.md 2017-01-03 11:04:50 -08:00
Abhishek Arya 35c191dd2a Update README.md 2017-01-03 10:53:45 -08:00
Abhishek Arya 6c4110d4a4 Fixes (#236)
* Add reproduce command.
* Remove unneeded run and just_run command with duplicate code as run_fuzzer.
* Fix docs for reproduction.
2017-01-03 10:47:05 -08:00
Mike Aizatsky e5233738b1 nit 2016-12-29 14:37:10 -08:00
Mike Aizatsky 25bec26fe4 [infra] nit 2016-12-29 14:36:32 -08:00
Mike Aizatsky 603ec83647 Update README.md 2016-12-29 14:29:32 -08:00
Mike Aizatsky 3d220f2588 [infra] renaming images: base->base-image, base-libfuzzer->base-builder
Continue publishing base-libfuzzer until images a built and
derived images migrated.

Issue #142
2016-12-29 13:39:41 -08:00
Mike Aizatsky 21bf4d622e [infra] adding afl to base image (#128) 2016-12-29 13:15:48 -08:00
Mike Aizatsky f62a882408 [infra] -e build_fuzzers flag to set environment variable (#229)
* [infra] -e helper flag to set environment variable

Can be used to switch sanitizer or fuzzing engine.

* removed unneeded class

* nit
2016-12-29 13:08:47 -08:00
Mike Aizatsky 06b1f4406d [infra] using utc instead of local time (#230) 2016-12-29 13:00:56 -08:00
Mike Aizatsky f751053545 [infra] missing unstable builds 2016-12-29 11:19:37 -08:00
Mike Aizatsky e77895463b [infra] unwrapping value 2016-12-29 11:12:56 -08:00
Mike Aizatsky 647b9cc06e [infra] removed debug output 2016-12-29 11:11:01 -08:00
Mike Aizatsky 9c8784509f [infra] nits 2016-12-29 11:09:40 -08:00
Mike Aizatsky 5390e7241b [infra] showing unstable builds 2016-12-29 11:06:49 -08:00
Mike Aizatsky a5b6c3dc05 [info] printing out job info 2016-12-29 10:43:04 -08:00
Mike Aizatsky d75677378e [infra] enabling leak detector by default
Fixes #9
Issues like #224 should fail the build now.
2016-12-28 11:18:46 -08:00
Mike Aizatsky 7e56c88379 [infra] some builds never fail 2016-12-28 10:42:30 -08:00
Mike Aizatsky 0bbedbda65 [infra] --nopull option for helper.py (#219)
The options is useful when changing base-images.
2016-12-27 17:14:33 -08:00
Mike Aizatsky c4ac474aef [infra] chown $WORK as well: it will be mounted from outside of container 2016-12-27 13:47:44 -08:00
Mike Aizatsky 6d48c46597 [infra] inputs are string arrays 2016-12-27 11:51:30 -08:00
Mike Aizatsky 288b25b287 [infra] unwrap result object 2016-12-27 11:50:40 -08:00
Mike Aizatsky 7d6b4c9acf nit 2016-12-27 11:41:04 -08:00
Mike Aizatsky 3c9642ebe4 [infra] uploading status.json 2016-12-27 11:36:13 -08:00
Mike Aizatsky 15fcfa0e52 [infra] run build.sh with -eu (exit on first error, error on undefined vars) 2016-12-27 09:39:59 -08:00
Mike Aizatsky 202b73edb8 [infra] Fixing undefined variable error
@alex, forget the explanation in fd244c7b34 ))

I think this is now how it was intended:

* ${parameter-default} expands to default if parameter is not set
* -n checks if expansion is not empty
2016-12-27 09:13:07 -08:00
Mike Aizatsky fd244c7b34 Revert "Fixed inverted conditional in compile script (#215)"
This reverts commit 43e03bc035.

The initial code was right:
(http://www.tldp.org/LDP/abs/html/parameter-substitution.html)

If $BUILD_ID is defined ${BUILD_ID+} evaluates to empty string.
If $BUILD_ID is not defined, it evaluates to null string.

-z of empty string is true
-z of null string is false

(welcome to bash).

@alex
2016-12-27 09:01:20 -08:00
Alex Gaynor 43e03bc035 Fixed inverted conditional in compile script (#215) 2016-12-24 11:57:01 -08:00
Mike Aizatsky a0e8a442b0 Update README.md 2016-12-22 10:48:28 -08:00
Mike Aizatsky 1de3d366be [infra] you can't do sh outside of node() 2016-12-21 15:40:30 -08:00
Mike Aizatsky 5a4daf8980 [infra] use $BUILD_UID if it is defined (fixes #30) (#211)
If $BUILD_UID is defined, then compile script will create a user
with a given UID and switch to it prior to calling project's build.sh.
2016-12-21 15:01:44 -08:00
Caolán McNamara b57371a098 add SYS_PTRACE capability (#9 #212)
I'm finding that with e.g.

python infra/helper.py build_fuzzers libpng

all builds fail for me with...

configure:3443: checking whether we are cross compiling
configure:3451: clang -o conftest -g -fsanitize=address -fsanitize-coverage=edge,indirect-calls,8bit-counters   conftest.c  >&5
configure:3455: $? = 0
configure:3462: ./conftest
==1014==LeakSanitizer has encountered a fatal error.
==1014==HINT: For debugging, try setting environment variable LSAN_OPTIONS=verbosity=1:log_threads=1
==1014==HINT: LeakSanitizer does not work under ptrace (strace, gdb, etc)
configure:3466: $? = 1
configure:3473: error: in `/src/libpng':
configure:3475: error: cannot run C compiled programs.

with the defaults of...
CC=clang
CXX=clang++
CFLAGS=-g -fsanitize=address -fsanitize-coverage=edge,indirect-calls,8bit-counters
CXXFLAGS=-g -fsanitize=address -fsanitize-coverage=edge,indirect-calls,8bit-counters -stdlib=libc++

but adding --cap-add SYS_PTRACE makes it work
2016-12-21 12:58:01 -08:00
Mike Aizatsky 274fb853aa [infra] do not ignore zip paths (#162) 2016-12-20 14:48:19 -08:00
Mike Aizatsky 45206f3484 [infra] nit 2016-12-15 20:57:29 -08:00
Mike Aizatsky 0a7dd52155 [infra] overriding default libraries for msan build #59 2016-12-15 20:57:07 -08:00
Mike Aizatsky 2de24fc520 [infra] build msan version of libcxx into /usr/msan/lib (#59). 2016-12-14 13:16:11 -08:00
inferno-chromium f22ee6eb3a Fix typo 2016-12-13 17:54:36 -08:00
Mike Aizatsky 5e02e09397 [infra] nit 2016-12-13 15:55:13 -08:00
inferno-chromium 01373acf7d Rename base-debug-runner->base-runner-debug, add hooks. (#181) 2016-12-13 15:07:53 -08:00
Mike Aizatsky c7b92df765 [infra] removing debug output 2016-12-13 13:48:10 -08:00
Mike Aizatsky 69b623c82d [infra] nit 2016-12-13 13:36:45 -08:00
inferno-chromium e10b3b2d51 Remove libfuzzer-runner. (#179)
* Remove libfuzzer-runner.

* Add base-debug-runner.
2016-12-13 13:16:44 -08:00
Mike Aizatsky 5c2eb9da69 [infra] removing debug output 2016-12-13 13:11:47 -08:00