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

Bug#770450: gcc-snapshot: ICE with -O2 -fsanitize=undefined



Package: gcc-snapshot
Version: 20141118-1
Severity: important
Tags: upstream
Forwarded: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64016

$ gcc-snapshot -O2 -fsanitize=undefined -c gcc-ice.c
gcc: internal compiler error: Segmentation fault (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-snapshot/README.Bugs> for instructions.

with:

void foo (void);

void tst (void)
{
  int px, py, e;
  for (py = 3; py <= 136; py++)
    for (px = 32; px <= 160; px += 32)
      for (e = py - 2; e >= 0; e--)
        foo ();
}

This was found when compiling GNU MPFR (tests/tget_f.c).

This is a regression. There is no such problem with 20141016-1.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gcc-snapshot depends on:
ii  binutils             2.24.90.20141111-2
ii  libasound2           1.0.28-1
ii  libatk1.0-0          2.14.0-1
ii  libc6                2.19-13
ii  libc6-dev            2.19-13
ii  libc6-dev-i386       2.19-13
ii  libc6-dev-x32        2.19-13
ii  libc6-i386           2.19-13
ii  libc6-x32            2.19-13
ii  libcairo2            1.14.0-2.1
ii  libecj-java          3.10.1-1
ii  libfontconfig1       2.11.0-6.2
ii  libfreetype6         2.5.2-2
ii  libgdk-pixbuf2.0-0   2.31.1-2+b1
ii  libglib2.0-0         2.42.1-1
ii  libgmp10             2:6.0.0+dfsg-6
ii  libgtk2.0-0          2.24.25-1
ii  libice6              2:1.0.9-1
ii  libisl10             0.12.2-2
ii  libmpc3              1.0.2-1
ii  libmpfr4             3.1.2-1
ii  libpango-1.0-0       1.36.8-3
ii  libpangocairo-1.0-0  1.36.8-3
ii  libpangoft2-1.0-0    1.36.8-3
ii  libsm6               2:1.2.2-1
ii  libxrandr2           2:1.4.2-1+b1
ii  libxrender1          1:0.9.8-1+b1
ii  libxtst6             2:1.2.2-1+b1
ii  python               2.7.8-2
ii  zlib1g               1:1.2.8.dfsg-2

gcc-snapshot recommends no packages.

Versions of packages gcc-snapshot suggests:
ii  binutils [binutils-gold]  2.24.90.20141111-2

-- no debconf information


Reply to: