From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: -1 <-1@0throot.com> Newsgroups: gmane.emacs.bugs Subject: bug#8821: 23.3; spins and eats up memory Date: Wed, 08 Jun 2011 16:26:18 +0530 Message-ID: <4DEF5552.5030109@0throot.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1307554085 25412 80.91.229.12 (8 Jun 2011 17:28:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2011 17:28:05 +0000 (UTC) To: 8821@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 08 19:28:01 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QUMXw-0001qy-Oz for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Jun 2011 19:28:01 +0200 Original-Received: from localhost ([::1]:60960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUMXv-0007Jl-D4 for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Jun 2011 13:27:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:43461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QULRI-0004mQ-Ea for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2011 12:17:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QULRH-0003Ml-3r for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2011 12:17:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QULRG-0003Mh-QH for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2011 12:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QULRG-0002zw-41; Wed, 08 Jun 2011 12:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: -1 <-1@0throot.com> Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Jun 2011 16:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8821 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.130754980211484 (code B ref -1); Wed, 08 Jun 2011 16:17:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 Jun 2011 16:16:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QULQu-0002zA-VX for submit@debbugs.gnu.org; Wed, 08 Jun 2011 12:16:41 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <-1@0throot.com>) id 1QUGPj-0003HC-QR for submit@debbugs.gnu.org; Wed, 08 Jun 2011 06:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <-1@0throot.com>) id 1QUGPc-0008CG-TV for submit@debbugs.gnu.org; Wed, 08 Jun 2011 06:55:02 -0400 Original-Received: from lists.gnu.org ([140.186.70.17]:59944) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <-1@0throot.com>) id 1QUGPc-0008C4-GY for submit@debbugs.gnu.org; Wed, 08 Jun 2011 06:55:00 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <-1@0throot.com>) id 1QUGPa-0004Z0-UA for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2011 06:55:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <-1@0throot.com>) id 1QUGPZ-0008BP-CX for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2011 06:54:58 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:63178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <-1@0throot.com>) id 1QUGPZ-0008B8-11 for bug-gnu-emacs@gnu.org; Wed, 08 Jun 2011 06:54:57 -0400 Original-Received: by pwi12 with SMTP id 12so226666pwi.0 for ; Wed, 08 Jun 2011 03:54:55 -0700 (PDT) Original-Received: by 10.142.63.7 with SMTP id l7mr118784wfa.172.1307530495026; Wed, 08 Jun 2011 03:54:55 -0700 (PDT) Original-Received: from lap.local ([117.193.245.201]) by mx.google.com with ESMTPS id x16sm491132wfc.22.2011.06.08.03.54.52 (version=SSLv3 cipher=OTHER); Wed, 08 Jun 2011 03:54:54 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Wed, 08 Jun 2011 12:16:40 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 08 Jun 2011 12:17:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Wed, 08 Jun 2011 12:23:26 -0400 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:47039 Archived-At: While using emacs in text mode (-nw) on my remote machine (over SSH), I lost connectivity. When I logged in later, I found that the emacs, which I had left in the background, was spinning and had consumed all of the memory. The following gives a basic idea, $ ps -opid,%cpu,%mem,rss,vsz,args -p `pgrep emacs` PID %CPU %MEM RSS VSZ COMMAND 31367 95.6 87.6 1807420 3138696 emacs I first encountered this problem in 23.1 and I was able to confirm it in 23.3 as well. Following is the looping strace output, $ strace -o /tmp/1 -p `pgrep emacs` $ grep -v gettimeofday /tmp/1 | sort | uniq brk(0xb7585000) = 0xb7564000 brk(0xb7589000) = 0xb7564000 ioctl(3, FIONREAD, [-1074857400]) = -1 EIO (Input/output error) ioctl(3, SNDCTL_TMR_STOP or TCSETSW, {B0 -opost -isig -icanon -echo ...}) = -1 EIO (Input/output error) ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbfef13a8) = -1 EIO (Input/output error) kill(31367, SIGHUP) = 0 mmap2(NULL, 1048576, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory) mmap2(NULL, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory) mmap2(NULL, 2097152, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = -1 ENOMEM (Cannot allocate memory) rt_sigprocmask(SIG_BLOCK, [IO], [HUP TERM IO], 8) = 0 write(3, "\7", 1) = -1 EIO (Input/output error) Following is the output from pstack, $ pstack `pgrep emacs` #1 0x00768e88 in mmap () from /lib/libc.so.6 #2 0x00701644 in new_heap () from /lib/libc.so.6 #3 0x00701e51 in arena_get2 () from /lib/libc.so.6 #4 0x007042c5 in malloc () from /lib/libc.so.6 #5 0x0816e843 in ?? () #6 0x0816f6c7 in ?? () #7 0x08185acb in ?? () #8 0x0813e7fe in ?? () #9 0x0813ec9d in ?? () #10 0x08141b13 in ?? () #11 0x08141b59 in ?? () #12 0x0807b0c0 in bind () #13 0x081a0616 in ?? () #14 0x081a2d3a in ?? () #15 0x08120ada in ?? () #16 0x08120c29 in ?? () #17 0x0818475c in ?? () #18 0x081208f5 in ?? () #19 0x08184821 in ?? () #20 0x08120971 in ?? () #21 0x08120d3b in ?? () #22 0x08120e62 in ?? () #23 0x081171fd in ?? () #24 0x006a8bb6 in __libc_start_main () from /lib/libc.so.6 #25 0x08054621 in bind () The following are the steps to reproduce the problem, 1. ssh localhost 2. emacs -nw 3. press CTRL-Z 4. press enter 5. disconnect by typing ~. 6. ps aux | grep emacs Additional details, $ uname -a Linux lap.local 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 i686 i386 GNU/Linux $ cat /etc/redhat-release Fedora release 12 (Constantine) Lemme know if you need further details. -- -1