Package: g++-6
Version: 6-20160117-1
Severity: minor
I was trying out the new -fcheck-pointer-bounds option (which requires -mmpx)
and found that in combination with -fsanitize=undefined it causes an ICE:
$ cat x.cc
int * a;
void f() { *a = 1; }
$ g++-6 -fsanitize=undefined -fcheck-pointer-bounds -mmpx -c x.cc
x.cc:2:20: internal compiler error: Segmentation fault
void f() { *a = 1; }
^
0xaadb6f crash_signal
../../src/gcc/toplev.c:334
0xb31e88 chkp_walk_pointer_assignments
../../src/gcc/tree-chkp.c:3725
0xb339af chkp_finish_file()
../../src/gcc/tree-chkp.c:3835
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
Removing -fsanitize=undefined the problem seems to go away.
Cheers,
Olly
-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages g++-6 depends on:
ii gcc-6 6-20160117-1
ii gcc-6-base 6-20160117-1
ii libc6 2.21-6
ii libgmp10 2:6.1.0+dfsg-2
ii libisl15 0.15-3
ii libmpc3 1.0.3-1
ii libmpfr4 3.1.3-2
ii libstdc++-6-dev 6-20160117-1
ii zlib1g 1:1.2.8.dfsg-2+b1
g++-6 recommends no packages.
Versions of packages g++-6 suggests:
pn g++-6-multilib <none>
pn gcc-6-doc <none>
pn libstdc++6-6-dbg <none>
-- no debconf information
Attachment:
signature.asc
Description: PGP signature