You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error when i try to python2 setup.py test?How to fix it
`running test
testing for x86, for ARM and more args, see scripts in test/ dir
test/x86.sh build run_test clean
++ pwd
make
Makefile:31: warning: overriding recipe for target 'testStackCodeExecution.test'
Makefile:25: warning: ignoring old recipe for target 'testStackCodeExecution.test'
Makefile:35: warning: overriding recipe for target 'testStackBufferOverflow.test'
Makefile:25: warning: ignoring old recipe for target 'testStackBufferOverflow.test'
Makefile:38: warning: overriding recipe for target 'testReturnAv.test'
Makefile:25: warning: ignoring old recipe for target 'testReturnAv.test'
cc -fstack-protector-all -o ./bin/testStackBufferOverflow.test testStackBufferOverflow.c
cc -o ./bin/testBlockMoveAv.test testBlockMoveAv.c
cc -fno-stack-protector -o ./bin/testReturnAv.test testReturnAv.c
cc -o ./bin/testSourceAv.test testSourceAv.c
cc -o ./bin/testAbortSignal.test testAbortSignal.c
cc -o ./bin/testDestAv.test testDestAv.c
cc -o ./bin/testBranchAv.test testBranchAv.c
cc -o ./bin/testFloatingPointException.test testFloatingPointException.c
cc -o ./bin/testBenignSignal.test testBenignSignal.c
cc -o ./bin/testHeapError.test testHeapError.c
cc -o ./bin/testSourceAvNearNull.test testSourceAvNearNull.c
cc -o ./bin/testSegFaultOnPc.test testSegFaultOnPc.c
cc -o ./bin/testDestAvNearNull.test testDestAvNearNull.c
cc -o ./bin/testBranchAvNearNull.test testBranchAvNearNull.c
cc -o ./bin/testUncategorizedSignal.test testUncategorizedSignal.c
cc -o ./bin/testPossibleStackCorruption.test testPossibleStackCorruption.c
cc -o ./bin/testStackCodeExecution.test testStackCodeExecution.c
execstack -s ./bin/testStackCodeExecution.test
cc -o ./bin/testBadInstruction.test testBadInstruction.c
cc -o ./bin/testSegFaultOnPcNearNull.test testSegFaultOnPcNearNull.c
cc -o ./bin/testDeepStack.test testDeepStack.c
Hello @Porlockzzz. It looks like testHeapError.test is exiting rather than triggering an error, and testStackBufferOverflow.test is being classified as a PossibleStackCorruption, which is a weaker classification than StackBufferOverflow IIRC. Fixing this will require analysis of each of those test cases to see what has changed and making a patch here accordingly. Please feel free to dig into them if you would like. If not, I will take a look when I get a chance, but it might be a while. Thank you for reporting this issue regardless.
hal3002
pushed a commit
to hal3002/exploitable
that referenced
this issue
Aug 13, 2022
I got this error when i try to
python2 setup.py test
?How to fix it`running test
testing for x86, for ARM and more args, see scripts in test/ dir
test/x86.sh build run_test clean
++ pwd
starting
~/rhg/exploitable-master/exploitable/tests ~/rhg/exploitable-master
Makefile:31: warning: overriding recipe for target 'testStackCodeExecution.test'
Makefile:25: warning: ignoring old recipe for target 'testStackCodeExecution.test'
Makefile:35: warning: overriding recipe for target 'testStackBufferOverflow.test'
Makefile:25: warning: ignoring old recipe for target 'testStackBufferOverflow.test'
Makefile:38: warning: overriding recipe for target 'testReturnAv.test'
Makefile:25: warning: ignoring old recipe for target 'testReturnAv.test'
cc -fstack-protector-all -o ./bin/testStackBufferOverflow.test testStackBufferOverflow.c
cc -o ./bin/testBlockMoveAv.test testBlockMoveAv.c
cc -fno-stack-protector -o ./bin/testReturnAv.test testReturnAv.c
cc -o ./bin/testSourceAv.test testSourceAv.c
cc -o ./bin/testAbortSignal.test testAbortSignal.c
cc -o ./bin/testDestAv.test testDestAv.c
cc -o ./bin/testBranchAv.test testBranchAv.c
cc -o ./bin/testFloatingPointException.test testFloatingPointException.c
cc -o ./bin/testBenignSignal.test testBenignSignal.c
cc -o ./bin/testHeapError.test testHeapError.c
cc -o ./bin/testSourceAvNearNull.test testSourceAvNearNull.c
cc -o ./bin/testSegFaultOnPc.test testSegFaultOnPc.c
cc -o ./bin/testDestAvNearNull.test testDestAvNearNull.c
cc -o ./bin/testBranchAvNearNull.test testBranchAvNearNull.c
cc -o ./bin/testUncategorizedSignal.test testUncategorizedSignal.c
cc -o ./bin/testPossibleStackCorruption.test testPossibleStackCorruption.c
cc -o ./bin/testStackCodeExecution.test testStackCodeExecution.c
execstack -s ./bin/testStackCodeExecution.test
cc -o ./bin/testBadInstruction.test testBadInstruction.c
cc -o ./bin/testSegFaultOnPcNearNull.test testSegFaultOnPcNearNull.c
cc -o ./bin/testDeepStack.test testDeepStack.c
~/rhg/exploitable-master
~/rhg/exploitable-master ~/rhg/exploitable-master
++ pwd
verbose script debugging disabled
testSourceAv.test: result=SourceAv expected=[u'SourceAv']
testStackBufferOverflow.test: result=PossibleStackCorruption expected=[u'StackBufferOverflow']
testSourceAvNearNull.test: result=SourceAvNearNull expected=[u'SourceAvNearNull']
testBenignSignal.test: result=BenignSignal expected=[u'BenignSignal']
testUncategorizedSignal.test: result=UncategorizedSignal expected=[u'UncategorizedSignal']
testDeepStack.test: result=BranchAv expected=[u'PossibleStackCorruption', u'BranchAv']
testBlockMoveAv.test: result=BlockMoveAv expected=[u'BlockMoveAv']
testPossibleStackCorruption.test: result=PossibleStackCorruption expected=[u'PossibleStackCorruption']
testSegFaultOnPcNearNull.test: result=SegFaultOnPcNearNull expected=[u'SegFaultOnPcNearNull']
testAbortSignal.test: result=AbortSignal expected=[u'AbortSignal']
testBranchAv.test: result=BranchAv expected=[u'BranchAv']
testDestAv.test: result=DestAv expected=[u'DestAv']
testReturnAv.test: result=SegFaultOnPc expected=[u'SegFaultOnPc']
testDestAvNearNull.test: result=DestAvNearNull expected=[u'DestAvNearNull']
testBadInstruction.test: result=BadInstruction expected=[u'BadInstruction']
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/pickle.py", line 1384, in load
return Unpickler(file).load()
File "/usr/lib/python2.7/pickle.py", line 864, in load
dispatchkey
File "/usr/lib/python2.7/pickle.py", line 886, in load_eof
raise EOFError
EOFError
testHeapError.test:
testStackCodeExecution.test: result=StackCodeExecution expected=[u'StackCodeExecution']
testBranchAvNearNull.test: result=BranchAvNearNull expected=[u'BranchAvNearNull']
testSegFaultOnPc.test: result=SegFaultOnPc expected=[u'SegFaultOnPc']
testFloatingPointException.test: result=FloatingPointException expected=[u'FloatingPointException']
~/rhg/exploitable-master
TESTS FAILED:
exploitable/tests/bin/testStackBufferOverflow.test:
result=PossibleStackCorruption expected=[u'StackBufferOverflow']
cmd=gdb --batch -ex "source exploitable/exploitable.py" -ex run -ex "exploitable -v -p /home/porlock/rhg/exploitable-master/build/triage.pkl" --args exploitable/tests/bin/testStackBufferOverflow.test
exploitable/tests/bin/testHeapError.test:
Tests failed, exiting.
done
`
The text was updated successfully, but these errors were encountered: