nus-apr / CrashRepair

Security Vulnerability Repair via Concolic Execution and Code Mutations
17 stars 1 forks source link

Failed to run Fuzz on coreutils subjects #163

Closed rshariffdeen closed 1 year ago

rshariffdeen commented 1 year ago

gnubug-25003 and gnubug-25023 both have similar issues

In file included from src/pr.c:314:
src/system.h:43:10: fatal error: 'configmake.h' file not found
#include "configmake.h"
         ^~~~~~~~~~~~~~
1 error generated.
ERROR:Failed to compile using given arguments: [-g -O0 -include /CrashRepair/compiler/../lib/crepair_runtime.h -I. -I./lib -Ilib -I./lib -Isrc -I./src -ggdb -fPIC -fPIE -g -O0 -Wno-error -L/klee/build/lib -lkleeRuntest -I/CrashRepair/lib -L/CrashRepair/lib -lcrepair_runtime -lcrepair_proxy -lcrepair_ghost -fsanitize=address -MT src/pr.o -MD -MP -MF src/.deps/pr.Tpo -c -o src/pr.o src/pr.c -L/CrashRepair/compiler/../lib/ -L/klee/build/lib/ -lcrepair_runtime -lcrepair_proxy -lkleeRuntest]
Makefile:8988: recipe for target 'src/pr.o' failed
make: *** [src/pr.o] Error 1
ERROR: Command 'bear make CFLAGS="-ggdb -fPIC -fPIE ${INJECT_CFLAGS:-}" CXXFLAGS="-ggdb -fPIC -fPIE ${INJECT_CXXFLAGS:-}" LDFLAGS="${INJECT_LDFLAGS:-}" src/pr' returned non-zero exit status 2.
Traceback (most recent call last):
  File "shim.py", line 7, in <module>
  File "crashrepair/cli.py", line 146, in main
  File "crashrepair/cli.py", line 139, in main
  File "crashrepair/cli.py", line 32, in do_fuzz
  File "crashrepair/scenario.py", line 417, in fuzz
  File "crashrepair/fuzzer.py", line 225, in fuzz
  File "crashrepair/scenario.py", line 396, in rebuild
  File "crashrepair/shell.py", line 53, in __call__
  File "subprocess.py", line 460, in check_returncode
subprocess.CalledProcessError: Command 'bear make CFLAGS="-ggdb -fPIC -fPIE ${INJECT_CFLAGS:-}" CXXFLAGS="-ggdb -fPIC -fPIE ${INJECT_CXXFLAGS:-}" LDFLAGS="${INJECT_LDFLAGS:-}" src/pr' returned non-zero exit status 2.
[11574] Failed to execute script 'shim' due to unhandled exception!
yannicnoller commented 1 year ago

already reported in https://github.com/nus-apr/CrashRepair/issues/155