[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2021-04-09 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

Richard Biener  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2021-02-07 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

--- Comment #10 from John Paul Adrian Glaubitz  ---
(In reply to Arnaud Charlet from comment #9)
> The problem is somehow specific to m68k, for some unknown reason. There is
> nothing target specific in the change, no assumption is made on the
> underlying target.
> 
> What we need now is a debugging session from someone who has a setup to
> reproduce.

See here on how to set up a qemu environment:
https://wiki.debian.org/M68k/QemuSystemM68k

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2021-02-07 Thread charlet at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

--- Comment #9 from Arnaud Charlet  ---
The problem is somehow specific to m68k, for some unknown reason. There is
nothing target specific in the change, no assumption is made on the underlying
target.

What we need now is a debugging session from someone who has a setup to
reproduce.

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2021-02-07 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

--- Comment #8 from John Paul Adrian Glaubitz  ---
(In reply to Arnaud Charlet from comment #7)
> In other words, the bisect result isn't very useful here and I'd recommend
> investigating this change from scratch, getting a useful backtrace from gdb
> and understanding where this is crashing and then why.

I can certainly generate a backtrace in GDB, but I'm not an Ada expert which is
why I reported the issue and hoped that the author of the change would be able
to understand what the problem is.

It could also be possible that the change makes some assumptions of the
underlying ABI that may well be true for x86_64 but not m68k.

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2021-02-04 Thread charlet at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

Arnaud Charlet  changed:

   What|Removed |Added

 CC||charlet at gcc dot gnu.org

--- Comment #7 from Arnaud Charlet  ---
Well the change was a big change so it's hard to guess why it caused this issue
but it's quite possible that this change is fine on its own and exposing a
latent issue.

In other words, the bisect result isn't very useful here and I'd recommend
investigating this change from scratch, getting a useful backtrace from gdb and
understanding where this is crashing and then why.

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2021-02-04 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

--- Comment #6 from John Paul Adrian Glaubitz  ---
(In reply to Mikael Pettersson from comment #5)
> My git bisect landed on this commit too.

I just pinged Justin again. He unfortunately doesn't seem to have a Bugzilla
account, so we can't add him in the CC list of this bug report.

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2021-02-04 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

--- Comment #5 from Mikael Pettersson  ---
(In reply to John Paul Adrian Glaubitz from comment #4)
> This regression was introduced by:
> 
> commit d7e20130650fb46d71e0403652e4e07bc14f9775 (refs/bisect/bad)
> Author: Justin Squirek 
> Date:   Mon Aug 10 12:05:07 2020 -0400
> 
> [Ada] Reimplementation of accessibility checking

My git bisect landed on this commit too.

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2021-01-14 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |11.0

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2020-12-26 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

--- Comment #4 from John Paul Adrian Glaubitz  ---
This regression was introduced by:

commit d7e20130650fb46d71e0403652e4e07bc14f9775 (refs/bisect/bad)
Author: Justin Squirek 
Date:   Mon Aug 10 12:05:07 2020 -0400

[Ada] Reimplementation of accessibility checking

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2020-12-22 Thread mhillen at linux dot ibm.com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

--- Comment #3 from Marius Hillenbrand  ---
Potential duplicate: I have seen very similar errors on s390x while reproducing
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98228

There, bisecting lead back to d119f34c952f ("New modref/ipa_modref optimization
passes"). In my tests, the first stage that is compiled with -flto then later
fails with errors of that kind (e.g., stage3 with config bootstrap-lto-lean).


.../gcc/build-ada3/./prev-gcc/xgcc -B/.../gcc/build-ada3/./prev-gcc/ 
-fchecking=1 -c -g -O2 -fchecking=1 -flto=jobserver -frandom-seed=1  -gnatpg
-gnata -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface
-I..
/../gcc/ada -I../../gcc/ada/gcc-interface -Iada/libgnat -I../../gcc/ada/libgnat
../../gcc/ada/libgnat/a-elchha.adb -o ada/libgnat/a-elchha.o
+===GNAT BUG DETECTED==+
| 11.0.0 20201218 (experimental) (s390x-linux-gnu) Storage_Error stack overflow
or erroneous memory access|
| Error detected at a-elchha.adb:144:20|
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .  |
| Use a subject line meaningful to you and us to track the bug.|
| Include the entire contents of this bug box in the report.   |
| Include the exact command that you entered.  |
| Also include sources listed below.   |
+==+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

../../gcc/ada/gcc-interface/system.ads
../../gcc/ada/libgnat/a-elchha.adb
../../gcc/ada/libgnat/a-elchha.ads
../../gcc/ada/libgnat/a-except.ads
../../gcc/ada/libgnat/ada.ads
../../gcc/ada/libgnat/s-parame.ads
../../gcc/ada/libgnat/s-stalib.ads
../../gcc/ada/libgnat/a-unccon.ads
../../gcc/ada/libgnat/s-traent.ads
../../gcc/ada/libgnat/s-soflin.ads
../../gcc/ada/libgnat/s-secsta.ads
../../gcc/ada/libgnat/s-stoele.ads
../../gcc/ada/libgnat/s-stache.ads


and
.../gcc/build-ada3/./prev-gcc/xgcc -B/.../gcc/build-ada3/./prev-gcc/ 
-fchecking=1 -c -g -O2 -fchecking=1 -flto=jobserver -frandom-seed=1  -gnatpg
-gnata -W -Wall -g -O1 -fno-inline \
 -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc/ada
-I../../gcc/ada/gcc-interface -Iada/libgnat -I../
../gcc/ada/libgnat ../../gcc/ada/libgnat/a-except.adb -o ada/libgnat/a-except.o
+===GNAT BUG DETECTED==+
| 11.0.0 20201218 (experimental) (s390x-linux-gnu) Storage_Error stack overflow
or erroneous memory access|
| Error detected at a-exexda.adb:472:23|
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .  |
| Use a subject line meaningful to you and us to track the bug.|
| Include the entire contents of this bug box in the report.   |
| Include the exact command that you entered.  |
| Also include sources listed below.   |
+==+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

../../gcc/ada/gcc-interface/system.ads
../../gcc/ada/libgnat/a-except.adb
../../gcc/ada/libgnat/a-except.ads
../../gcc/ada/libgnat/ada.ads
../../gcc/ada/libgnat/s-parame.ads
../../gcc/ada/libgnat/s-stalib.ads
../../gcc/ada/libgnat/a-unccon.ads
../../gcc/ada/libgnat/s-traent.ads
../../gcc/ada/libgnat/s-except.ads
../../gcc/ada/libgnat/s-excdeb.ads
../../gcc/ada/libgnat/s-soflin.ads
../../gcc/ada/libgnat/s-secsta.ads
../../gcc/ada/libgnat/s-stoele.ads
../../gcc/ada/libgnat/s-stache.ads
../../gcc/ada/libgnat/s-wchcon.ads
../../gcc/ada/libgnat/s-wchstw.ads
../../gcc/ada/libgnat/s-traceb.ads
../../gcc/ada/libgnat/s-trasym.ads
../../gcc/ada/libgnat/s-exctab.ads
../../gcc/ada/libgnat/a-excach.adb
../../gcc/ada/libgnat/a-exexda.adb

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2020-12-22 Thread glaubitz at physik dot fu-berlin.de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

--- Comment #2 from John Paul Adrian Glaubitz  ---
I have started to bisect this now. aa80d0650ce612d88a62d072b63c2523d547fca8 is
still good while HEAD is broken.

It will take a while until I have a result as I have to perform this bisecting
on qemu-user.

[Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k

2020-12-18 Thread mikpelinux at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98341

Mikael Pettersson  changed:

   What|Removed |Added

 CC||mikpelinux at gmail dot com

--- Comment #1 from Mikael Pettersson  ---
I recently got a similar error which I'm currently trying to bisect.
gcc-11-20201018 was Ok.

+===GNAT BUG DETECTED==+
| 11.0.0 20201206 (experimental) (m68k-unknown-linux-gnu) Storage_Error stack
overflow or erroneous memory access|
| No source file position information available|
| Please submit a bug report; see https://gcc.gnu.org/bugs/ .  |
| Use a subject line meaningful to you and us to track the bug.|
| Include the entire contents of this bug box in the report.   |
| Include the exact command that you entered.  |
| Also include sources listed below.   |
+==+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.
Consider also -gnatd.n switch (see debug.adb).

/mnt/scratch/gcc-11-20201206/gcc/ada/gcc-interface/system.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/a-except.adb
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/a-except.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/ada.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-parame.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-stalib.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/a-unccon.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-traent.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-except.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-excdeb.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-soflin.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-secsta.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-stoele.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-stache.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-wchcon.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-wchstw.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-traceb.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-trasym.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-exctab.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/a-excach.adb
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/a-exexda.adb
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/a-exexpr.adb
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/a-uncdea.ads
ada/libgnat/s-excmac.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/a-exextr.adb
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/a-elchha.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-imgint.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-imagei.ads
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/a-exstat.adb
/mnt/scratch/gcc-11-20201206/gcc/ada/libgnat/s-stoele.adb

compilation abandoned
make[3]: ***
[/mnt/scratch/gcc-11-20201206/gcc/ada/gcc-interface/Make-lang.in:1053:
ada/libgnat/a-except.o] Error 1
make[3]: Leaving directory '/mnt/scratch/objdir11/gcc'
make[2]: *** [Makefile:4820: all-stage3-gcc] Error 2
make[2]: Leaving directory '/mnt/scratch/objdir11'
make[1]: *** [Makefile:20508: stage3-bubble] Error 2
make[1]: Leaving directory '/mnt/scratch/objdir11'
make: *** [Makefile:20572: bootstrap] Error 2