* iostream??
@ 2003-07-01 18:17 Ali
2003-07-02 5:52 ` iostream?? Nikola Milutinovic
0 siblings, 1 reply; 4+ messages in thread
From: Ali @ 2003-07-01 18:17 UTC (permalink / raw)
Hi,
im using stl in a small testApp which linked against 2 libraries.
compiler: Compaq C++ V6.2-024 for Compaq Tru64 UNIX V5.1A (Rev. 1885)
flags: -g -gall -msg_quiet -using_std -D_ANSI_C_SOURCE....
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
Any Idea??????????????/
Ali
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iostream??
2003-07-01 18:17 iostream?? Ali
@ 2003-07-02 5:52 ` Nikola Milutinovic
2003-07-02 13:01 ` iostream?? Ali
0 siblings, 1 reply; 4+ messages in thread
From: Nikola Milutinovic @ 2003-07-02 5:52 UTC (permalink / raw)
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iostream??
2003-07-02 5:52 ` iostream?? Nikola Milutinovic
@ 2003-07-02 13:01 ` Ali
2003-07-05 11:06 ` iostream?? Ali
0 siblings, 1 reply; 4+ messages in thread
From: Ali @ 2003-07-02 13:01 UTC (permalink / raw)
"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;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: iostream??
2003-07-02 13:01 ` iostream?? Ali
@ 2003-07-05 11:06 ` Ali
0 siblings, 0 replies; 4+ messages in thread
From: Ali @ 2003-07-05 11:06 UTC (permalink / raw)
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',,.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-07-05 11:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` iostream?? Ali
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox