From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12196: 24.1.50; setting cache-long-line-scans to non-nil freezes Emacs Date: Wed, 15 Aug 2012 19:36:05 +0300 Message-ID: <834no4jeoa.fsf@gnu.org> References: <87has6ysxn.fsf@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1345048644 21383 80.91.229.3 (15 Aug 2012 16:37:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Aug 2012 16:37:24 +0000 (UTC) Cc: 12196@debbugs.gnu.org To: michael_heerdegen@web.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 15 18:37:24 2012 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 1T1gax-0006DX-0k for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 18:37:23 +0200 Original-Received: from localhost ([::1]:50779 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1gaw-0001Kv-03 for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Aug 2012 12:37:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1gas-0001F2-Ty for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 12:37:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1gar-0002ae-Vq for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 12:37:18 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1gar-0002aa-Sh for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 12:37:17 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1T1gjK-0007aK-1I for bug-gnu-emacs@gnu.org; Wed, 15 Aug 2012 12:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Aug 2012 16:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12196 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12196-submit@debbugs.gnu.org id=B12196.134504910628992 (code B ref 12196); Wed, 15 Aug 2012 16:46:01 +0000 Original-Received: (at 12196) by debbugs.gnu.org; 15 Aug 2012 16:45:06 +0000 Original-Received: from localhost ([127.0.0.1]:59369 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1giO-0007XW-52 for submit@debbugs.gnu.org; Wed, 15 Aug 2012 12:45:06 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:59332) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1T1giK-0007WI-VL for 12196@debbugs.gnu.org; Wed, 15 Aug 2012 12:45:02 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M8T00L0022GR400@a-mtaout23.012.net.il> for 12196@debbugs.gnu.org; Wed, 15 Aug 2012 19:36:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8T00LLT23ZQ510@a-mtaout23.012.net.il>; Wed, 15 Aug 2012 19:35:59 +0300 (IDT) In-reply-to: <87has6ysxn.fsf@web.de> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:63198 Archived-At: > Date: Tue, 14 Aug 2012 06:54:28 +0200 > From: Michael Heerdegen > > I recently found this variable in the manual: `cache-long-line-scans'. > > However, nearly every time I set it to a non-nil value, Emacs instantly > freezes, C-g has no more effect. For me, it didn't freeze, it simply announced that memory was exhausted and I should exit and restart Emacs. Under a debugger I saw that the region cache code tried to allocate some ridiculously large chunk of memory, like 1.6 GB. This happened because some changes about a year ago modified the memory allocation for the cache in a way that made the cache data structure and the memory it allocated inconsistent. So the cache became confused and tried to allocate more and more memory. Should be fixed now (revision 109631 on the trunk), please test.