Bug 45568 - [4.6 Regression] stack overflow (or erroneous memory access) building gnattools
Summary: [4.6 Regression] stack overflow (or erroneous memory access) building gnattools
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 4.6.0
: P4 normal
Target Milestone: 4.6.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2010-09-06 22:46 UTC by John David Anglin
Modified: 2010-11-24 00:09 UTC (History)
2 users (show)

See Also:
Host: hppa-unknown-linux-gnu
Target: hppa-unknown-linux-gnu
Build: hppa-unknown-linux-gnu
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 John David Anglin 2010-09-06 22:46:53 UTC
../../xgcc -B../../ -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmis
sing-prototypes -mdisable-indexing -gnatpg -gnata -I- -I../rts -I. -I/home/dave/
gnu/gcc/gcc/gcc/ada /home/dave/gnu/gcc/gcc/gcc/ada/prj-nmsc.adb -o prj-nmsc.o
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating threads.mk
config.status: creating include/gc_config.h
config.status: creating include/gc_ext_config.h
config.status: executing default-1 commands
Adding multilib support to Makefile in ../../../gcc/boehm-gc
multidirs=
with_multisubdir=
config.status: executing depfiles commands
config.status: executing libtool commands
../../xgcc -B../../ -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmis
sing-prototypes -mdisable-indexing -gnatpg -gnata -I- -I../rts -I. -I/home/dave/
gnu/gcc/gcc/gcc/ada /home/dave/gnu/gcc/gcc/gcc/ada/prj-pars.adb -o prj-pars.o
../../xgcc -B../../ -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmis
sing-prototypes -mdisable-indexing -gnatpg -gnata -I- -I../rts -I. -I/home/dave/gnu/gcc/gcc/gcc/ada /home/dave/gnu/gcc/gcc/gcc/ada/prj-part.adb -o prj-part.o
../../xgcc -B../../ -c -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -mdisable-indexing -gnatpg -gnata -I- -I../rts -I. -I/home/dave/gnu/gcc/gcc/gcc/ada /home/dave/gnu/gcc/gcc/gcc/ada/prj-proc.adb -o prj-proc.o

raised STORAGE_ERROR : stack overflow (or erroneous memory access)
make[3]: *** [prj-nmsc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Checking multilib configuration for libobjc...
mkdir -p -- hppa-linux/libobjc
Configuring in hppa-linux/libobjc
configure: creating cache ./config.cache
checking build system type... make[3]: Leaving directory `/home/dave/gnu/gcc/objdir/gcc/ada/tools'
make[2]: *** [gnattools-native] Error 2
make[2]: Leaving directory `/home/dave/gnu/gcc/objdir/gnattools'
make[1]: *** [all-gnattools] Error 2
make[1]: *** Waiting for unfinished jobs....

This build failure was introduced between revision 163743 and 163867.
163805 has a different Ada build failure.
Comment 1 John David Anglin 2010-09-12 13:28:37 UTC
This bug was introduced in 163808.  It no longer occurs on trunk,
probably because of the subsequent changes to tree-ssa-ccp.c (fold_const_aggregate_ref).
Comment 2 John David Anglin 2010-09-15 22:49:30 UTC
Bug returns in build with revision 164294.
Comment 3 Eric Botcazou 2010-11-02 13:48:16 UTC
Is this still present?
Comment 4 John David Anglin 2010-11-02 14:03:22 UTC
No.
Comment 5 John David Anglin 2010-11-23 23:56:17 UTC
Appears to be fixed.