Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639746 - sys-devel/gcc-6.4.0: fail on weird but valid construct found in matplotlib
Summary: sys-devel/gcc-6.4.0: fail on weird but valid construct found in matplotlib
Status: RESOLVED DUPLICATE of bug 638792
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-04 10:57 UTC by tharvik
Modified: 2017-12-06 08:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Reduced bug trigger (a.cpp,184 bytes, text/x-c++src)
2017-12-04 10:57 UTC, tharvik
Details
emerge --info sys-devel/gcc:6.4.0 (gcc.info,16.84 KB, text/plain)
2017-12-04 10:58 UTC, tharvik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tharvik 2017-12-04 10:57:43 UTC
Created attachment 508006 [details]
Reduced bug trigger

https://bugs.gentoo.org/638792 reports that GCC fail to compile matplotlib with -O2 with an "internal compiler error: Segmentation fault". I've tried to reduce the size of the file triggering the failure and have come down to the attached file.

To reproduce, switch to the new sys-devel/gcc:6.4.0 compiler and `g++ -O2 a.cpp` should trigger it.
Comment 1 tharvik 2017-12-04 10:58:22 UTC
Created attachment 508008 [details]
emerge --info sys-devel/gcc:6.4.0
Comment 2 Felix Janda 2017-12-04 11:27:23 UTC
`g++ -O -ftree-pre a.cpp` seems sufficient to trigger the segfault.

It would be interesting to see whether this is fixed in gcc-7.
Comment 3 Andrei Slavoiu 2017-12-04 21:31:09 UTC
Same here with gcc-7.2. Both with -O2 and with -O -ftree-pre
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2017-12-06 08:03:22 UTC

*** This bug has been marked as a duplicate of bug 638792 ***