lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lynx-dev lynx2.8.5dev.13 - hangs


From: Leonid Pauzner
Subject: lynx-dev lynx2.8.5dev.13 - hangs
Date: Thu, 30 Jan 2003 06:46:52 +0300 (MSK)

> 2003-01-22 (2.8.5dev.13)

> * further optimization in HTAnchor.c - save 3 mallocs per HTChildAnchor by
>   using new HTList_ functions:  HTList_linkObject(), HTList_unlinkObject(),
>   HTList_unlinkLastObject() which utilize external memory, no malloc/free -LP

It turns out, that dev.13 now hangs in some circumstances
(it is easier to detect when lynx compiled with find_leaks -
just visit Lynx_user_guide.html and press reload a couple of times,
then try to exit).

Apparently, HTList_unlinkObject doing an infinite loop -
some node was relinked several times so the previous list chain
was corrupted.  (The real thing is the reloading with ^R
it deletes HText but *not* HTParentAnchor structure so all subanchores
will have several duplicates.)

Here a quick fix:


* HTList_linkObject now safe
* HTAnchor_link now link only foreign sources.


Attachment: htlist.dif
Description: Binary data

Attachment: htanchor.dif
Description: Binary data

Attachment: htdos.dif
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]