Bug 14424 - [tree-ssa] bootstrap failure
Summary: [tree-ssa] bootstrap failure
Status: RESOLVED INVALID
Alias: None
Product: gcc
Classification: Unclassified
Component: bootstrap (show other bugs)
Version: tree-ssa
: P2 critical
Target Milestone: tree-ssa
Assignee: Not yet assigned to anyone
URL:
Keywords: build, ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2004-03-04 00:42 UTC by Steven Bosscher
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host: x86-64
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Bosscher 2004-03-04 00:42:53 UTC
$ stage1/cc1 --version 
GNU C version 3.5-tree-ssa 20040303 (merged 20040227) 
(x86_64-unknown-linux-gnu) 
        compiled by GNU C version 3.2.2 (SuSE Linux). 
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 
$ cat configargs.h 
/* Generated automatically. */ 
static const char configuration_arguments[] = "../tree-ssa-branch/configure 
--enable-languages=c,c++,objc,f95 --prefix=/space/stevenb/test_install/"; 
static const char thread_model[] = "posix"; 
 
static const struct { 
  const char *name, *value; 
} configure_default_options[] = { { "cpu", "k8" } }; 
 
 
Bootstrap terminates with a segmentation fault: 
stage1/xgcc -Bstage1/ -B/space/stevenb/test_install//x86_64-unknown-linux-gnu/
bin/   -g -O2  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -pedantic -Wno-long-long -Wold-style-definition 
-Wno-variadic-macros -Werror -fno-common   -DHAVE_CONFIG_H    -I. -I. -I../../
tree-ssa-branch/gcc -I../../tree-ssa-branch/gcc/. -I../../tree-ssa-branch/
gcc/../include -I../../tree-ssa-branch/gcc/../libbanshee/libcompat -I../../
tree-ssa-branch/gcc/../libbanshee -I../../tree-ssa-branch/gcc/../libbanshee/
points-to  -c insn-extract.c \ 
  -o insn-extract.o 
insn-extract.c: In function `insn_extract': 
insn-extract.c:16: internal compiler error: Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
make[1]: *** [insn-extract.o] Error 1 
make[1]: Leaving directory `/space/stevenb/build-tree-ssa/gcc' 
make: *** [stage2_build] Error 2 
 
 
Output from gdb: 
Starting program: /space/stevenb/build-tree-ssa/gcc/stage1/cc1 -quiet -v -I. 
-I../../tree-ssa-branch/gcc -I../../tree-ssa-branch/include -I../../
tree-ssa-branch/libbanshee/libcompat -I../../tree-ssa-branch/libbanshee 
-I../../tree-ssa-branch/libbanshee/points-to -isystem include -isystem stage1/
include -DIN_GCC -DHAVE_CONFIG_H insn-extract.c -mtune=k8 -g -O2 -fno-common 
-o /tmp/ccw4aXdT.s 
 
Breakpoint 11, clear_marks () at ../../tree-ssa-branch/gcc/ggc-page.c:1703 
1703              if ((size_t) p->page & (G.pagesize - 1)) 
1: bitmap_size = 33554440 
(gdb) d 11 
(gdb) l 
1698              size_t num_objects = OBJECTS_IN_PAGE (p); 
1699              size_t bitmap_size = BITMAP_SIZE (num_objects + 1); 
1700 
1701    #ifdef ENABLE_CHECKING 
1702              /* The data should be page-aligned.  */ 
1703              if ((size_t) p->page & (G.pagesize - 1)) 
1704                abort (); 
1705    #endif 
1706 
1707              /* Pages that aren't in the topmost context are not 
collected; 
(gdb) p order 
$5 = 67 
(gdb) p num_objects 
$6 = 268435456 
(gdb) cont 
Continuing. 
 
Program received signal SIGSEGV, Segmentation fault. 
0x0000002a956e23e3 in memset () from /lib64/libc.so.6 
(gdb) up 
#1  0x00000000404a4383 in clear_marks () at ../../tree-ssa-branch/gcc/
ggc-page.c:1720 
1720              memset (p->in_use_p, 0, bitmap_size); 
(gdb) bt 
#0  0x0000002a956e23e3 in memset () from /lib64/libc.so.6 
#1  0x00000000404a4383 in clear_marks () at ../../tree-ssa-branch/gcc/
ggc-page.c:1720 
#2  0x00000000404a4912 in ggc_collect () at ../../tree-ssa-branch/gcc/
ggc-page.c:1989 
#3  0x00000000400beac0 in execute_todo (flags=15) at ../../tree-ssa-branch/
gcc/tree-optimize.c:352 
#4  0x00000000400bec8d in execute_one_pass (pass=0x407acf60)
Comment 1 Andrew Pinski 2004-03-04 01:31:31 UTC
Which pass is this?  You can found out by going up four stage frames and printing out the contents of 
*pass.
Comment 2 Steven Bosscher 2004-03-04 15:44:57 UTC
works on different hardware.