Bug 91724 - [8 Regression] profiled lto bootstrap fails on arm-linux-gnueabihf
Summary: [8 Regression] profiled lto bootstrap fails on arm-linux-gnueabihf
Status: UNCONFIRMED
Alias: None
Product: gcc
Classification: Unclassified
Component: lto (show other bugs)
Version: 8.3.1
: P1 normal
Target Milestone: 8.4
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2019-09-10 16:28 UTC by Matthias Klose
Modified: 2019-09-11 09:12 UTC (History)
4 users (show)

See Also:
Host:
Target: arm-linux-gnueabihf
Build:
Known to work: 8.3.0
Known to fail: 8.3.1
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Klose 2019-09-10 16:28:22 UTC
seen with r275519 on the gcc-8 branch, was working with r274599

/<<PKGBUILDDIR>>/src/libstdc++-v3/libsupc++/new:122:7: note: in a call to allocation function 'operator new []' declared here
 void* operator new[](std::size_t) _GLIBCXX_THROW (std::bad_alloc)
       ^
during RTL pass: loop2_invariant
../../src/gcc/hash-table.h: In member function 'expand':
../../src/gcc/hash-table.h:768:1: internal compiler error: Segmentation fault
 }
 ^
0x11fdceb ???
        ../../src/gcc/toplev.c:325
0x1abb283 ???
        ../../src/gcc/bitmap.c:134
0x198d9dd ???
        ../../src/gcc/df-core.c:1594
0x18abdf3 ???
        ../../src/gcc/emit-rtl.c:4644
0x18ac059 ???
        ../../src/gcc/emit-rtl.c:4850
0x18ac355 ???
        ../../src/gcc/emit-rtl.c:4885
0x18ac87d ???
        ../../src/gcc/emit-rtl.c:4902
0x150137d ???
        ../../src/gcc/loop-invariant.c:1815
0x1577a83 ???
        ../../src/gcc/loop-invariant.c:1875
0x1579017 ???
        ../../src/gcc/loop-init.c:523
0x13d219f ???
        ../../src/gcc/passes.c:2497
0x13d3321 ???
        ../../src/gcc/passes.c:2586
0x13d32f1 ???
        ../../src/gcc/passes.c:2587
0x13d32f1 ???
        ../../src/gcc/passes.c:2587
0x13d33f5 ???
        ../../src/gcc/passes.c:2597
0x19e4e5b ???
        ../../src/gcc/cgraphunit.c:2139
0x19f6851 ???
        ../../src/gcc/cgraphunit.c:2275
0x1ae3a4f ???
        ../../src/gcc/lto/lto.c:3388
0x122f56d ???
        ../../src/gcc/toplev.c:455
0x1234aed ???
        ../../src/gcc/toplev.c:2160
Please submit a full bug report,
with preprocessed source if appropriate.

complete build log at
https://launchpad.net/ubuntu/+source/gcc-8/8.3.0-22ubuntu1/+build/17745032

configured with

--with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb
Comment 1 Richard Biener 2019-09-11 09:12:18 UTC
Hmm, can you bisect this a bit?  It may be a latent issue is uncovered.
Disabling compare-debug might also help getting better backtraces.

Looks like loop-invariant has inconsistent DF state somehow.  In the

        ../../src/gcc/df-core.c:1594

frame it is interesting to know the problem causing this.

Maybe the backtrace is also completely bogus since there shoud be no
hash-tables involved here...

P1 until we know some more.