From: dflavia@gmail.com (Flavia)
Subject: Core dump when using standard iostream functions.
Date: 23 Mar 2005 04:11:12 -0800 [thread overview]
Message-ID: <1c339468.0503230411.3564c158@posting.google.com> (raw)
Hello,
I am using Compaq Tru64 UNIX V5.1B. I have written a sample program
that just writes to standard stream. However, executing this program
results in a core dump. Running dbx on the generated core showed that
the segmentation fault is at _ZNSo6sentryC1ERSo()
["ostream-inst.cc":6, 0x3ffbffd2250]. Below is the compiler version,
sample code and dbx output.
Version of g++
%g++ -v
Reading specs from /usr/local/gcc340/lib/gcc-lib/alphaev68-dec-osf5.1/3.2.3/specs
Configured with: ./configure --host=alphaev68-dec-osf5.1
--prefix=/usr/local/gcc340 --enable-languages=c,c++,f77,objc,ada
--enable-version-specific-runtime-libs --enable-shared --enable-libgcj
--with-gc=simple --enable-nls --enable-interpreter
Thread model: single
gcc version 3.2.3
My sample code:
#include <iostream>
int main()
{
std::cout << "Cout dumps core";
}
%
%
%
%g++ -g -Wall -o hellow hellow.cpp
%./hellow
Segmentation fault (core dumped)
%dbx ./hellow core
dbx version 5.1
Type 'help' for help.
Core file created by program "hellow"
signal Segmentation fault at [_ZNSo6sentryC1ERSo:6
+0x2050,0x3ffbffd2250] Source not available
(dbx) where
> 0 _ZNSo6sentryC1ERSo() ["ostream-inst.cc":6, 0x3ffbffd2250]
1 _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc()
["ostream-inst.cc":6, 0x3ffbffd2638]
2 main() ["hellow.cpp":6, 0x1200013b8]
(dbx) q
Any thoughts?
Thanks,
Flavia.
next reply other threads:[~2005-03-23 12:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-23 12:11 Flavia [this message]
2005-04-06 22:41 ` Core dump when using standard iostream functions Loic Domaigne
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox