public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/97866] New: [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler
@ 2020-11-16 21:40 doko at debian dot org
2020-11-17 7:18 ` [Bug target/97866] " rguenth at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: doko at debian dot org @ 2020-11-16 21:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97866
Bug ID: 97866
Summary: [11 Regression] bootstrap error in libasan building a
s390x-linux-gnu cross compiler
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: doko at debian dot org
Target Milestone: ---
seen with trunk 20201114
while the error message says it's not reproducible, the build stops 10 times
with the same result.
during RTL pass: reload
../../../../src/libsanitizer/asan/asan_fake_stack.cpp: In member function 'void
__asan::FakeStack::For
EachFakeFrame(__sanitizer::RangeIteratorCallback, void*)':
../../../../src/libsanitizer/asan/asan_fake_stack.cpp:171:1: internal compiler
error: Segmentation fault
171 | }
| ^
0xbde03f crash_signal
../../src/gcc/toplev.c:330
0x7f3f99181cbf ???
./signal/../sysdeps/unix/sysv/linux/x86_64/sigaction.c:0
0xb550ad profile_count::initialized_p() const
../../src/gcc/profile-count.h:785
0xb550ad profile_count::to_frequency(function*) const
../../src/gcc/profile-count.c:269
0xa7cf6a get_insn_freq
../../src/gcc/lra.c:1555
0xa7f707 lra_update_insn_regno_info(rtx_insn*)
../../src/gcc/lra.c:1627
0xa7f7cd lra_update_insn_regno_info(rtx_insn*)
../../src/gcc/lra.c:1623
0xa7f7cd lra_push_insn_1
../../src/gcc/lra.c:1780
0xa806d4 lra_push_insn(rtx_insn*)
../../src/gcc/lra.c:1788
0xa806d4 push_insns
../../src/gcc/lra.c:1831
0xa806d4 push_insns
../../src/gcc/lra.c:1823
0xa806d4 lra_process_new_insns(rtx_insn*, rtx_insn*, rtx_insn*, char const*)
../../src/gcc/lra.c:1925
0xa90c42 curr_insn_transform
../../src/gcc/lra-constraints.c:4635
0xa92655 lra_constraints(bool)
../../src/gcc/lra-constraints.c:5129
0xa80e82 lra(_IO_FILE*)
../../src/gcc/lra.c:2323
0xa3ff01 do_reload
../../src/gcc/ira.c:5800
0xa3ff01 execute
../../src/gcc/ira.c:5986
Please submit a full bug report,
with preprocessed source if appropriate.
The bug is not reproducible, so it is likely a hardware or OS problem.
make[6]: *** [Makefile:653: asan_fake_stack.lo] Error 1
make[6]: Leaving directory
'/packages/cross/11/gcc-cross/gcc/build/s390x-linux-gnu/libsanitizer/asan'
make[5]: *** [Makefile:528: all-recursive] Error 1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/97866] [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler
2020-11-16 21:40 [Bug target/97866] New: [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler doko at debian dot org
@ 2020-11-17 7:18 ` rguenth at gcc dot gnu.org
2020-11-17 19:10 ` iii at linux dot ibm.com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-17 7:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97866
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/97866] [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler
2020-11-16 21:40 [Bug target/97866] New: [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler doko at debian dot org
2020-11-17 7:18 ` [Bug target/97866] " rguenth at gcc dot gnu.org
@ 2020-11-17 19:10 ` iii at linux dot ibm.com
2020-11-17 20:06 ` iii at linux dot ibm.com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: iii at linux dot ibm.com @ 2020-11-17 19:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97866
Ilya Leoshkevich <iii at linux dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |iii at linux dot ibm.com
--- Comment #1 from Ilya Leoshkevich <iii at linux dot ibm.com> ---
Could you please share your configure flags?
On x86_64 Ubuntu 20.04 the following worked fine:
../configure --target=s390x-linux-gnu --exec-prefix=/usr --disable-bootstrap
--disable-multilib --enable-languages=c,c++
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/97866] [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler
2020-11-16 21:40 [Bug target/97866] New: [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler doko at debian dot org
2020-11-17 7:18 ` [Bug target/97866] " rguenth at gcc dot gnu.org
2020-11-17 19:10 ` iii at linux dot ibm.com
@ 2020-11-17 20:06 ` iii at linux dot ibm.com
2020-11-17 20:15 ` iii at linux dot ibm.com
2020-11-18 10:06 ` doko at debian dot org
4 siblings, 0 replies; 6+ messages in thread
From: iii at linux dot ibm.com @ 2020-11-17 20:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97866
--- Comment #2 from Ilya Leoshkevich <iii at linux dot ibm.com> ---
Never mind, I managed to reproduce it now:
ubuntu-focal-amd64$ git rev-parse --short HEAD
77f67db2a47
ubuntu-focal-amd64$ ../configure --target=s390x-linux-gnu --exec-prefix=/usr
--disable-bootstrap --disable-multilib --enable-languages=c,c++
ubuntu-focal-amd64$ cat test.cpp
typedef long a;
typedef void (*b)(a, a, void *);
class c {
unsigned char *m_fn1();
char d(a);
a e(a);
void f();
};
b g;
void *h;
void c::f() {
for (a j; j < 6; j++) {
unsigned char *flags = m_fn1();
for (a i, k; i < k; i++) {
if (flags)
continue;
int *ff = reinterpret_cast<int *>(d(i));
g(a(ff), e(j), h);
}
}
}
ubuntu-focal-amd64$ gcc/xgcc -Bgcc -std=gnu++14 -O2 -c test.cpp
during RTL pass: reload
test.cpp: In member function ‘void c::f()’:
test.cpp:21:1: internal compiler error: in get_insn_freq, at lra.c:1554
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/97866] [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler
2020-11-16 21:40 [Bug target/97866] New: [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler doko at debian dot org
` (2 preceding siblings ...)
2020-11-17 20:06 ` iii at linux dot ibm.com
@ 2020-11-17 20:15 ` iii at linux dot ibm.com
2020-11-18 10:06 ` doko at debian dot org
4 siblings, 0 replies; 6+ messages in thread
From: iii at linux dot ibm.com @ 2020-11-17 20:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97866
--- Comment #3 from Ilya Leoshkevich <iii at linux dot ibm.com> ---
I believe it's already fixed by:
commit 253c415a1acba50711c82693426391743ac18040
Author: Vladimir N. Makarov <vmakarov@redhat.com>
Date: Sun Nov 15 11:22:19 2020 -0500
Do not put reload insns in the last empty BB.
gcc/
* lra.c (lra_process_new_insns): Don't put reload insns in the
last empty BB.
Cherry-picking it helps, and the comment from this commit describes what is
happening here: "Do not put reload insns if it is the last BB without actual
insns. In this case the reload insns can get null BB after emitting".
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/97866] [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler
2020-11-16 21:40 [Bug target/97866] New: [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler doko at debian dot org
` (3 preceding siblings ...)
2020-11-17 20:15 ` iii at linux dot ibm.com
@ 2020-11-18 10:06 ` doko at debian dot org
4 siblings, 0 replies; 6+ messages in thread
From: doko at debian dot org @ 2020-11-18 10:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97866
Matthias Klose <doko at debian dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #4 from Matthias Klose <doko at debian dot org> ---
yes, that's fixed on the trunk
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2020-11-18 10:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-16 21:40 [Bug target/97866] New: [11 Regression] bootstrap error in libasan building a s390x-linux-gnu cross compiler doko at debian dot org
2020-11-17 7:18 ` [Bug target/97866] " rguenth at gcc dot gnu.org
2020-11-17 19:10 ` iii at linux dot ibm.com
2020-11-17 20:06 ` iii at linux dot ibm.com
2020-11-17 20:15 ` iii at linux dot ibm.com
2020-11-18 10:06 ` doko at debian dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).