2010-01-02 21:46:11 +00:00
|
|
|
. ./shared_variables.sh
|
|
|
|
OUT="$ROOT_OUTDIR"
|
2009-07-10 15:52:43 +00:00
|
|
|
NOW_SEC=`date +%s`
|
|
|
|
echo NOW_SEC $NOW_SEC
|
|
|
|
echo recently modified files:
|
2010-01-02 21:46:11 +00:00
|
|
|
LATEST_FILE=`ls $ROOT_OUTDIR/* -td -1 | grep -v log | head -n1`
|
2009-07-10 15:52:43 +00:00
|
|
|
echo $LATEST_FILE | (
|
|
|
|
grep replay > /dev/null || (
|
2010-01-02 21:46:11 +00:00
|
|
|
ls $ROOT_OUTDIR/* -lotd | head -n6
|
2009-07-10 15:52:43 +00:00
|
|
|
)
|
|
|
|
)
|
2010-01-02 21:46:11 +00:00
|
|
|
ls $ROOT_OUTDIR/* -tdo -1 | grep replay |head -n4
|
2009-07-10 15:52:43 +00:00
|
|
|
|
2010-01-02 21:46:11 +00:00
|
|
|
LATEST_FILE=`ls $ROOT_OUTDIR/* -td -1 | grep replay | head -n1`
|
|
|
|
if [ $LATEST_FILE = "$ROOT_OUTDIR/toreplay" ]
|
2009-10-03 23:07:44 +00:00
|
|
|
then
|
|
|
|
#echo foo
|
2010-01-02 21:46:11 +00:00
|
|
|
LATEST_FILE=`ls $ROOT_OUTDIR/toreplay/* -td -1 | grep replay | head -n1`
|
2009-10-03 23:07:44 +00:00
|
|
|
fi
|
|
|
|
|
2010-01-02 21:46:11 +00:00
|
|
|
if [ $LATEST_FILE = "$ROOT_OUTDIR/toreplay/replayed" ]
|
2009-10-03 23:07:44 +00:00
|
|
|
then
|
|
|
|
echo foo
|
2010-01-02 21:46:11 +00:00
|
|
|
LATEST_FILE=`ls $ROOT_OUTDIR/toreplay/replayed/* -td -1 | grep replay | head -n1`
|
2009-10-03 23:07:44 +00:00
|
|
|
else
|
|
|
|
echo oof
|
|
|
|
fi
|
|
|
|
|
2009-07-10 15:52:43 +00:00
|
|
|
echo LATEST_FILE $LATEST_FILE
|
|
|
|
echo $LATEST_FILE | (
|
|
|
|
grep replay > /dev/null && (
|
|
|
|
if [ -e $LATEST_FILE/last_crash_sec ]
|
|
|
|
then
|
|
|
|
ls $LATEST_FILE/*re -lotd | head
|
|
|
|
SEC=`cat $LATEST_FILE/last_crash_sec`
|
|
|
|
echo $SEC $(($NOW_SEC-$SEC))
|
2009-10-03 23:07:44 +00:00
|
|
|
ls -l $LATEST_FILE/$SEC.KEYCODEpure | head -n4
|
2009-07-10 15:52:43 +00:00
|
|
|
echo `cat $LATEST_FILE/$SEC.KEYCODEpure | sed s/KK:\//g`
|
2010-01-06 22:11:59 +00:00
|
|
|
cat $LATEST_FILE/$SEC.GDB | grep "VIOLATED" #-A 15 -B 5
|
|
|
|
cat $LATEST_FILE/$SEC.GDB | grep "signal SIG" #-A 15 -B 5
|
|
|
|
cat $LATEST_FILE/$SEC.GDB | grep "lyx::" | head -n5 #-A 15 -B 5
|
2009-07-10 15:52:43 +00:00
|
|
|
else
|
|
|
|
ls $LATEST_FILE -lot | head
|
2010-01-02 21:46:11 +00:00
|
|
|
cat `echo $LATEST_FILE | sed s/KEYCODEpure.replay/GDB/` | grep "signal SIG" -A 19
|
2009-07-10 15:52:43 +00:00
|
|
|
fi
|
|
|
|
cat $LATEST_FILE/log | grep Bore | tail -n2
|
|
|
|
) || (
|
2010-01-02 21:46:11 +00:00
|
|
|
ls $ROOT_OUTDIR/* -lotd | head
|
2009-07-10 15:52:43 +00:00
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
grep -F "autolyx:
|
|
|
|
Trace
|
|
|
|
reproduced
|
|
|
|
X_PID
|
2010-01-02 21:46:11 +00:00
|
|
|
x-session" $ROOT_OUTDIR/log | grep -v kill | grep -v Terminated | tail -n 9
|
2009-10-03 23:07:44 +00:00
|
|
|
#exit
|
2009-07-10 15:52:43 +00:00
|
|
|
echo autolyx crashes ---------
|
2010-01-06 22:11:59 +00:00
|
|
|
grep autolyx: $ROOT_OUTDIR/log | grep -v kill | grep -v Terminated | grep -v grep #-A 5
|
2009-07-10 15:52:43 +00:00
|
|
|
echo python crashes ---------
|
2010-01-02 21:46:11 +00:00
|
|
|
grep -i -a Trace $ROOT_OUTDIR/log -A 7 | tail -n8
|
2009-10-03 23:07:44 +00:00
|
|
|
#echo misc ----
|
2010-01-02 21:46:11 +00:00
|
|
|
#grep reproduced $ROOT_OUTDIR/log | tail -n5
|