This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
ada/8358: Ada accesses freed memory
- From: aj at suse dot de
- To: gcc-gnats at gcc dot gnu dot org
- Cc: graham dot stott at btinternet dot com
- Date: 25 Oct 2002 18:19:42 -0000
- Subject: ada/8358: Ada accesses freed memory
- Reply-to: aj at suse dot de
>Number: 8358
>Category: ada
>Synopsis: Ada accesses freed memory
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Oct 25 11:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: aj@suse.de
>Release: GCC 3.3 CVS 20021016
>Organization:
>Environment:
i686-linux-gnu with glibc 2.2.5
>Description:
For more details see also the thread starting at:
http://gcc.gnu.org/ml/gcc-bugs/2002-10/msg00764.html
and especially these follow-ups:
http://gcc.gnu.org/ml/gcc-bugs/2002-10/msg00828.html
http://gcc.gnu.org/ml/gcc-bugs/2002-10/msg00859.html
The problem is this error:
$ ../../xgcc -B../../ -c -g -O2 -g -O2 -W -Wall -gnatpg -I. -I/cvs/gcc/gcc/ada s-intman.adb -v -save-temps
Reading specs from ../../specs
Configured with: /cvs/gcc/configure --prefix=/opt/gcc/3.3-devel --disable-nls --enable-threads=posix --enable-clocale=gnu --enable-__cxa_atexit --enable-shared --enable-languages=c,c++,f77,java,objc,ada,treelang --enable-checking=misc,tree,rtl,gc,rtlflag,gcac --with-system-zlib
Thread model: posix
gcc version 3.3 20021016 (experimental)
../../gnat1 -I. -I/cvs/gcc/gcc/ada -quiet -dumpbase s-intman.adb -g -g -gnatpg -O2 -O2 -W -Wall s-intman.adb -o s-intman.s
+===========================GNAT BUG DETECTED==============================+
| 3.3 20021016 (experimental) (i686-pc-linux-gnu) Storage_Error stack overflow (or erroneous memory access)|
| Error detected at s-intman.adb:113:20 |
| Please submit bug report by email to gcc-bugs@gcc.gnu.org. |
| 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 gcc or gnatmake command that you entered. |
| Also include sources listed below in gnatchop format |
| (concatenated together with no headers between files). |
| (use plain ASCII or MIME attachment). |
| See gnatinfo.txt for full info on procedure for submitting bugs. |
+==========================================================================+
Please include these source files with error report
compilation abandoned
build_unit_elab (gnat_unit=1076058484, body_p=1, gnu_elab_list=0xa5a5a5a5) at /cvs/gcc/gcc/ada/trans.c:5324
5324 if (TREE_PURPOSE (gnu_elab_list) == NULL_TREE)
(gdb) bt
#0 build_unit_elab (gnat_unit=1076058484, body_p=1, gnu_elab_list=0xa5a5a5a5) at /cvs/gcc/gcc/ada/trans.c:5324
#1 0x4001d2d0 in ?? ()
#2 0x08078ecf in tree_transform (gnat_node=1355) at /cvs/gcc/gcc/ada/sinfo.h:813
#3 0x08071ee6 in gnat_to_code (gnat_node=1076025312) at /cvs/gcc/gcc/ada/trans.c:232
internal error - unimplemented function unk_lang_create_fundamental_type called.
(gdb) p gnu_elab_list
$1 = (union tree_node *) 0xa5a5a5a5
>How-To-Repeat:
compile with --enable-checking=gcac and see it fail
when building the gnat-tools (make -C gcc gnatlib_and_tools).
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: