nus-apr / CrashRepair

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

Validation Crash #174

Closed rshariffdeen closed 1 year ago

rshariffdeen commented 1 year ago
2023-04-27 08:15:25.889 | DEBUG    | crashrepair.scenario:rebuild:356 - original environment: environ({'LC_ALL': 'C.UTF-8', 'LD_LIBRARY_PATH': '/tmp/_MEIwwdsLw:/opt/crashrepair/lib:/CrashRepair/lib:/klee/build/lib:', 'PATCH_LIMIT': '10', 'LANG': 'C.UTF-8', 'TEST_TIME_LIMIT': '30', 'HOSTNAME': '4e0805c1a599', 'OLDPWD': '/CrashRepair', 'CC': 'crepair-cc', 'LLVM_COMPILER': 'clang', 'HOST_GID': '1004', 'PWD': '/data/vulnloc/coreutils/gnubug-19784', 'HOME': '/root', 'CXX': 'crepair-cxx', 'TERM': 'xterm', 'SHLVL': '1', 'PYTHONPATH': '/usr/lib/python3.8/site-packages:', 'HOST_UID': '1004', 'REPAIR_TIME_LIMIT': '45', 'PATH': '/opt/crashrepair/bin:/CrashRepair/compiler:/klee/build/bin:/opt/llvm-6/bin:/klee/build/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', '_': '/opt/crashrepair/bin/crashrepair', 'LD_LIBRARY_PATH_ORIG': '/opt/crashrepair/lib:/CrashRepair/lib:/klee/build/lib:'})
2023-04-27 08:15:25.890 | DEBUG    | crashrepair.scenario:rebuild:369 - injecting ghost function into CFLAGS during build: -lcrepair_ghost
2023-04-27 08:15:25.890 | DEBUG    | crashrepair.scenario:rebuild:385 - using environment: {'INJECT_CFLAGS': '-g -O0 -Wno-error -L/klee/build/lib -lkleeRuntest -I/CrashRepair/lib -L/CrashRepair/lib -lcrepair_runtime -lcrepair_proxy -lcrepair_ghost -fsanitize=address', 'INJECT_CXXFLAGS': '-g -O0 -Wno-error -L/klee/build/lib -lkleeRuntest -I/CrashRepair/lib -L/CrashRepair/lib -lcrepair_runtime -lcrepair_proxy -lcrepair_ghost -fsanitize=address', 'INJECT_LDFLAGS': '-g -O0 -Wno-error -L/klee/build/lib -lkleeRuntest -I/CrashRepair/lib -L/CrashRepair/lib -lcrepair_runtime -lcrepair_proxy -lcrepair_ghost -fsanitize=address', 'LD_LIBRARY_PATH': '/opt/crashrepair/lib:/CrashRepair/lib:/klee/build/lib:'}
2023-04-27 08:15:25.891 | DEBUG    | crashrepair.shell:__call__:38 - executing: make CFLAGS="-ggdb -fPIC -fPIE ${INJECT_CFLAGS:-}" CXXFLAGS="-ggdb -fPIC -fPIE ${INJECT_CXXFLAGS:-}" LDFLAGS="${INJECT_LDFLAGS:-}" src/make-prime-list
  CC       src/make-prime-list.o
clang-6.0: warning: -lkleeRuntest: 'linker' input unused [-Wunused-command-line-argument]
clang-6.0: warning: -lcrepair_runtime: 'linker' input unused [-Wunused-command-line-argument]
clang-6.0: warning: -lcrepair_proxy: 'linker' input unused [-Wunused-command-line-argument]
clang-6.0: warning: -lcrepair_ghost: 'linker' input unused [-Wunused-command-line-argument]
clang-6.0: warning: -lcrepair_runtime: 'linker' input unused [-Wunused-command-line-argument]
clang-6.0: warning: -lcrepair_proxy: 'linker' input unused [-Wunused-command-line-argument]
clang-6.0: warning: -lkleeRuntest: 'linker' input unused [-Wunused-command-line-argument]
clang-6.0: warning: argument unused during compilation: '-L/klee/build/lib' [-Wunused-command-line-argument]
clang-6.0: warning: argument unused during compilation: '-L/CrashRepair/lib' [-Wunused-command-line-argument]
clang-6.0: warning: argument unused during compilation: '-L/CrashRepair/compiler/../lib/' [-Wunused-command-line-argument]
clang-6.0: warning: argument unused during compilation: '-L/klee/build/lib/' [-Wunused-command-line-argument]
  CCLD     src/make-prime-list
2023-04-27 08:15:26.846 | DEBUG    | crashrepair.scenario:evaluate:535 - testing candidate #2 against test #crash...
2023-04-27 08:15:26.846 | DEBUG    | crashrepair.shell:__call__:38 - executing: /data/vulnloc/coreutils/gnubug-19784/src/src/make-prime-list 15
ERROR: local variable 'raw_outcome' referenced before assignment
Traceback (most recent call last):
  File "crashrepair/cli.py", line 140, in main
  File "crashrepair/cli.py", line 22, in do_repair
  File "crashrepair/scenario.py", line 598, in repair
  File "crashrepair/scenario.py", line 494, in validate
  File "crashrepair/scenario.py", line 536, in evaluate
  File "crashrepair/test.py", line 155, in run
  File "crashrepair/test.py", line 143, in raw_execute
UnboundLocalError: local variable 'raw_outcome' referenced before assignment