From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mitchell, Paul" Newsgroups: gmane.emacs.bugs Subject: bug#1243: Verilog mode hanging emacs 22.2 Date: Mon, 27 Oct 2008 10:38:13 -0400 Message-ID: <049C4E48B10A854FB9D3B3C9DFAB506BC3D436@smarexmb1.amd.com> References: <049C4E48B10A854FB9D3B3C9DFAB506BC3D337@smarexmb1.amd.com><049C4E48B10A854FB9D3B3C9DFAB506BC3D3FF@smarexmb1.amd.com> Reply-To: "Mitchell, Paul" , 1243@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1225119081 30931 80.91.229.12 (27 Oct 2008 14:51:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2008 14:51:21 +0000 (UTC) Cc: 1243@emacsbugs.donarmstrong.com, bug-gnu-emacs@gnu.org, "Bilik, Scott" , Wilson Snyder To: "Stefan Monnier" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 27 15:52:12 2008 connect(): Connection refused Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KuTRm-0002bW-2X for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 15:51:58 +0100 Original-Received: from localhost ([127.0.0.1]:41110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuTQf-00014D-HJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Oct 2008 10:50:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuTQS-00010i-Ul for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:50:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuTQR-00010B-3P for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:50:36 -0400 Original-Received: from [199.232.76.173] (port=44187 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuTQQ-000102-UC for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:50:35 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48533) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KuTQP-00085d-8h for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:50:33 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9REo36Z028332; Mon, 27 Oct 2008 07:50:04 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9REj2lw027138; Mon, 27 Oct 2008 07:45:02 -0700 X-Loop: don@donarmstrong.com Resent-From: "Mitchell, Paul" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Mon, 27 Oct 2008 14:45:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1243 X-Emacs-PR-Package: emacs,verilog X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122511832825916 (code B ref -1); Mon, 27 Oct 2008 14:45:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 27 Oct 2008 14:38:48 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9REcj4a025905 for ; Mon, 27 Oct 2008 07:38:46 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KuTEy-0003Wa-Rh for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:38:44 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KuTEu-0003UE-JM for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:38:43 -0400 Original-Received: from [199.232.76.173] (port=47023 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KuTEu-0003UB-F9 for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:38:40 -0400 Original-Received: from outbound-wa4.frontbridge.com ([216.32.181.16]:30284 helo=WA4EHSOBE004.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1KuTEu-0004gy-9m for bug-gnu-emacs@gnu.org; Mon, 27 Oct 2008 10:38:40 -0400 Original-Received: from mail92-wa4-R.bigfish.com (10.8.14.254) by WA4EHSOBE004.bigfish.com (10.8.40.24) with Microsoft SMTP Server id 8.1.291.1; Mon, 27 Oct 2008 14:38:38 +0000 Original-Received: from mail92-wa4 (localhost.localdomain [127.0.0.1]) by mail92-wa4-R.bigfish.com (Postfix) with ESMTP id EA97811D8228; Mon, 27 Oct 2008 14:38:37 +0000 (UTC) X-BigFish: VPS-32(zz542N936eQ936fO9371PfecMzzzzz32i6bh43j61h) X-FB-SS: 5, Original-Received: by mail92-wa4 (MessageSwitch) id 1225118312806720_21779; Mon, 27 Oct 2008 14:38:32 +0000 (UCT) Original-Received: from svlb1extmailp02.amd.com (unknown [139.95.251.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail92-wa4.bigfish.com (Postfix) with ESMTP id AA364D6806E; Mon, 27 Oct 2008 14:38:32 +0000 (UTC) Original-Received: from svlb1twp02.amd.com ([139.95.250.35]) by svlb1extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id m9REcO1V009050; Mon, 27 Oct 2008 07:38:27 -0700 X-WSS-ID: 0K9EJBN-04-U55-01 Original-Received: from SSVLEXBH2.amd.com (ssvlexbh2.amd.com [139.95.53.183]) by svlb1twp02.amd.com (Tumbleweed MailGate 3.5.1) with ESMTP id 269AD1103BF; Mon, 27 Oct 2008 07:38:11 -0700 (PDT) Original-Received: from ssvlexmb2.amd.com ([139.95.53.7]) by SSVLEXBH2.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 27 Oct 2008 07:38:17 -0700 Original-Received: from storexbh1.amd.com ([10.1.1.17]) by ssvlexmb2.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 27 Oct 2008 07:38:17 -0700 Original-Received: from smarexmb1.amd.com ([10.130.150.21]) by storexbh1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 27 Oct 2008 10:38:15 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: bug#1243: Verilog mode hanging emacs 22.2 thread-index: Ack4Pza2YgKPlYntRU2G84J4r8jX8QAAgSsA X-OriginalArrivalTime: 27 Oct 2008 14:38:15.0254 (UTC) FILETIME=[A5356760:01C93841] X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 27 Oct 2008 10:50:36 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21943 Archived-At: Stefan, I ran this against my test case just now and emacs no longer hangs. I'm moving back to version 22, and will let you know if I see this again, but it seems fixed. Thanks for your help, Paul -----Original Message----- From: Stefan Monnier [mailto:monnier@iro.umontreal.ca]=20 Sent: Monday, October 27, 2008 10:21 AM To: Mitchell, Paul Cc: 1243@emacsbugs.donarmstrong.com; bug-gnu-emacs@gnu.org; Bilik, Scott; Wilson Snyder Subject: Re: bug#1243: Verilog mode hanging emacs 22.2 > I ran emacs under gdb, from within the src directory. I then edited the > file that exhibits this problem and did a few incremental searches. > This caused emacs to hang. I tried to break out of this from gdb using > ctrl-c, which killed emacs so that I could not use xbacktrace. Then, > from the gdb prompt I used: "handle SIGINT stop", got back to the hang, > and tried ctrl-c again. I now was able to use xbacktrace, and see this: > (gdb) xbacktrace > "re-search-backward" (0x86f1eeb) > "verilog-beg-of-defun" (0x87cfd85) > "byte-code" (0x8234d13) > "verilog-syntax-ppss" (0x831e8c9) > "verilog-skip-backward-comment-or-string" (0x8811595) > "verilog-beg-of-defun" (0x87cfd85) > "byte-code" (0x8234d13) > "verilog-syntax-ppss" (0x831e8c9) I believe the patch below will fix it. Wilson, WDYT? Stefan --- verilog-mode.el.~1.24.~ 2008-09-12 12:39:48.000000000 -0400 +++ verilog-mode.el 2008-10-27 10:18:58.000000000 -0400 @@ -2373,6 +2373,8 @@ ;; Fontify things in translate off regions '(verilog-match-translate-off (0 'verilog-font-lock-translate-off-face prepend)))))) + ;; FIXME: This XEmacs setting is redundant with the setting done later + ;; for Emacs (because XEmacs obeys's Emacs setting as well). (put 'verilog-mode 'font-lock-defaults '((verilog-font-lock-keywords verilog-font-lock-keywords-1 @@ -2560,10 +2562,17 @@ =20 ;; Stuff for GNU Emacs (set (make-local-variable 'font-lock-defaults) - '((verilog-font-lock-keywords verilog-font-lock-keywords-1 + `((verilog-font-lock-keywords verilog-font-lock-keywords-1 verilog-font-lock-keywords-2 verilog-font-lock-keywords-3) - nil nil nil verilog-beg-of-defun)) + nil nil nil + ,(if (functionp 'syntax-ppss) + ;; verilog-beg-of-defun uses syntax-ppss, and syntax-ppss uses + ;; font-lock-beginning-of-syntax-function, so + ;; font-lock-beginning-of-syntax-function, can't use + ;; verilog-beg-of-defun. + nil + verilog-beg-of-defun))) ;;------------------------------------------------------------ ;; now hook in 'verilog-colorize-include-files (eldo-mode.el&spice-mode.el) ;; all buffer local: