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]

Segmentation fault in __register_frame_info


Sirs,

I am sorry for not going throough the GNATS system - it won't let me
submit the bug saying that "Priority is high" ... I have to revert to
e-mail.
The system I am working on was always compiled with gcc 2.95.3 for
Solaris 2.6 and was functional for a long time. Having upgraded to
Solaris 2.8 I have rebuilt gcc 2.95.3 for 2.8 platform (we cannot use
later versions of GCC because of their fuller ISO compliance - too much
legacy code will have to be fixed). With the new compiler any
application that uses my shared libraries is core dumping in
__register_frame_info. I have recreated the problem consistently with a
trivial test:

FILE ONE - Test.cpp
-------------------
extern printHello ()
int main ()
 {
 printHello();
 }

FILE TWO - Shared.cpp
---------------------
#include <stdio.h>
void printHello ()
 {
 printf ("Hi there!\n");
 }

The second one is compiled into a shared library as follows:
gcc -Wall -c -g -o Shared.o Shared.cpp
gcc -Wall -shared Shared.o -o libshared.so -lgcc -lstdc++
The first one is then linked to it:
gcc -Wall -o Test Test.cpp -L. -lshared
When running the Test program, I get seg fault, here is gdb
backtrace:
GNU gdb 5.3
Copyright 2002 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.&nbsp; Type "show warranty"
for details.
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run
Starting program: /home/agi/probe/v503.sim/SimXinuApps/TEST/Test
Program received signal SIGSEGV, Segmentation fault.
0xff251d28 in __register_frame_info (begin=0xff210000, ob=0xff210000)
from /probe/SimXinuRef/ThirdParty/gnu-solaris/lib/libstdc++.so.2.10.0
Current language: auto; currently c
(gdb)
(gdb) bt
0xff251d28 in __register_frame_info (begin=0xff210000, ob=0xff210000)
from /probe/SimXinuRef/ThirdParty/gnu-solaris/lib/libstdc++.so.2.10.0
0xff22c7fc in frame_dummy () from
/probe/SimXinuRef/ThirdParty/gnu-solaris/lib/libstdc++.so.2.10.0
0xff22c6e0 in _init () from
/probe/SimXinuRef/ThirdParty/gnu-solaris/lib/libstdc++.so.2.10.0
0xff3bc1ec in ?? ()
0xff3bbae4 in ?? ()
0xff3c6fdc in ?? ()
0xff3b2a50 in ?? ()
Please, help me with this one!!! If you need any other information,
holler at me right away. I sincerely hope that it's a known issue with
a simple fix! Looking forward to any comments.

Yours,
Alex Ivershen

--
Alex G. Ivershen                            Inet Technologies, Inc.
Network Products Dept.                      1500 N. Greenville Ave.
Inet Technologies Inc.                      Richardson, TX 75081
Phone: +1-469-330-4295                      USA

"Black Holes are where God divided by zero"



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