From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#3208: 23.0.93; Memory full / crash when displaying lots of characters from a large font (like Arial Unicode or Code2000) which is not explicitly selected (on Win32) Date: Wed, 06 May 2009 19:11:57 -0400 Message-ID: <87iqkdj076.fsf@cyd.mit.edu> Reply-To: Chong Yidong , 3208@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241652739 13575 80.91.229.12 (6 May 2009 23:32:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 May 2009 23:32:19 +0000 (UTC) Cc: Michael Schierl , 3208@emacsbugs.donarmstrong.com To: Jason Rumney Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 07 01:32:09 2009 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 1M1qat-0002Ms-CK for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2009 01:32:07 +0200 Original-Received: from localhost ([127.0.0.1]:39629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1qas-00077v-Rm for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 May 2009 19:32:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1qan-00075J-J7 for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 19:32:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1qaj-000707-RM for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 19:32:01 -0400 Original-Received: from [199.232.76.173] (port=34669 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1qaj-0006zv-Ms for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 19:31:57 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52520) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1qai-0003HG-Tp for bug-gnu-emacs@gnu.org; Wed, 06 May 2009 19:31:57 -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 n46NVrYb009564; Wed, 6 May 2009 16:31:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n46NK6q4005781; Wed, 6 May 2009 16:20:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 06 May 2009 23:20:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3208 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3208-submit@emacsbugs.donarmstrong.com id=B3208.12416515124114 (code B ref 3208); Wed, 06 May 2009 23:20:06 +0000 Original-Received: (at 3208) by emacsbugs.donarmstrong.com; 6 May 2009 23:11:52 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n46NBngd004106 for <3208@emacsbugs.donarmstrong.com>; Wed, 6 May 2009 16:11:50 -0700 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 9B83957E25C; Wed, 6 May 2009 19:11:57 -0400 (EDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 06 May 2009 19:32:01 -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:27755 Archived-At: > I can reproduce this. The malloc warnings always seem to occur in the > SAFE_ALLOCA call in font_sort_entities. The vec passed in to that > function contains all the fonts on my system, and len is over 3000, > requiring 24kB to be allocated. FWIW, I can't reproduce this on GNU/Linux. My default font is DejaVu Sans Mono, and I tried following the recipe by inserting 0x2203 (which displays in Kochi Gothic) repeatedly, and moving to the beginning and to the end of the buffer repeatedly. font_sort_entities is called a few times initially when I insert 0x2203, but it is not called repeatedly thereafter. Could you try to debug why font_sort_entities is called repeatedly in your case?