Skip to content

Can’t run the Docker container #15

@maxiwee69

Description

@maxiwee69

When I try to run the container(using the command seen below) I get the following error


maxi@localhost:~/SockFuzzer$ sudo docker run -e FUZZING_LANGUAGE="C" builder

---------------------------------------------------------------
Compiling libFuzzer to /usr/lib/libFuzzingEngine.a...  done.
---------------------------------------------------------------
CC=clang
CXX=clang++
CFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link
CXXFLAGS=-O1 -fno-omit-frame-pointer -gline-tables-only -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION -fsanitize=address -fsanitize-address-use-after-scope -fsanitize=fuzzer-no-link -stdlib=libc++
RUSTFLAGS=--cfg fuzzing -Zsanitizer=address -Cdebuginfo=1 -Cforce-frame-pointers
---------------------------------------------------------------
++ dirname /src/build.sh
+ LIBFUZZER_SRC_DIR=/src
+ CXX=clang++
+ for f in $LIBFUZZER_SRC_DIR/*.cpp
+ wait
+ clang++ -g -O2 -fno-omit-frame-pointer -std=c++11 '/src/*.cpp' -c
clang-15: error: no such file or directory: '/src/*.cpp'
clang-15: error: no input files
+ rm -f libFuzzer.a
+ ar ru libFuzzer.a 'Fuzzer*.o'
ar: `u' modifier ignored since `D' is the default (see `U')
ar: creating libFuzzer.a
ar: Fuzzer*.o: No such file or directory
maxi@localhost:~/SockFuzzer$

when I try to run it without this -e flag in the docker command I get

maxi@localhost:~/SockFuzzer$ sudo docker run builder
---------------------------------------------------------------
/usr/local/bin/compile: line 27: FUZZING_LANGUAGE: unbound variable
maxi@localhost:~/SockFuzzer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions