[Bug target/55909] libtool test exposes what I think is some alignment issue in libstdc++

philip.copeland at oracle dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 9 09:07:00 GMT 2013


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

--- Comment #15 from philip.copeland at oracle dot com 2013-01-09 09:06:38 UTC ---
I've a fc17 x86_64 box in the backroom here that I'm going to generate a
comparison trace with

[root@ZenV tmp]# gdb a.out
(gdb) break ../../../../libstdc++-v3/libsupc++/eh_globals.cc:63
No symbol table is loaded.  Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) y

Breakpoint 1 (../../../../libstdc++-v3/libsupc++/eh_globals.cc:63) pending.
(gdb) run
Starting program: /tmp/a.out 
we are able to write to stderr

Breakpoint 1, __cxxabiv1::__cxa_get_globals ()
    at ../../../../libstdc++-v3/libsupc++/eh_globals.cc:63
63      { return get_global(); }
(gdb) where
#0  __cxxabiv1::__cxa_get_globals ()
    at ../../../../libstdc++-v3/libsupc++/eh_globals.cc:63
#1  0x000000354f25e0d9 in std::uncaught_exception ()
    at ../../../../libstdc++-v3/libsupc++/eh_catch.cc:136
#2  0x000000354f295a12 in ~sentry (this=0x7fffffffe360, 
    __in_chrg=<optimized out>)
    at
/usr/src/debug/gcc-4.7.2-20120921/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/ostream:429
#3  std::__ostream_insert<char, std::char_traits<char> > (__out=..., 
    __s=__s@entry=0x400870 "we are able to write to stderr\n", __n=31)
    at
/usr/src/debug/gcc-4.7.2-20120921/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/bits/ostream_insert.h:112
#4  0x000000354f295d8f in std::operator<< <std::char_traits<char> > (
    __out=..., __s=0x400870 "we are able to write to stderr\n")
    at
/usr/src/debug/gcc-4.7.2-20120921/obj-x86_64-redhat-linux/x86_64-redhat-linux/libstdc++-v3/include/ostream:533
#5  0x000000000040075f in main ()

(gdb) step
std::uncaught_exception ()
    at ../../../../libstdc++-v3/libsupc++/eh_catch.cc:137
137       return globals->uncaughtExceptions != 0;
(gdb) list
132
133     bool
134     std::uncaught_exception() throw()
135     {
136       __cxa_eh_globals *globals = __cxa_get_globals ();
137       return globals->uncaughtExceptions != 0;
138     }



More information about the Gcc-bugs mailing list