Skip to content
This repository was archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Add test that reproduces eosc crash #876
Browse files Browse the repository at this point in the history
  • Loading branch information
heifner committed Dec 7, 2017
1 parent fbdc913 commit ee43970
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/eosd_run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,16 @@ if [ $count == 0 ]; then
fi
getTransactionId "$INFO"

#
# Setting simpledb contract without simpledb account was causing core dump in eosc.
# Verify eosc generates an error, but does not core dump.
#

INFO="$( { programs/eosc/eosc --host $SERVER --port $PORT --wallet-port 8899 set contract simpledb contracts/simpledb/simpledb.wast contracts/simpledb/simpledb.abi ; } 2>&1 )"
rc=$?
if [ $rc -eq 0 ] || [ $rc -eq 139 ]; then # 139 SIGSEGV
error "FAILURE - $1 returned error code $rc, should have failed to execute."
fi

#
# Producer
Expand Down

0 comments on commit ee43970

Please sign in to comment.