public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gcc-bugzilla at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ada/18572] New: Bus error compiling makegpr.adb on Mac OS X 10.3
Date: Fri, 19 Nov 2004 23:25:00 -0000	[thread overview]
Message-ID: <20041119232536.18572.ro@techfak.uni-bielefeld.de> (raw)


As already described in PR ada/18217, while building gnattools gnat1 gets a
bus error compiling makegpr.adb:

$ ../../xgcc -c -I./ -I../rts -I. -I/vol/gnu/src/gcc/gcc-dist/gcc/ada -B../../ -O2 -g -O2 -gnatpg -gnata -I- /vol/gnu/src/gcc/gcc-dist/gcc/ada/makegpr.adb
+===========================GNAT BUG DETECTED==============================+
| 4.0.0 20041119 (experimental) (powerpc-apple-darwin7.6.0) Bus error      |
| Error detected at makegpr.adb:4159:23                                    |

Program received signal EXC_BAD_ACCESS, Could not access memory.
0x004e9650 in initializer_zerop (init=0x4469dcc0) at /vol/gnu/src/gcc/gcc-dist/gcc/tree.c:5834
(gdb) where
#0  0x004e9650 in initializer_zerop (init=0x4469dcc0) at /vol/gnu/src/gcc/gcc-dist/gcc/tree.c:5834
#1  0x004e97dc in initializer_zerop (init=0x4469dcc0) at /vol/gnu/src/gcc/gcc-dist/gcc/tree.c:5870
#2  0x004e97dc in initializer_zerop (init=0x4469dcc0) at /vol/gnu/src/gcc/gcc-dist/gcc/tree.c:5870
#3  0x004fb574 in assemble_variable (decl=0xc659a8, top_level=115, at_end=6317412, dont_output_data=1147788480) at /vol/gnu/src/gcc/gcc-dist/gcc/varasm.c:1706
#4  0x00503118 in rest_of_decl_compilation (decl=0x4469dcc0, top_level=6317412, at_end=12999080) at /vol/gnu/src/gcc/gcc-dist/gcc/passes.c:235
#5  0x00507bfc in expand_one_var (var=0x4469dcc0, toplevel=100 'd') at /vol/gnu/src/gcc/gcc-dist/gcc/cfgexpand.c:559
#6  0x005094ac in tree_expand_cfg () at /vol/gnu/src/gcc/gcc-dist/gcc/cfgexpand.c:791
#7  0x0024896c in execute_pass_list (pass=0x44698210) at /vol/gnu/src/gcc/gcc-dist/gcc/tree-optimize.c:511
#8  0x00248ca8 in tree_rest_of_compilation (fndecl=0x0) at /vol/gnu/src/gcc/gcc-dist/gcc/tree-optimize.c:643
#9  0x005330bc in cgraph_expand_function (node=0x44699880) at /vol/gnu/src/gcc/gcc-dist/gcc/cgraphunit.c:822
#10 0x0053407c in cgraph_optimize () at /vol/gnu/src/gcc/gcc-dist/gcc/cgraphunit.c:1689
#11 0x004d6528 in toplev_main (argc=12717220, argv=0xc265b4) at /vol/gnu/src/gcc/gcc-dist/gcc/toplev.c:985
#12 0x00002584 in _start (argc=16, argv=0xbffff93c, envp=0xbffff980) at /SourceCache/Csu/Csu-47/crt.c:267
#13 0x8fe1a558 in __dyld__dyld_start ()

The file compiles without problems at -O0.  With this change and the
workaround from PR ada/18217, I was able to finish a C and Ada bootstrap.

make check currently running.

Environment:
System: Darwin nil 7.6.0 Darwin Kernel Version 7.6.0: Sun Oct 10 12:05:27 PDT 2004; root:xnu/xnu-517.9.4.obj~1/RELEASE_PPC Power Macintosh powerpc


	
host: powerpc-apple-darwin7.6.0
build: powerpc-apple-darwin7.6.0
target: powerpc-apple-darwin7.6.0
configured with: /vol/gnu/src/gcc/gcc-dist/configure --prefix=/vol/gcc/obj/gnat/4.0.0/7.6.0 --with-local-prefix=/vol/gcc/obj/gnat/4.0.0/7.6.0 --disable-nls --enable-languages=c,ada

How-To-Repeat:
Bootstrap as described above.

-- 
           Summary: Bus error compiling makegpr.adb on Mac OS X 10.3
           Product: gcc
           Version: 0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ro at techfak dot uni-bielefeld dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.6.0
  GCC host triplet: powerpc-apple-darwin7.6.0
GCC target triplet: powerpc-apple-darwin7.6.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18572


             reply	other threads:[~2004-11-19 23:25 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-19 23:25 gcc-bugzilla at gcc dot gnu dot org [this message]
2004-11-19 23:28 ` [Bug ada/18572] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-11-19 23:35 ` pinskia at gcc dot gnu dot org
2004-11-20  3:12 ` pinskia at gcc dot gnu dot org
2004-11-21 23:07 ` pinskia at gcc dot gnu dot org
2004-11-22  0:07 ` pinskia at gcc dot gnu dot org
2004-11-22  2:20 ` [Bug tree-optimization/18572] " pinskia at gcc dot gnu dot org
2004-11-22 13:51 ` pinskia at gcc dot gnu dot org
2004-11-22 14:18 ` ro at techfak dot uni-bielefeld dot de
2004-11-22 14:32 ` pinskia at gcc dot gnu dot org
2004-11-22 20:02 ` cvs-commit at gcc dot gnu dot org
2004-11-22 20:04 ` pinskia at gcc dot gnu dot org
2004-11-26 23:13 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20041119232536.18572.ro@techfak.uni-bielefeld.de \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).