This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/24822] New: make[2]: *** [ada/einfo.h] Error 1


(cd ada/bldtools/sinfo; gnatmake -q xsinfo ; ./xsinfo ../../sinfo.h )
mkdir -p ada/bldtools/einfo
cp -p ../../gcc/gcc/ada/einfo.ads ../../gcc/gcc/ada/einfo.adb
../../gcc/gcc/ada/
xeinfo.adb ada/bldtools/einfo
(cd ada/bldtools/einfo; gnatmake -q xeinfo ; ./xeinfo ../../einfo.h )

raised STORAGE_ERROR : stack overflow or erroneous memory access
make[2]: *** [ada/einfo.h] Error 1

# gdb-6.3 xeinfo
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa2.0w-hp-hpux11.11"...
(gdb) r ../../einfo.h
Starting program: /mnt/gnu/gcc-3.3/objdir/gcc/ada/bldtools/einfo/xeinfo
../../einfo.h

Program received signal SIGSEGV, Segmentation fault.
0x00060db8 in system__finalization_implementation__get_deep_controller ()
(gdb) disass 0x00060d98 0x00060dd8
Dump of assembler code from 0x60d98 to 0x60dd8:
0x00060d98 <system__finalization_implementation__detach_from_final_list+528>: 
copy r31,rp
0x00060d9c <system__finalization_implementation__detach_from_final_list+532>: 
b,l 0x22920 <ada__exceptions__reraise_occurrence_always>,rp
0x00060da0 <system__finalization_implementation__detach_from_final_list+536>: 
ldo -2f8(sp),r26
0x00060da4 <system__finalization_implementation__detach_from_final_list+540>: 
nop
0x00060da8 <system__finalization_implementation__get_deep_controller+0>:      
stw rp,-14(,sp)
0x00060dac <system__finalization_implementation__get_deep_controller+4>:      
stw,ma r4,40(,sp)
0x00060db0 <system__finalization_implementation__get_deep_controller+8>:      
copy r26,r4
0x00060db4 <system__finalization_implementation__get_deep_controller+12>:     
stw r3,-3c(,sp)
0x00060db8 <system__finalization_implementation__get_deep_controller+16>:     
ldw 0(,r26),r3
0x00060dbc <system__finalization_implementation__get_deep_controller+20>:     
b,l 0x2eef0 <ada__tags__get_rc_offset>,rp
0x00060dc0 <system__finalization_implementation__get_deep_controller+24>:     
copy r3,r26
---Type <return> to continue, or q <return> to quit---
0x00060dc4 <system__finalization_implementation__get_deep_controller+28>:     
cmpib,=,n -2,ret0,0x60dec
<system__finalization_implementation__get_deep_controller+68>
0x00060dc8 <system__finalization_implementation__get_deep_controller+32>:     
cmpib,= 0,ret0,0x60dd8
<system__finalization_implementation__get_deep_controller+48>
0x00060dcc <system__finalization_implementation__get_deep_controller+36>:     
ldi 0,r19
0x00060dd0 <system__finalization_implementation__get_deep_controller+40>:     
cmpib,>= 0,ret0,0x60e28
<system__finalization_implementation__get_deep_controller+128>
0x00060dd4 <system__finalization_implementation__get_deep_controller+44>:     
add,l r4,ret0,r19
End of assembler dump.
(gdb) p/x $r26
$1 = 0x0
(gdb) bt
#0  0x00060db8 in system__finalization_implementation__get_deep_controller ()
#1  0x00060f7c in system__finalization_implementation__deep_tag_attach ()
#2  0x00015594 in _ada_xeinfo ()
#3  0x0000f0dc in main ()

The segmentation fault is caused by
system__finalization_implementation__deep_tag_attach ()
calling system__finalization_implementation__get_deep_controller ()
with a zero first argument.

I used gcc 4.0.2 as the bootstrap compiler.  I believe that the error
doesn't occur when gcc-3.4.4 is used.


-- 
           Summary: make[2]: *** [ada/einfo.h] Error 1
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa*-*-hpux*
  GCC host triplet: hppa*-*-hpux*
GCC target triplet: hppa*-*-hpux*


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]