From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,5871ea3366729683,start X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!not-for-mail From: dflavia@gmail.com (Flavia) Newsgroups: comp.unix.tru64 Subject: Core dump when using standard iostream functions. Date: 23 Mar 2005 04:11:12 -0800 Organization: http://groups.google.com Message-ID: <1c339468.0503230411.3564c158@posting.google.com> NNTP-Posting-Host: 61.95.225.106 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1111579872 683 127.0.0.1 (23 Mar 2005 12:11:12 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 23 Mar 2005 12:11:12 +0000 (UTC) Xref: g2news1.google.com comp.unix.tru64:626 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 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.