Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
runtime-error.txt
++ timestamp
+++ date +%s.%N
++ echo 1448231881.012023753
+ scriptstarttime=1448231881.012023753
+ readonly INTERNAL_ERROR_CODE=123
+ INTERNAL_ERROR_CODE=123
+ exist_file_or_die /mnt/prog_joined.js
+ local file=/mnt/prog_joined.js
+ '[' '!' -f /mnt/prog_joined.js ']'
+ exist_file_or_die /mnt/data.in
+ local file=/mnt/data.in
+ '[' '!' -f /mnt/data.in ']'
+ [[ judge == \j\u\d\g\e ]]
+ exist_file_or_die /mnt/data.out
+ local file=/mnt/data.out
+ '[' '!' -f /mnt/data.out ']'
+ mkdir -p /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data
+ mv /mnt/data.in /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/data.in
+ mv /mnt/data.out /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/data.out
+ rsync -avzh /mnt/ /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache
+ set_permission /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/
+ fileordir=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/
+ chown -R root:root /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/
+ chmod -R o-rwx /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/
+ set_permission /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/trace_safe
+ fileordir=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/trace_safe
+ chown -R root:root /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/trace_safe
+ chmod -R o-rwx /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/trace_safe
+ set_permission /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/runnodejs.sh
+ fileordir=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/runnodejs.sh
+ chown -R root:root /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/runnodejs.sh
+ chmod -R o-rwx /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/runnodejs.sh
++ timestamp
+++ date +%s.%N
++ echo 1448231881.075501493
+ starttime=1448231881.075501493
+ [[ judge == \i\n\t\e\r\p\r\e\t ]]
+ '[' 0 -eq 1 ']'
+ cmd='/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/trace_safe --mode=judge --binary=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/prog_joined.js --lang=javascript --data_input=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/data.in --data_output=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/data.out --time_limit=1900 --memory_limit=30971520 --stack_limit=1048576 --recursion_limit=None --match_type=0 '
+ eval '/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/trace_safe --mode=judge --binary=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/prog_joined.js --lang=javascript --data_input=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/data.in --data_output=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/data.out --time_limit=1900 --memory_limit=30971520 --stack_limit=1048576 --recursion_limit=None --match_type=0 '
++ /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/trace_safe --mode=judge --binary=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/prog_joined.js --lang=javascript --data_input=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/data.in --data_output=/usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache/data/data.out --time_limit=1900 --memory_limit=30971520 --stack_limit=1048576 --recursion_limit=None --match_type=0
Illegal System Call: 12, brk
+ retcode=18
+++ timestamp
++++ date +%s.%N
+++ echo 1448231881.084678684
++ elapsed_time 1448231881.075501493 1448231881.084678684
++ local starttime=1448231881.075501493
++ local endtime=1448231881.084678684
+++ bc
+++ echo '(1448231881.084678684 - 1448231881.075501493) * 1000'
++ local elapsedtime=9.177191000
+++ printf %.0f 9.177191000
++ local runtime=9
++ echo 9
+ elapsedtime=9
+ echo ===================
+ echo 'Elapsed time: 9 ms'
+ echo ===================
+ echo ===============
+ echo 'File in sandbox'
+ echo ===============
+ ls -l
+ echo
+ echo ===================
+ echo 'File in obscure dir'
+ echo ===================
+ ls -l /usr/lib/gcc/x86_64-linux-gnu/4.9.1/.cache
+ echo
+++ timestamp
++++ date +%s.%N
+++ echo 1448231881.093502577
++ elapsed_time 1448231881.012023753 1448231881.093502577
++ local starttime=1448231881.012023753
++ local endtime=1448231881.093502577
+++ bc
+++ echo '(1448231881.093502577 - 1448231881.012023753) * 1000'
++ local elapsedtime=81.478824000
+++ printf %.0f 81.478824000
++ local runtime=81
++ echo 81
+ scriptendtime=81
+ echo 'Total time of run step = 81'
+ exit_with_code 18
+ local code=18
+ cleanup
+ cp user.out /mnt/user.out
+ cp compare.out /mnt/compare.out
cp: cannot stat 'compare.out': No such file or directory
+ cp user.stdout /mnt/user.stdout
+ cp user.stderr /mnt/user.stderr
+ cp runtime.txt /mnt/runtime.txt
+ cp runtime2.txt /mnt/runtime2.txt
cp: cannot stat 'runtime2.txt': No such file or directory
+ exit 18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.