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



--- Comment #14 from philip.copeland at oracle dot com 2013-01-09 08:27:19 UTC 
---

Smallest test case program



#include <iostream>

int main()

{

    std::cerr << "we are able to write to stderr\n";

}



bash-4.2# g++ test.c

bash-4.2# ./a.out

we are able to write to stderr

Segmentation fault (core dumped)







#0  0xfffff8010030a558 in __frame_dummy_init_array_entry ()

   from /lib64/libstdc++.so.6

#1  0xfffff80100180988 in __cxxabiv1::__cxa_get_globals ()

    at ../../../../libstdc++-v3/libsupc++/eh_globals.cc:63

#2  0xfffff801001807cc in std::uncaught_exception ()

    at ../../../../libstdc++-v3/libsupc++/eh_catch.cc:136

#3  0xfffff801001bcbe4 in ~sentry (this=0x7fefffff0b0, 

    __in_chrg=<optimized out>)

    at

/usr/src/debug/gcc-4.7.2-20121109/obj-sparc64-redhat-linux/sparc64-redhat-linux/libstdc++-v3/include/ostream:429

#4  std::__ostream_insert<char, std::char_traits<char> > (__out=..., 

    __s=__s@entry=0x100a00 "we are able to write to stderr\n", 

    __n=<optimized out>)

    at

/usr/src/debug/gcc-4.7.2-20121109/obj-sparc64-redhat-linux/sparc64-redhat-linux/libstdc++-v3/include/bits/ostream_insert.h:112

#5  0xfffff801001bcfc4 in std::operator<< <std::char_traits<char> > (

    __out=..., __s=0x100a00 "we are able to write to stderr\n")

    at

/usr/src/debug/gcc-4.7.2-20121109/obj-sparc64-redhat-linux/sparc64-redhat-linux/libstdc++-v3/include/ostream:533

#6  0x000000000010087c in main ()

Reply via email to