From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Perryman Newsgroups: gmane.emacs.bugs Subject: bug#23842: 24.4; Runaway background process Date: Fri, 24 Jun 2016 15:08:50 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1466797351 12301 80.91.229.3 (24 Jun 2016 19:42:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2016 19:42:31 +0000 (UTC) To: 23842@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jun 24 21:42:21 2016 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 1bGWzb-00047b-64 for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 21:42:19 +0200 Original-Received: from localhost ([::1]:47052 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGWza-000088-61 for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Jun 2016 15:42:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGWzO-0008Vt-1a for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 15:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGWzK-0006K4-QC for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 15:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGWzK-0006Jz-Ir for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 15:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bGWzK-0005f3-Bh for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 15:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ian Perryman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Jun 2016 19:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23842 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146679728621710 (code B ref -1); Fri, 24 Jun 2016 19:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Jun 2016 19:41:26 +0000 Original-Received: from localhost ([127.0.0.1]:54647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGWyk-0005e6-7k for submit@debbugs.gnu.org; Fri, 24 Jun 2016 15:41:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGWTW-0004r1-T1 for submit@debbugs.gnu.org; Fri, 24 Jun 2016 15:09:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGWTQ-0006pd-1n for submit@debbugs.gnu.org; Fri, 24 Jun 2016 15:09:05 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGWTP-0006p5-Ue for submit@debbugs.gnu.org; Fri, 24 Jun 2016 15:09:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50505) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGWTM-000388-LZ for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 15:09:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGWTI-0006jj-7i for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 15:08:59 -0400 Original-Received: from mail-oi0-x262.google.com ([2607:f8b0:4003:c06::262]:34672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGWTH-0006jA-VU for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 15:08:56 -0400 Original-Received: by mail-oi0-x262.google.com with SMTP id t8so12685116oif.1 for ; Fri, 24 Jun 2016 12:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xtreme-eda-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=nV6CL06BlWogNUJDj2jP90Pkcqq7CuMoIElkZaE9ZQ4=; b=Dca0PmA8CiTKWGXaxDfDDmTgUAtAxYPrxVLpYsd5Y8bHQIyiCVoNgQheOS6GjJ3Ctr QvdoaizqNaSF9P+W0yQBHJloSaWmLN+KkD7+5kp/dyutF/L1qN6XxDrReOOdXNk6bQBe zw8tW/xnv80dXfj+ByoYMSZKhyjI6lH44Y4UJdM+4Hp0/7g7L5JD1lP+P0zdcrIzpso5 BxDbQg6YkxNK2jmthBpLTfRqNclCyh9VdU2OgAgO6lqAJm1pLxnlK1Xotmm3+vxqDLc3 cjYxyYa+sgrOfqGsk4FVmuVTXBAEfPSqHEZWmMP1vwMA23CM0i36TAi2OOiz1BWHUE9J xsDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=nV6CL06BlWogNUJDj2jP90Pkcqq7CuMoIElkZaE9ZQ4=; b=dcGSObcj7tTcd8pvW5WD9UFbOt7oN1qrUIvsOyboQg+zVT92jISujC9/FfKQnSczyS KX+Y4cg4Sp9HZ0+8x+Ky2hiB/x+QkBv4OnMMk/3xQERiWpGd03+arGkiJyQX895nk7rY j8C0Q+ZalfUQav6FAVPRp/AA6fW1U5CLfKY1XZxF0ZiP7Ea4HPIByf+ovPHfnKb8eLCi MkmYFTr6uteOGlmPdu55mTBZUSLYHjgLNoobj+fY8PC3OWeNMgf15AQI0uYFkdpIP5dF CRb6dpjNaHOiXAAbm9+dY43kCGcEtRKAw2fl98SNpfp3iFnkbLagPGXZ1v4UPRBh1Gms Tbww== X-Gm-Message-State: ALyK8tKM0Ub3Mk0BjmGAwnVhpdI/yK7MR8/q/itFE9eI9J4OvSF76gTBwe2RCOp3Q3gU7xP0yrbKLY8/8xMLJuf2ZpVam/JI X-Received: by 10.36.118.213 with SMTP id z204mr27481678itb.9.1466795334935; Fri, 24 Jun 2016 12:08:54 -0700 (PDT) Original-Received: from gate-02.c.xeda-compute-infrastructure.internal (71.65.197.104.bc.googleusercontent.com. [104.197.65.71]) by smtp-relay.gmail.com with ESMTPS id d187sm825240ith.4.2016.06.24.12.08.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jun 2016 12:08:54 -0700 (PDT) X-Relaying-Domain: xtreme-eda.com Original-Received: from desk-02.c.xeda-compute-infrastructure.internal ([10.240.0.6]) by gate-02.c.xeda-compute-infrastructure.internal with esmtp (Exim 4.84_2) (envelope-from ) id 1bGWTG-0004l2-NE for bug-gnu-emacs@gnu.org; Fri, 24 Jun 2016 15:08:54 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Fri, 24 Jun 2016 15:41:25 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:120016 Archived-At: In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.5) of 2015-03-07 on trouble, modified by Debian Windowing system distributor `The XFree86 Project, Inc', version 11.0.40300000 System Description: Debian GNU/Linux 8.2 (jessie) Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Verilog Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x C-f v e r m o C-g C-g C-x 1 C-n C-e M-? C-c C-c M-? C-g C-g C-g C-a M-x r e p o r t - b u Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Quit [2 times] Type SPC to continue editing. command-execute: The mark is not set now, so there is no region Debug on Quit enabled globally Type SPC to continue editing. Quit [3 times] Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils cus-start cus-load help-mode verilog-mode easymenu compile comint ansi-color ring diff time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 92747 8401) (symbols 48 20320 0) (miscs 40 51 199) (strings 32 16107 4632) (string-bytes 1 458706) (vectors 16 10684) (vector-slots 8 401945 6854) (floats 8 76 476) (intervals 56 254 0) (buffers 960 14) (heap 1024 46181 1524)) This version of Emacs came with You are using verilog-mode 2013-11-05-78e66ba-vpo The problem is reproducible as follows: Open a new buffer called "moo.sv" Paste this text into it without the tags: module moo.sv; ini Move point to the end of the second line. Ensure that verilog-mode is enabled. If it is not use "M-x verilog-mode" Press M-? This will open a buffer with possible completions ... there will only be one... "initial" Use mouse-1 to select it. This will cause the emacs session to start using 100% of the CPU (you should have a top session running separately to notice. However this process is a background process and normal editing can continue until the process uses up all available memory. I kill it quickly using "C-g". The expected behavior is that the "ini" is expanded to "inital" and editing continues with point after the word "initial". What happens is that the emacs process starts consuming 100% CPU, and eventually consume all the available memory in the background. The cursor is left at the end of line 2 after the word "ini". Here is a dribble file including the C-g. If you delete everything after the C-g, you will see the bad behavior. moo.svmodule moo;ini 0x800003f Another strange behavior is I tried to get a stack trace using C-g by enabling "Enter Debugger on Quit/C-g". When I press C-g, It does not end up going into the debugger, but the background process what ever it is, gets killed and CPU usage returns to normal, but no backtrace buffer is opened. Here is a trace of that (Again including the C-g): moo.svmodule moo;ini 0x800003f I have reported the issue to the folks who support the verilog-mode, and they have requested I open the bug with you. The bug is reported here http://www.veripool.org/issues/1070-Verilog-mode-Auto-completion-results-in-runaway-emacs-process-in-emacs-24-4-on-Debian-using-2016-04-23-5f6855e-vpo The emacs-mode I used in that report is newer than the one indicated here, but they exhibit the same issue. The version in this report is what comes bundled with this version of emacs, so I assumed it would be easier for you to reproduce. Thanks for your help. Ian Perryman