[Live-devel] Segmentation fault in DelayQueue::removeEntry(DelayQueueEntry*)

Ross Finlayson finlayson at live555.com
Fri Nov 4 14:35:54 PDT 2011


> Is it possible that entry->fPrev is null?

No, I don't think so, because the delay queue is maintained as a doubly-linked list, and delay queue entries are initialized with their "fNext" and "fPrev" links both pointing to themself.  The only place where "fPrev" is set to NULL is at line 159 (quoted earlier), which we do to protect against attempting to remove the same entry more than once.  But at that same line, we also set "fNext" to NULL, so the test at line 154 will catch that.

I'm fairly sure that Francisco's crash was a side effect of attempting to access an object that had already been deleted.  That's why I asked him to make sure that he had stopped his periodic "GET_PARAMETER" request once the stream had ended.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111104/25ec795b/attachment.html>


More information about the live-devel mailing list