RSPlib Discussions

Text archives Help


Re: [RSPlib-Discusssion] fail-over problems


Chronological Thread 
  • From: Thomas Dreibholz <dreibh AT exp-math.uni-essen.de>
  • To: "Marjan Bozinovski" <marjanb AT cpk.auc.dk>, <rsplib-discussion AT sctp.de>
  • Subject: Re: [RSPlib-Discusssion] fail-over problems
  • Date: Wed Oct 9 12:57:01 2002
  • List-id: RSPlib Discussions <rsplib-discussion.sctp.de>
  • Organization: University of Essen, Institute for Experimental Mathematics

Add the following line to Condition::Condition() in condition.cc:
printf("Constructor: Condition %p (%s)\n",(void*)this,this->getName());
Add the following line to Condition::~Condition() in condition.cc:
printf("Destructor: Condition %p (%s)\n",(void*)this,this->getName());
Go to condition.cc, Condition::timedWait() and change the first line "result
=
pthread_cond_timedwait(&ConditionVariable,&Mutex,&timeout);"
to:
puts("TimeWait1...");
result = pthread_cond_timedwait(&ConditionVariable,&Mutex,&timeout);
puts("TimeWait1 ok");
. Change the second line of "result =
pthread_cond_timedwait(&ConditionVariable,&Mutex,&timeout)" to:
puts("TimeWait2...");
result = pthread_cond_timedwait(&ConditionVariable,&Mutex,&timeout);
puts("TimeWait2 ok");
Add "printf("Fired set to false for condition %p
(%s)\n",(void*)this,this->getName());" after "Fired = false;".

Now, recompile the sources and send me the output. Are you absolutely sure
that the thread settings (-D_REENTRANT -pthread) for the compiler are set for
all your files? What are your optimization options (e.g. -O2). Try to set
them to "-O0".

Can you reproduce the problem under Linux? If yes, go to
http://developer.kde.org/~sewardj/ and download the memory debugger Valgrind.
Then, check your program with the options "-v --leak-check=yes
--show-reachable=no --leak-resolution=high --num-callers=40" to ensure that
your program does not destroy structures of the sctplib, socket API or
rsplib.


Best regards
--
=======================================================================
Dipl.-Inform. Thomas Dreibholz

University of Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
-----------------------------------------------------------------------
E-Mail:
dreibh AT exp-math.uni-essen.de
Homepage: http://www.exp-math.uni-essen.de/~dreibh
=======================================================================





Archive powered by MHonArc 2.6.19+.

Top of page