From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,6bec00dc07758598 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-07-02 06:01:18 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: ali_g_hamad@hotmail.com (Ali) Newsgroups: comp.unix.tru64 Subject: Re: iostream?? Date: 2 Jul 2003 06:01:17 -0700 Organization: http://groups.google.com/ Message-ID: <721ac515.0307020501.72d4b8ef@posting.google.com> References: <721ac515.0307011017.560e53b4@posting.google.com> NNTP-Posting-Host: 62.245.201.211 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1057150878 20375 127.0.0.1 (2 Jul 2003 13:01:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 2 Jul 2003 13:01:18 GMT Xref: archiver1.google.com comp.unix.tru64:10143 "Nikola Milutinovic" wrote in message news:... > > ThHe problem is: > > Whenever i use iostream in a cpp file in one of the librearies > > i got this: > > > > Thread received signal SEGV > > stopped at [ __pthread_mutex_lock(...) 0x3ff805686b0] > > > > Information: An type was presented during execution of the > > previous command. For complete type information on this symbol, > > recompilation of the program will be necessary. Consult the compiler > > man pages for details on producing full symbol table information using > > the '-g' (and '-gall' for cxx) flags. > > > > (ladebug) up > > >1 0x3ff8013ac30 in __tis_mutex_lock(...) in /shlib/libc.so (ladebug) up > > >2 0x3ff8013b530 in __cma_tis_mutex_lock(...) in /shlib/libc.so > > >3 0x3ff802e150c in __cxx_mutex_lock(...) in /shlib/libcxx.so > > >4 0x12003e624 in UnknownProcedure34FromFile273(...) in TestApp (ladebug) > up > > >5 0x12003d930 in Init(...) in TestApp > > >6 0x3ffbffe1858 in __init_sti__cxxl_std_init_cpp_65f45f2a(...) in > myLib.so > > >7 0x3ffbfffbbd8 in myLib.so > > >8 0x3ff800068e0 > > Are you doing multithreading? Are you linking against reeantrant libraries? > There were issues with "printf()" (I know, this "iostream") and locking > (done internally, by the "printf()") in a multi-threaded application. > > Nix. Hi, No multithreading, No reantrant. This is an example: library 1 consists of class A class A { ... static void printMsg( const string& msg ){ cout << msg ;} } library 2 consists of class B class_b.h class B { ... int set(); } class_b.cpp int B::set() { A::printMsg( string("B::set()") ); //core dump return 0; } test.cpp int main(...) { A::printMsg( string("main...") ); return 0; }