diff --git a/scripts/debug/.cvsignore b/scripts/debug/.cvsignore index 347aa86b8..ea97d080c 100644 --- a/scripts/debug/.cvsignore +++ b/scripts/debug/.cvsignore @@ -2,3 +2,4 @@ Makefile Makefile.in core* fgfs.supp +.gdbinit diff --git a/scripts/debug/debug-fgfs b/scripts/debug/debug-fgfs index 5383bda02..8683db297 100755 --- a/scripts/debug/debug-fgfs +++ b/scripts/debug/debug-fgfs @@ -53,7 +53,7 @@ while true; do -i) cmd=""; gdb="" ;; -b) gdb="" ;; -x) extra="--single-step=yes --optimise=no --cleanup=no --dump-error=1" ;; - -c) core=$(ls -t core*|head -1) + -c) core=$(ls -t core* 2>/dev/null|head -1) if test -z $core; then echo "$0: there's no core file" exit 1 @@ -66,7 +66,7 @@ while true; do done if ! test -e "$fgfs"; then - echo "$0: there's no fgfs exectuable $fgfs" + echo "$0: there's no fgfs executable $fgfs" exit 2 fi diff --git a/scripts/debug/sample.fgfs.supp b/scripts/debug/sample.fgfs.supp index 30519190e..6b692f48b 100644 --- a/scripts/debug/sample.fgfs.supp +++ b/scripts/debug/sample.fgfs.supp @@ -4,7 +4,7 @@ # { # name_of_suppression # kind: one of Param Value1 Value2 Value4 Value8 -# Cond Free Addr1 Addr2 Addr4 Addr8 +# Cond Free PThread Addr1 Addr2 Addr4 Addr8 # (if Param: name of system call param, if Free: name of free-ing fn) # caller0 name, or /name/of/so/file.so # caller1 name, or ditto @@ -89,3 +89,12 @@ Cond fun:removeEntity__7ssgListUi } + +{ + zlib/pthread-bug(PThread) + PThread + fun:pthread_error + fun:__pthread_mutex_destroy + fun:_IO_default_finish +} +