From 7c2f9e6b14220dc6ffe69aee11bc28e0f7c60985 Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Tue, 4 Oct 2016 11:57:14 -0700 Subject: [PATCH] Update debugging.md --- docs/debugging.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/debugging.md b/docs/debugging.md index d9d04208f..634572068 100644 --- a/docs/debugging.md +++ b/docs/debugging.md @@ -8,3 +8,11 @@ $ python scripts/helper.py shell $LIB_NAME # runs /bin/bash within container $ bash /src/oss-fuzz/$LIB_NAME/build.sh # to run the build script manually ``` +## Debugging Fuzzers + +If you decide to debug a fuzzer with gdb (which is already installed in libfuzzer-runner image), +you will need to start a container in privileged mode: + +```bash +docker run -ti --privileged -v /tmp/out:/out -t ossfuzz/libfuzzer-runner /out/some_fuzzer_name +```