[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[creduce-bugs] creduce expanding file instead of reducing



seen for the first time, creduce expands a file instead of reducing.  The
example file is available at

  https://gcc.gnu.org/PR65807

Attaching the log of the creduce run.

Matthias

$ cat cr.sh
if [ $# -ne 1 ]; then
  echo "usage: $0 <file.c>" 1>&2
  exit 1
fi

CLANG=${CLANG:-clang}
GCC=${GCC:-gcc}
GCC=gcc
ARGS="-g -O -Wformat -Werror=format-security -Wall -Wextra -c"
msg="internal compiler error: Segmentation fault"

$GCC $ARGS $1 > out.txt 2>&1
if fgrep -q "$msg" out.txt
then
  fgrep -v "$msg" out.txt > out2.txt
  if fgrep -q ': error:' out2.txt; then
    exit 1
  elif fgrep -q ': warning:' out2.txt; then
    exit 1
  fi
  exit 0
else
  exit 1
fi

Attachment: creduce.log.xz
Description: application/xz