4430. [bug] Lwresd died if a search list was not defined.

Found by 0x710DDDD At Alibaba Security. [RT #42895]

(cherry picked from commit 3146be6fd6)
This commit is contained in:
Mark Andrews
2016-08-08 10:22:51 +10:00
parent 3a71cd8ca3
commit 080582dc47
6 changed files with 73 additions and 8 deletions

View File

@@ -61,5 +61,24 @@ if [ $ret != 0 ]; then
fi
status=`expr $status + $ret`
$PERL $SYSTEMTESTTOP/stop.pl . lwresd1
mv lwresd1/lwresd.run lwresd1/lwresd.run.lwresd
$PERL $SYSTEMTESTTOP/start.pl . lwresd1 -- "-X lwresd.lock -m record,size,mctx -c nosearch.conf -d 99 -g"
echo "I:using nosearch.conf"
ret=0
for i in 0 1 2 3 4 5 6 7 8 9
do
grep ' running$' lwresd1/lwresd.run > /dev/null && break
sleep 1
done
./lwtest -nosearch || ret=1
if [ $ret != 0 ]; then
echo "I:failed"
fi
status=`expr $status + $ret`
echo "I:exit status: $status"
[ $status -eq 0 ] || exit 1