public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/65451] New: gnat bug: Storage_Error stack overflow or erroneous memory access
@ 2015-03-17 13:59 gnugcc at marino dot st
  2015-03-17 14:03 ` [Bug ada/65451] " gnugcc at marino dot st
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gnugcc at marino dot st @ 2015-03-17 13:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65451

            Bug ID: 65451
           Summary: gnat bug: Storage_Error stack overflow or erroneous
                    memory access
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gnugcc at marino dot st
              Host: x86_64-unknown-dragonfly4.1
            Target: x86_64-unknown-dragonfly4.1
             Build: x86_64-unknown-dragonfly4.1

I was testing the latest gcc-5 snapshot against FreeBSD Ada ports (which
DragonFly uses).  I am seeing an intermittent "GNAT BUG" error on the Matreshka
port ( http://freshports/devel/matreshka ):

ada -c -fPIC -g -gnatwa -gnat12 -gnatW8 -O2 -gnatn
matreshka-internals-strings.adb
+===========================GNAT BUG DETECTED==============================+
| 5.0.0 20150315 (experimental) -=> GNAT AUX [DragonFly64]
(x86_64-aux-dragonfly4.1) |
| Storage_Error stack overflow or erroneous memory access                  |
| Error detected at matreshka-internals-utf16.adb:45:33                    |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| 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).

/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-internals-strings.adb
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-internals-strings.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-internals.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/league.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-atomics.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-atomics-counters.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-internals-unicode.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-internals-unicode-ucd.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-internals-utf16.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-atomics-generic_test_and_set.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-internals-strings-configuration__x86_64.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-internals-strings-handlers.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/arch/x86_64/matreshka-internals-strings-handlers-x86_64.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-internals-strings-handlers-portable.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/arch/x86_generic/matreshka-internals-strings-handlers-generic_x86_sse2.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/arch/x86_generic/matreshka-internals-strings-handlers-x86_utilities.ads
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-atomics-generic_test_and_set__gcc__64.adb
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-atomics-counters__gcc.adb
/wrkdirs/devel/matreshka/work/matreshka-0.6.0/source/league/matreshka-internals-utf16.adb

compilation abandoned
gprbuild: *** compilation phase failed
Makefile.build:36: recipe for target 'league' failed
gmake[2]: *** [league] Error 4
gmake[2]: Leaving directory '/wrkdirs/devel/matreshka/work/matreshka-0.6.0'
Makefile:21: recipe for target 'all' failed
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory '/wrkdirs/devel/matreshka/work/matreshka-0.6.0'
*** Error code 1

I suspect this isn't enough information to diagnose anything.  The link to the
source is found on the freshports site, and some patches are in the svn repo. 
There are an additional three patches that I was testing that are needed to
build on gcc-5 (e.g. missing explicit "limited" keyword patch)

I just want to get this documented for now.  Let me know what I can provide to
help troubleshoot it.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/65451] gnat bug: Storage_Error stack overflow or erroneous memory access
  2015-03-17 13:59 [Bug ada/65451] New: gnat bug: Storage_Error stack overflow or erroneous memory access gnugcc at marino dot st
@ 2015-03-17 14:03 ` gnugcc at marino dot st
  2015-03-17 21:50 ` ebotcazou at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: gnugcc at marino dot st @ 2015-03-17 14:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65451

--- Comment #1 from John Marino <gnugcc at marino dot st> ---
Note that I saw this on 20150308 snapshot with Matreshka too in a different
file.  That snapshot also failed on building OpenToken with a GNAT BUG, but
OpenToken builds fine with 20150315 snapshot.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/65451] gnat bug: Storage_Error stack overflow or erroneous memory access
  2015-03-17 13:59 [Bug ada/65451] New: gnat bug: Storage_Error stack overflow or erroneous memory access gnugcc at marino dot st
  2015-03-17 14:03 ` [Bug ada/65451] " gnugcc at marino dot st
@ 2015-03-17 21:50 ` ebotcazou at gcc dot gnu.org
  2015-03-18  9:01 ` gnugcc at marino dot st
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2015-03-17 21:50 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65451

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-03-17
                 CC|                            |ebotcazou at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Concatenate the Ada files listed in the report, gzip and attach the result.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/65451] gnat bug: Storage_Error stack overflow or erroneous memory access
  2015-03-17 13:59 [Bug ada/65451] New: gnat bug: Storage_Error stack overflow or erroneous memory access gnugcc at marino dot st
  2015-03-17 14:03 ` [Bug ada/65451] " gnugcc at marino dot st
  2015-03-17 21:50 ` ebotcazou at gcc dot gnu.org
@ 2015-03-18  9:01 ` gnugcc at marino dot st
  2015-03-18  9:10 ` [Bug ada/65451] [5 regression] compiler crash on volatile access type ebotcazou at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: gnugcc at marino dot st @ 2015-03-18  9:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65451

--- Comment #4 from John Marino <gnugcc at marino dot st> ---
Created attachment 35054
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35054&action=edit
gzipped archive of matreshka source files

I created a tarball of the source files rather than concatenate.  I thought
that would be more flexible.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/65451] [5 regression] compiler crash on volatile access type
  2015-03-17 13:59 [Bug ada/65451] New: gnat bug: Storage_Error stack overflow or erroneous memory access gnugcc at marino dot st
                   ` (2 preceding siblings ...)
  2015-03-18  9:01 ` gnugcc at marino dot st
@ 2015-03-18  9:10 ` ebotcazou at gcc dot gnu.org
  2015-03-18 13:57 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2015-03-18  9:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65451

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|x86_64-aux-dragonfly4.1     |
             Status|WAITING                     |ASSIGNED
               Host|x86_64-aux-dragonfly4.1     |
   Target Milestone|---                         |5.0
            Summary|gnat bug: Storage_Error     |[5 regression] compiler
                   |stack overflow or erroneous |crash on volatile access
                   |memory access               |type
              Build|x86_64-aux-dragonfly4.1     |

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Thanks, fixing...


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/65451] [5 regression] compiler crash on volatile access type
  2015-03-17 13:59 [Bug ada/65451] New: gnat bug: Storage_Error stack overflow or erroneous memory access gnugcc at marino dot st
                   ` (3 preceding siblings ...)
  2015-03-18  9:10 ` [Bug ada/65451] [5 regression] compiler crash on volatile access type ebotcazou at gcc dot gnu.org
@ 2015-03-18 13:57 ` jakub at gcc dot gnu.org
  2015-03-20 10:25 ` ebotcazou at gcc dot gnu.org
  2015-03-20 10:26 ` ebotcazou at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-18 13:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65451

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
                 CC|                            |jakub at gcc dot gnu.org


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/65451] [5 regression] compiler crash on volatile access type
  2015-03-17 13:59 [Bug ada/65451] New: gnat bug: Storage_Error stack overflow or erroneous memory access gnugcc at marino dot st
                   ` (4 preceding siblings ...)
  2015-03-18 13:57 ` jakub at gcc dot gnu.org
@ 2015-03-20 10:25 ` ebotcazou at gcc dot gnu.org
  2015-03-20 10:26 ` ebotcazou at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2015-03-20 10:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65451

--- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Author: ebotcazou
Date: Fri Mar 20 10:15:33 2015
New Revision: 221531

URL: https://gcc.gnu.org/viewcvs?rev=221531&root=gcc&view=rev
Log:
    PR ada/65451
    * gcc-interface/utils.c (gnat_pushdecl): Tidy up and improve comment.
    Make sure to chain only main variants through TYPE_NEXT_PTR_TO.

Added:
    trunk/gcc/testsuite/gnat.dg/volatile13.adb
    trunk/gcc/testsuite/gnat.dg/volatile13.ads
Modified:
    trunk/gcc/ada/ChangeLog
    trunk/gcc/ada/gcc-interface/trans.c
    trunk/gcc/ada/gcc-interface/utils.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug ada/65451] [5 regression] compiler crash on volatile access type
  2015-03-17 13:59 [Bug ada/65451] New: gnat bug: Storage_Error stack overflow or erroneous memory access gnugcc at marino dot st
                   ` (5 preceding siblings ...)
  2015-03-20 10:25 ` ebotcazou at gcc dot gnu.org
@ 2015-03-20 10:26 ` ebotcazou at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2015-03-20 10:26 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65451

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
This should compile again.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-03-20 10:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-17 13:59 [Bug ada/65451] New: gnat bug: Storage_Error stack overflow or erroneous memory access gnugcc at marino dot st
2015-03-17 14:03 ` [Bug ada/65451] " gnugcc at marino dot st
2015-03-17 21:50 ` ebotcazou at gcc dot gnu.org
2015-03-18  9:01 ` gnugcc at marino dot st
2015-03-18  9:10 ` [Bug ada/65451] [5 regression] compiler crash on volatile access type ebotcazou at gcc dot gnu.org
2015-03-18 13:57 ` jakub at gcc dot gnu.org
2015-03-20 10:25 ` ebotcazou at gcc dot gnu.org
2015-03-20 10:26 ` ebotcazou at gcc dot gnu.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).