Subject: Re: bug#16587: 24.3.50; max-specpdl-size exceeded + crash with gnus (shr).

From: Lars Magne Ingebrigtsen <[email-masked]>
Date: Thu, 13 Nov 2014 22:13:22 +0100

Lars Magne Ingebrigtsen <[email-masked]> writes:

> Anyway, I still have no real idea as to how to handle this.  Do a
> stack-based "depth" investigation first to see how deep the DOM is, and
> then refuse to render it if it's too deep?

Anyway anyway, I just made it count how deeply it nests, and stops
descending when it's a tenth as deep as max-specpdl-size is, since that
seems about the correct amount.  (And it gives a warning.)

At least it doesn't bug out on the test message.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no