From: ali_g_hamad@hotmail.com (Ali)
Subject: Re: iostream??
Date: 5 Jul 2003 04:06:49 -0700 [thread overview]
Message-ID: <721ac515.0307050306.203aeb2d@posting.google.com> (raw)
In-Reply-To: 721ac515.0307020501.72d4b8ef@posting.google.com
ali_g_hamad@hotmail.com (Ali) wrote in message news:<721ac515.0307020501.72d4b8ef@posting.google.com>...
> "Nikola Milutinovic" <Nikola.Milutinovic@ev.co.yu> wrote in message news:<bdtrpk$smo$1@Mercury.ev.co.yu>...
> > > 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 [<opaque> __pthread_mutex_lock(...) 0x3ff805686b0]
> > >
> > > Information: An <opaque> 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;
> }
problem solved!
i have removed '__USE_STD_IOSTREAM',,.
prev parent reply other threads:[~2003-07-05 11:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-01 18:17 iostream?? Ali
2003-07-02 5:52 ` iostream?? Nikola Milutinovic
2003-07-02 13:01 ` iostream?? Ali
2003-07-05 11:06 ` Ali [this message]
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