bug-gnulib
[Top][All Lists]
Advanced

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

Re: init.sh: enable MALLOC_PERTURB_


From: Bruno Haible
Subject: Re: init.sh: enable MALLOC_PERTURB_
Date: Sun, 16 May 2010 14:05:49 +0200
User-agent: KMail/1.9.9

Hi,

A week ago, Jim wrote:
> +     init.sh: enable MALLOC_PERTURB_
> +     * tests/init.sh: Enable glibc's malloc-perturbing option.

This triggers a SKIP for test-verify.sh on openSUSE Linux 11.0 systems:

  test-verify.sh: skipped test: cannot compile error-free
  SKIP: test-verify.sh

The reason is that it runs in a compiler bug:

  $ $MAKE test-verify.o
  gcc -DHAVE_CONFIG_H -I.  -DGNULIB_STRICT_CHECKING=1 -I. -I. -I.. -I./.. 
-I../gllib -I./../gllib -Wall  -g -O2 -MT   test-verify.o -MD -MP -MF 
.deps/test-verify.Tpo -c -o test-verify.o test-verify.c
  test-verify.c: In function ‘function’:
  test-verify.c:46: internal compiler error: Speicherzugriffsfehler
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <http://bugs.opensuse.org/> for instructions.
  make: *** [test-verify.o] Fehler 1

The minimal test case is this:

=================================== bug.c =============================
enum { a, b, c };
int function (int n)
{
  extern int (* verify_function5 (void)) [(!!sizeof (struct { unsigned int 
verify_error_if_negative_size__: (c == 2) ? 1 : -1; }))];
  return 0;
}
=======================================================================
$ MALLOC_PERTURB_=87 /usr/bin/gcc -O -S bug.c
bug.c: In function ‘function’:
bug.c:3: internal compiler error: Speicherzugriffsfehler
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.

The bug is fixed in gcc 4.3.4 and other GCC versions. But there's no point for
us to try to trigger compiler bugs as part of the gnulib test suite. I'm
applying this as a workaround:


2010-05-16  Bruno Haible  <address@hidden>

        verify: Avoid skipping the test on openSUSE 11.0.
        * tests/test-verify.sh: Unset MALLOC_PERTURB_.

diff --git a/tests/test-verify.sh b/tests/test-verify.sh
index 11b7311..3e76761 100755
--- a/tests/test-verify.sh
+++ b/tests/test-verify.sh
@@ -1,6 +1,10 @@
 #!/bin/sh
 . "${srcdir=.}/init.sh"
 
+# We are not interested in triggering bugs in the compilers and tools
+# (such as gcc 4.3.1 on openSUSE 11.0).
+unset MALLOC_PERTURB_
+
 # Rather than figure out how to invoke the compiler with the right
 # include path ourselves, we let make do it:
 (cd "$initial_cwd_" && rm -f test-verify.o \



reply via email to

[Prev in Thread] Current Thread [Next in Thread]