This is the mail archive of the gcc-patches@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]

Re: g++-mike-eh8-C test failure


> But all calls to eh_context_static should be through other functions in
> libgcc which are not static, like __get_eh_info.  Can you do backtraces so
> we can see where the two copies are being called from?

Here are the details:

(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
warning: Temporarily disabling shared library breakpoints:
warning: breakpoint #2

Starting program: /xxx/gnu/gcc-2.95.3-1/objdir/gcc/testsuite/g++-mike-eh8-C
warning: Unable to find __d_pid symbol in object file.
warning: Suggest linking with /opt/langtools/lib/end.o.
warning: GDB will be unable to track shl_load/shl_unload calls

Breakpoint 4, 0xd808 in eh_context_static ()
(gdb) bt
#0  0xd808 in eh_context_static ()
#1  0xd8c8 in __get_eh_context ()
#2  0x4960 in main ()
    at /xxx/gnu/gcc-2.95.3-1/gcc/testsuite/g++.old-deja/g++.mike/eh8.C:8
#3  0x7af1e6bc in ?? () from /usr/lib/libc.1
(gdb) c
Continuing.

Breakpoint 4, 0xd808 in eh_context_static ()
(gdb) bt
#0  0xd808 in eh_context_static ()
#1  0x7ae96390 in int type_info function ()
   from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.3/libstdc++.sl
#2  0x4ab8 in main ()
    at /xxx/gnu/gcc-2.95.3-1/gcc/testsuite/g++.old-deja/g++.mike/eh8.C:11
#3  0x7af1e6bc in ?? () from /usr/lib/libc.1
(gdb) c
Continuing.

Breakpoint 4, 0xd808 in eh_context_static ()
(gdb) bt
#0  0xd808 in eh_context_static ()
#1  0x108bc in __cp_push_exception (value=0x40003be8, type=0x400013e4,
    cleanup=0)
#2  0x4ad0 in main ()
    at /xxx/gnu/gcc-2.95.3-1/gcc/testsuite/g++.old-deja/g++.mike/eh8.C:11
#3  0x7af1e6bc in ?? () from /usr/lib/libc.1
(gdb) c
Continuing.

Breakpoint 4, 0xd808 in eh_context_static ()
(gdb) bt
#0  0xd808 in eh_context_static ()
(gdb) c
Continuing.

Breakpoint 2, 0x7ae8fbe0 in eh_context_static ()
   from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.3/libstdc++.sl
(gdb) bt
#0  0x7ae8fbe0 in eh_context_static ()
   from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.3/libstdc++.sl
#1  0x7ae8fe00 in __eh_rtime_match (rtime=0x400017b2)
    from /usr/local/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.3/libstdc++.sl
#2  0x4b50 in main ()
    at /xxx/gnu/gcc-2.95.3-1/gcc/testsuite/g++.old-deja/g++.mike/eh8.C:19
#3  0x7af1e6bc in ?? () from /usr/lib/libc.1

The following command generates an app which faults:

gcc -fexceptions eh8.C -lstdc++ -lm -o eh8

If I add -lgcc before -lstdc++ in the above, the resulting app doesn't
fault.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)

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