mkfifo fifo || framework_failure
+# Disable MALLOC_PERTURB_, to avoid triggering this bug
+# http://bugs.debian.org/481543#77
+export MALLOC_PERTURB_=0
+
head -c 10 fifo > out &
( ulimit -v 10000; env $prog %20000000f 0 2>err-msg > fifo )
exit=$?
10:n:0) ;; # ok, succeeds w/no diagnostic: FreeBSD 6.1
0:y:1) ;; # ok, glibc-2.8 and newer, when printf(3) fails with ENOMEM
- *:139) # segfault; known bug at least in debian unstable's libc6 2.7-11
- echo 1>&2 "$0: bug in snprintf causes low-mem use of printf to segfault"
- fail=77;;
+ # With MALLOC_PERTURB_=0, this no longer happens.
+ # *:139) # segfault; known bug at least in debian unstable's libc6 2.7-11
+ # echo 1>&2 "$0: bug in snprintf causes low-mem use of printf to segfault"
+ # fail=77;;
# 10:y) ;; # Fail: doesn't happen: nobody succeeds with a diagnostic
# 0:n) ;; # Fail pre-patch: no output, no diag