comparison test/compiler/ciReplay/common.sh @ 14295:4c241e42a3e4

8032662: test/compiler/ciReplay/TestSA.sh should report ulimit issues Reviewed-by: kvn, iignatyev Contributed-by: stefan.sarne@oracle.com
author sla
date Mon, 27 Jan 2014 10:57:52 +0100
parents 4dece0730c50
children c0b9499e5525 4ca6dc0799b6
comparison
equal deleted inserted replaced
14294:b8a500a7b9bf 14295:4c241e42a3e4
194 generate_replay() { 194 generate_replay() {
195 if [ $VM_OS != "windows" ] 195 if [ $VM_OS != "windows" ]
196 then 196 then
197 # enable core dump 197 # enable core dump
198 ulimit -c unlimited 198 ulimit -c unlimited
199 new_ulimit=`ulimit -c`
200 if [ $new_ulimit != "unlimited" -a $new_ulimit != "-1" ]
201 then
202 test_fail 2 "CHECK :: ULIMIT" "Could not set 'ulimit -c unlimited'. 'ulimit -c' returns : $new_ulimit"
203 fi
199 204
200 if [ $VM_OS = "solaris" ] 205 if [ $VM_OS = "solaris" ]
201 then 206 then
202 coreadm -p core $$ 207 coreadm -p core $$
203 fi 208 fi
226 231
227 ${cmd} > crash.out 2>&1 232 ${cmd} > crash.out 2>&1
228 233
229 core_locations=`grep -i core crash.out | grep "location:" | \ 234 core_locations=`grep -i core crash.out | grep "location:" | \
230 sed -e 's/.*location: //'` 235 sed -e 's/.*location: //'`
236 echo CRASH OUTPUT:
237 cat crash.out
231 rm crash.out 238 rm crash.out
239
232 # processing core locations for *nix 240 # processing core locations for *nix
233 if [ $VM_OS != "windows" ] 241 if [ $VM_OS != "windows" ]
234 then 242 then
235 # remove 'or' between '/core.<pid>' and 'core' 243 # remove 'or' between '/core.<pid>' and 'core'
236 core_locations=`echo $core_locations | \ 244 core_locations=`echo $core_locations | \