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]

other/9046: Programs compiled with g++ (GCC 3.2.1) dumps core


>Number:         9046
>Category:       other
>Synopsis:       Programs compiled with g++ (GCC 3.2.1) dumps core
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 23 13:56:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     anandn@cisco.com
>Release:        GCC 3.2.1
>Organization:
>Environment:
Solaris 2.6. GCC 3.2.1 compiled with GCC 2.95 with binutils 2.13
>Description:
Even simple programs likg

int main ()
{
   return 0;
}

dumps core when compiled with g++. I build gcc 3.2.1 on solaris 2.6 with gcc 2.95 and binutils version 2.13. 
If this program is compiled with gcc, it works. Please help.. I am stuck on this for the last one week. I tried various different things like compiling GCC with Sun cc compiler, building binutils with sun compiler etc. The result is still the same. 

This is the GDB trace

GDB is free software and you are welcome to 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.
GDB 4.16.1-96q4 (sparc-sun-solaris2), 
Copyright 1996 Free Software Foundation, Inc...
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /disk2/sw/gnu/lib/libstdc++.so.5...done.
Reading symbols from /lib/libm.so.1...done.
Reading symbols from /disk2/sw/gnu/lib/libgcc_s.so.1...done.
Reading symbols from /lib/libc.so.1...done.
Reading symbols from /lib/libdl.so.1...done.
Reading symbols from /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
#0  __register_frame_info_bases (begin=0xef790000, ob=0xef790000, tbase=0x0, 
    dbase=0x0) at ../../gcc-3.2.1/gcc/unwind-dw2-fde.c:83
../../gcc-3.2.1/gcc/unwind-dw2-fde.c:83: No such file or directory.
(gdb) where
#0  __register_frame_info_bases (begin=0xef790000, ob=0xef790000, tbase=0x0, 
    dbase=0x0) at ../../gcc-3.2.1/gcc/unwind-dw2-fde.c:83
#1  0xef7916b0 in frame_dummy ()
#2  0xef791598 in _init ()
#3  0xef7ca88c in ?? ()
#4  0xef7ca6c8 in ?? ()
#5  0xef7d34ac in ?? ()
#6  0xef7c29bc in ?? ()
Current language:  auto; currently c
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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