edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
* [Edbrowse-dev] Finding cycles in the tree
@ 2017-01-27  2:19 Karl Dahlke
  2017-01-27  6:29 ` Kevin Carhart
  2017-01-27  6:37 ` Kevin Carhart
  0 siblings, 2 replies; 5+ messages in thread
From: Karl Dahlke @ 2017-01-27  2:19 UTC (permalink / raw)
  To: Edbrowse-dev

[-- Attachment #1: Type: text/plain, Size: 1584 bytes --]

A few words about the last push.
Of late we've been seeing more seg faults, very difficult to track down, seeming to involve infinite recursion.
The latest is from this website.
https://www.washingtonpost.com/news/josh-rogin/wp/2017/01/26/the-state-departments-entire-senior-management-team-just-resigned
Without my last push, it waits for a while, until some stack blows up, then seg faults.
The problem is that a node that is already in the tree is being linked to another node in the tree.
The next traversal goes on forever.
So now, when I link A into B, if A has a parent, i.e. A is already in the tree, I give an explanation at db3, and don't make the link.
That fixes the seg fault, and probably the seg fault in other sites.
This leaves some questions however - why is the js trying to do that?
Is it a mistake cause by our imperfect DOM, or did an earlier routine fail and if that had completed then this link would make more sense?
Or is that what is suppose to happen, and I'm suppose to unlink it from its current location and then link it to the new location?
Is there in implicit remove before the link?
I don't know.
Anyways, with this push, the aforementioned website, at debug 3, gives this message.

linkage cycle, cannot link div 1414 into body 198 before div 203, as the child already has parent div 203
Aborting the link, some data may not be rendered.

The push also adds more information at db4, so we can debug, and answer some of the above questions.
You get the edbrowse tree of nodes, and each dynamic link as it is made

Karl Dahlke

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-29  2:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-27  2:19 [Edbrowse-dev] Finding cycles in the tree Karl Dahlke
2017-01-27  6:29 ` Kevin Carhart
2017-01-27  6:37 ` Kevin Carhart
2017-01-27 10:09   ` Karl Dahlke
2017-01-29  2:24     ` Kevin Carhart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).