This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix problem with constant modulus
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: ebotcazou at libertysurf dot fr (Eric Botcazou)
- Cc: kenner at vlsi1 dot ultra dot nyu dot edu, gcc-patches at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Wed, 21 Apr 2004 17:40:11 -0400 (EDT)
- Subject: Re: Fix problem with constant modulus
> +===========================GNAT BUG DETECTED==============================+
> | 3.5.0 20040421 (experimental) (i586-redhat-linux-gnu) Storage_Error stack
> overflow (or erroneous memory access)|
The following two backtraces suggest that gnat1 is blowing up trying to
set the default_search_dirs.
#0 0x000647c0 in __gnat_malloc (size=56) at ../../gcc/gcc/ada/s-memory.adb:92
#1 0x0014b16c in osint__executable_prefix ()
at ../../gcc/gcc/ada/osint.adb:792
#2 0x0014ea14 in osint__relocate_path (prefix=
{P_ARRAY = 0x5154bc, P_BOUNDS = 0x5155c4}, path=
{P_ARRAY = 0x515584, P_BOUNDS = 0x5155e4})
at ../../gcc/gcc/ada/osint.adb:2233
#3 0x0014a040 in osint__add_default_search_dirs ()
at ../../gcc/gcc/ada/osint.adb:488
#4 0x00269760 in _ada_gnat1drv () at ../../gcc/gcc/ada/gnat1drv.adb:102
#5 0x0041f77c in toplev_main (argc=6211544, argv=0x5ec7d8)
at ../../gcc/gcc/toplev.c:1596
#6 0x4004845c in ?? ()
#0 xmalloc (size=3220180432) at ../../gcc/libiberty/xmalloc.c:142
#1 0x004f6384 in concat (first=0xbff00dd0 "GCC")
at ../../gcc/libiberty/concat.c:77
#2 0x0026a530 in translate_name (
name=0xae4368 "@GCC/lib/gcc/hppa-linux/3.5.0/adainclude/")
at ../../gcc/gcc/prefix.c:102
#3 0x0026a7b4 in update_path (
path=0xbff00c50 "/home/dave/opt/gnu/gcc/gcc-3.5-sjlj/lib/gcc/hppa-linux/3.5.0/adainclude/", key=0xae4240 "") at ../../gcc/gcc/prefix.c:263
#4 0x0014fcc4 in osint__update_path (path=
{P_ARRAY = 0x40186108, P_BOUNDS = 0x0})
at ../../gcc/gcc/ada/osint.adb:2698
#5 0x0014a070 in osint__add_default_search_dirs ()
at ../../gcc/gcc/ada/osint.adb:488
#6 0x00269760 in _ada_gnat1drv () at ../../gcc/gcc/ada/gnat1drv.adb:102
#7 0x0041f77c in toplev_main (argc=6211544, argv=0x5ec7d8)
at ../../gcc/gcc/toplev.c:1596
#8 0x4004845c in ?? ()
--
J. David Anglin dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6602)