public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* incompatibility between glibc and libgcc ?!
@ 2013-02-19 12:19 Mahmood Naderan
  0 siblings, 0 replies; only message in thread
From: Mahmood Naderan @ 2013-02-19 12:19 UTC (permalink / raw)
  To: gcc

Hello,
I there any consideration about the following crash. I am using Scientific Linux 6.3.
I have stuck at this point because I am not able to use fstream.


#include <fstream>
using namespace std;
int main()
{
   ofstream fout ("test.txt", fstream::out);
   return 0;
}

[mahmood@localhost ~]$ /opt/gcc-4.1.2-built/bin/g++ -g -ggdb -o test test.cpp 
[mahmood@localhost ~]$ gdb test
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-56.el6)
Copyright (C) 2010 Free Software Foundation, Inc.
...
Reading symbols from /home/mahmood/test...done.
(gdb) r
Starting program: /home/mahmood/test 

Program received signal SIGSEGV, Segmentation fault.
0x00000037e26f22d0 in ?? () from /usr/lib64/libstdc++.so.6
Missing
 separate debuginfos, use: debuginfo-install 
glibc-2.12-1.80.el6_3.5.x86_64 libgcc-4.4.6-4.el6.x86_64 
libstdc++-4.4.6-4.el6.x86_64
(gdb) bt
#0  0x00000037e26f22d0 in ?? () from /usr/lib64/libstdc++.so.6
#1  0x0000000000000000 in ?? ()
(gdb) 





 
Regards,
Mahmood

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-19 12:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-19 12:19 incompatibility between glibc and libgcc ?! Mahmood Naderan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).