RSPlib Discussions

Text archives Help


Re: [RSPlib-Discusssion] fail-over problems


Chronological Thread 
  • From: "Marjan Bozinovski" <marjanb AT cpk.auc.dk>
  • To: "Thomas Dreibholz" <dreibh AT exp-math.uni-essen.de>, <rsplib-discussion AT sctp.de>
  • Subject: Re: [RSPlib-Discusssion] fail-over problems
  • Date: Mon Oct 7 15:47:00 2002
  • List-id: RSPlib Discussions <rsplib-discussion.sctp.de>

> The parent condition seems to be added successfully, but it is not found
by
> Condition::broadcast(). Either, the condition is wrong (some FD numbering
> problem?) or the ParentSet structure is corrupted.
>
> Go to condition.cc, Condition::broadcast() and add the following;
> Fired = true;
> // ------ Add this
> printf("broadcast for %p (%s)\n",(void*)this,this->getName());
> // ------
> pthread_cond_broadcast(&ConditionVariable);

This is the last output:

------------
adding parent 0xbfbfb28c (ext_select::GlobalCondition) to 0xbfbfb3a8

(ext_select::ReadCondition)adding parent 0xbfbfb28c
(ext_select::GlobalCondition) to 0xbfbfb4c4

(ext_select::WriteCondition)adding parent 0xbfbfb28c
(ext_select::GlobalCondition) to 0xbfbfb5e0

(ext_select::ExceptCondition)select: adding FD 0 (0) with mask $0003

select: registering user callback for socket 0...

adding parent 0xbfbfb3a8 (ext_select::ReadCondition) to 0x80ef208

(Condition)Sending Break via break pipe...

F0008: User Callback, mask=$1

Break via break pipe received

Break Pipe: 1 calls

select: adding FD 1020 for read

Condition for FD 1020, type 0 is 0x8479480

adding parent 0xbfbfb3a8 (ext_select::ReadCondition) to 0x8479480

(SCTPAssociation::ReadUpdateCondition)select: adding FD 1021 for read

Condition for FD 1021, type 0 is 0x848d480

adding parent 0xbfbfb3a8 (ext_select::ReadCondition) to 0x848d480

(SCTPAssociation::ReadUpdateCondition)select: adding FD 1021 for except

Condition for FD 1021, type 2 is 0x848d6b8

adding parent 0xbfbfb5e0 (ext_select::ExceptCondition) to 0x848d6b8

(SCTPAssociation::ExceptUpdateCondition)select: waiting...

A0003 S00: Data Arrive Notification, Length = 392

broadcast for 0x8479010 (SCTPAssociation::InQueue)

broadcast: SCTPAssociation::InQueue

broadcast for 0x8479480 (SCTPAssociation::ReadUpdateCondition)

broadcast: SCTPAssociation::ReadUpdateCondition

No parents!

select: wake-up

Condition 0 (Type 1020, FD 134881851) not fired

removing parent 0xbfbfb3a8 (ext_select::ReadCondition) to 0x8479480

(SCTPAssociation::ReadUpdateCondition)Condition 0 (Type 1021, FD 134881851)
not fired

removing parent 0xbfbfb3a8 (ext_select::ReadCondition) to 0x848d480

(SCTPAssociation::ReadUpdateCondition)Condition 2 (Type 1021, FD 134881851)
not fired

removing parent 0xbfbfb5e0 (ext_select::ExceptCondition) to 0x848d6b8

(SCTPAssociation::ExceptUpdateCondition)

result = 0

Active shutdown of association #3 started...

Active shutdown of association #3 complete!

Unbinding...Unbind complete.

Active shutdown of association #1 started...

Active shutdown of association #1 complete!

Unbinding...Unbind complete.

A0001: Communication Lost Notification, Status=1

A0003: Communication Lost Notification, Status=1

Active shutdown of association #3 started...

Active shutdown of association #3 complete!

Unbinding...Unbind complete.

Active shutdown of association #1 started...

Active shutdown of association #1 complete!

Unbinding...Unbind complete.

A0001: Communication Lost Notification, Status=1

A0003: Communication Lost Notification, Status=1

-----------------------

>
> Have you ensured that all the sources are compiled with -D_REENTRANT and
> - -pthread option?

Yes, all sources are compiled with the options:
"-D_REENTRANT -D_THREAD_SAFE -pthread"

Regards,
Marjan





Archive powered by MHonArc 2.6.19+.

Top of page