3 # This is a useful test to run occasionally, to see which syscalls are
4 # causing trinity to segfault.
6 TRINITY_PATH
=${TRINITY_PATH:-.}
7 TRINITY_TMP
=$
(mktemp
-d /tmp
/trinity.XXXXXX
)
11 if [ "$(cat /proc/sys/kernel/tainted)" != $TAINT ]; then
12 echo ERROR
: Taint flag changed $
(cat /proc
/sys
/kernel
/tainted
)
17 TAINT
=$
(cat /proc
/sys
/kernel
/tainted
)
21 for syscall
in $
($TRINITY_PATH/trinity
-L |
grep entrypoint |
grep -v AVOID |
awk '{ print $3 }' |
sort -u)
23 chmod 755 $TRINITY_TMP
26 if [ ! -f $TRINITY_PATH/trinity
]; then
32 MALLOC_CHECK_
=2 $TRINITY_PATH/trinity
-q -c $syscall -N 99999 -l off
-C 64