From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#16267: EWW fails for a page with: Lisp nesting exceeds `max-lisp-eval-depth' Date: Fri, 27 Dec 2013 09:17:14 +0000 Message-ID: <87wqiqr6ud.fsf_-_@violet.siamics.net> References: <87a9foskv4.fsf@violet.siamics.net> <87mwjoczle.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1388135888 22486 80.91.229.3 (27 Dec 2013 09:18:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 27 Dec 2013 09:18:08 +0000 (UTC) To: 16267@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 27 10:18:15 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VwTYd-0002lb-6c for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Dec 2013 10:18:15 +0100 Original-Received: from localhost ([::1]:48396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwTYc-0005Xj-LJ for geb-bug-gnu-emacs@m.gmane.org; Fri, 27 Dec 2013 04:18:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwTYV-0005Xd-G8 for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2013 04:18:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VwTYR-0003vR-2N for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2013 04:18:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VwTYQ-0003vK-PN for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2013 04:18:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VwTYQ-0006V4-Au for bug-gnu-emacs@gnu.org; Fri, 27 Dec 2013 04:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Dec 2013 09:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16267 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: submit@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138813585424932 (code B ref -1); Fri, 27 Dec 2013 09:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Dec 2013 09:17:34 +0000 Original-Received: from localhost ([127.0.0.1]:45342 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwTXu-0006Tx-9W for submit@debbugs.gnu.org; Fri, 27 Dec 2013 04:17:33 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:57064) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwTXo-0006Te-Oo for submit@debbugs.gnu.org; Fri, 27 Dec 2013 04:17:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=YtHFZdEXC43112LQA47BhD18u1MJKt/VP62JAcI5S0g=; b=lIjs57f3kzvC62NDRvMJqeKls4SKLkmRYImCZX6/Xy4gEelqa7+Adnkqm2cewyUqJcviiE4hZ9HU7CqguUnChtmcxV9D0ILCpUyfL8MHhNIkpHnHx9Vg0MxWm4IvEerkUdN2/pjJnkY/qFoRIGdOkGKWD7myni4NKLpch3aoOeM=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1VwTXm-0001ww-GF for submit@debbugs.gnu.org; Fri, 27 Dec 2013 09:17:23 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VwTXe-0008QV-Uw for submit@debbugs.gnu.org; Fri, 27 Dec 2013 16:17:15 +0700 In-Reply-To: <87mwjoczle.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Wed, 25 Dec 2013 23:53:01 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82651 Archived-At: Package: emacs Severity: minor >>>>> Lars Ingebrigtsen writes: >>>>> Ivan Shmakov writes: >> As of 84b50168 [1], running EWW on [2] still results in what seem to >> be an infinite loop over shr-find-fill-point. The top of the >> *Backtrace* reads: > I've applied something that I think should fix this. I=E2=80=99ve updated both shr.el and eww.el to 80d59dcc [1], and EWW now fails with the following for the page [2]. (I don=E2=80=99t know whether it=E2=80=99s a side effect of the changes made to fix #16256, or an entirely different bug.) error in process filter: let*: Lisp nesting exceeds `max-lisp-eval-depth' error in process filter: Lisp nesting exceeds `max-lisp-eval-depth' However, raising max-lisp-eval-depth to 640 from the default value of 600 makes the problem go away for this page. The top of the *Backtrace* reads: Debugger entered--Lisp error: (error "Lisp nesting exceeds `max-lisp-eval-d= epth'") (progn (if (string-match "\n" style) (progn (setq style (replace-match " = " t t style))))) (unwind-protect (progn (if (string-match "\n" style) (progn (setq style (= replace-match " " t t style))))) (set-match-data save-match-data-internal (= quote evaporate))) (let ((save-match-data-internal (match-data))) (unwind-protect (progn (if= (string-match "\n" style) (progn (setq style (replace-match " " t t style)= )))) (set-match-data save-match-data-internal (quote evaporate)))) (progn (let ((save-match-data-internal (match-data))) (unwind-protect (pr= ogn (if (string-match "\n" style) (progn (setq style (replace-match " " t t= style))))) (set-match-data save-match-data-internal (quote evaporate)))) (= let ((plist nil)) (let ((--dolist-tail-- (split-string style ";")) elem) (w= hile --dolist-tail-- (setq elem (car --dolist-tail--)) (if elem (progn (set= q elem (split-string elem ":")) (if (and ... ...) (progn ...)))) (setq --do= list-tail-- (cdr --dolist-tail--)))) plist)) (if style (progn (let ((save-match-data-internal (match-data))) (unwind-p= rotect (progn (if (string-match "\n" style) (progn (setq style ...)))) (set= -match-data save-match-data-internal (quote evaporate)))) (let ((plist nil)= ) (let ((--dolist-tail-- (split-string style ";")) elem) (while --dolist-ta= il-- (setq elem (car --dolist-tail--)) (if elem (progn (setq elem ...) (if = ... ...))) (setq --dolist-tail-- (cdr --dolist-tail--)))) plist))) shr-parse-style("color:lightgray; font-size:0.8em;font-variant:small-caps= ;") (nconc (shr-parse-style style) shr-stylesheet) (setq shr-stylesheet (nconc (shr-parse-style style) shr-stylesheet)) (if (string-match "color\\|display\\|border-collapse" style) (setq shr-st= ylesheet (nconc (shr-parse-style style) shr-stylesheet)) (setq style nil)) (progn (if (string-match "color\\|display\\|border-collapse" style) (setq= shr-stylesheet (nconc (shr-parse-style style) shr-stylesheet)) (setq style= nil))) (if style (progn (if (string-match "color\\|display\\|border-collapse" st= yle) (setq shr-stylesheet (nconc (shr-parse-style style) shr-stylesheet)) (= setq style nil)))) (let ((function (or (cdr (assq (car dom) shr-external-rendering-functions= )) (intern (concat "shr-tag-" (symbol-name (car dom))) obarray))) (style (c= dr (assq :style (cdr dom)))) (shr-stylesheet shr-stylesheet) (start (point)= )) (if style (progn (if (string-match "color\\|display\\|border-collapse" s= tyle) (setq shr-stylesheet (nconc (shr-parse-style style) shr-stylesheet)) = (setq style nil)))) (if (equal (cdr (assq (quote display) shr-stylesheet)) = "none") nil (if (fboundp function) (funcall function (cdr dom)) (shr-generi= c (cdr dom))) (if (and shr-target-id (equal (cdr (assq :id (cdr dom))) shr-= target-id)) (progn (put-text-property start (1+ start) (quote shr-target-id= ) shr-target-id))) (if style (progn (shr-colorize-region start (point) (cdr= (assq (quote color) shr-stylesheet)) (cdr (assq (quote background-color) s= hr-stylesheet))))))) [1] http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=3D80d59dcc [2] https://ru.wikiversity.org/w/index.php?oldid=3D96679 --=20 FSF associate member #7257