Discussion:
Failed assertion in Add_To_Back_Of_Thread_Queue
(too old to reply)
c***@CSIC.UMD.EDU
2005-03-09 18:02:22 UTC
Permalink
i'm getting a Failed
assertion error.

Failed assertion in
Add_To_Back_Of_Thread_Queue:
!Is_Member_Of_Thread_Queue(listPtr,
nodePtr) at
./include/geekos/kthread.h,
line 74, RA=103bf,
thread=0x0000e000


this is happening
during an attempt to
acquire a semaphore.
i believe it has
something to do with
my calling Wait (
threadqueue of the
semaphore ).

can anyone help me
out. i don't quite
understand assertion
errors.
Timothy Finley
2005-03-09 18:45:56 UTC
Permalink
Looking at the assertion message...

Failed assertion in Add_To_Back_Of_Thread_Queue:
!Is_Member_Of_Thread_Queue(listPtr, nodePtr) at
./include/geekos/kthread.h, line 74, RA=103bf, thread=0x0000e000

... Is_Member_Of_Thread_Queue is returning true (when it should be false).
That function checks to see if a specific item is contained in a list. So
you are adding an element to a list that already contains the element are
trying to add. Now why this is a bad thing, I'll let you think about that
one.

Tim
c***@CSIC.UMD.EDU
2005-03-10 16:11:55 UTC
Permalink
yea i figured it out. i was adding it to the queue long before it was supposed to
be in the queue. once i removed the line of code it started working almost
perfectly. thanks for the help.

William Francis Cladek
2005-03-10 05:52:45 UTC
Permalink
I was getting this one too, because I wasn't removing the
thread about to be run from its run queue. I think this was
in Get_Next_Runnable. Hope this helps.

Will
Continue reading on narkive:
Search results for 'Failed assertion in Add_To_Back_Of_Thread_Queue' (Questions and Answers)
271
replies
What proof do we have that God exists?
started 2015-04-20 07:35:53 UTC
religion & spirituality
Loading...