From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Crash building unicode2, NSTATICS too low, pure space overflow. Date: Thu, 03 Aug 2006 16:36:10 +0900 Message-ID: References: <44D19F77.4050904@swipnet.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1154590664 3711 80.91.229.2 (3 Aug 2006 07:37:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 3 Aug 2006 07:37:44 +0000 (UTC) Cc: emacs-unicode@gnu.org, duncanmak@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 03 09:37:40 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G8Xly-0006U5-MS for ged-emacs-devel@m.gmane.org; Thu, 03 Aug 2006 09:37:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8Xlw-0003CY-Ub for ged-emacs-devel@m.gmane.org; Thu, 03 Aug 2006 03:37:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G8Xli-0003Be-9x for emacs-devel@gnu.org; Thu, 03 Aug 2006 03:37:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G8Xlg-0003B6-0l for emacs-devel@gnu.org; Thu, 03 Aug 2006 03:37:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G8Xlf-0003B2-QU for emacs-devel@gnu.org; Thu, 03 Aug 2006 03:37:19 -0400 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G8Xos-00013a-B6; Thu, 03 Aug 2006 03:40:38 -0400 Original-Received: from smtp2.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k737b2fj013937; Thu, 3 Aug 2006 16:37:02 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id k737aw6C026627; Thu, 3 Aug 2006 16:36:58 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1G8XkY-0005Zr-00; Thu, 03 Aug 2006 16:36:10 +0900 Original-To: Jan =?ISO-8859-1?Q?Dj=E4rv?= In-reply-to: <44D19F77.4050904@swipnet.se> (message from Jan =?ISO-8859-1?Q?Dj=E4rv?= on Thu, 03 Aug 2006 09:02:15 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:58035 Archived-At: In article <44D19F77.4050904@swipnet.se>, Jan Dj=E4rv = writes: > Am I the only one that sees this: > `/bin/pwd`/temacs --batch --load loadup bootstrap > make[2]: *** [bootstrap-emacs] Avbruten (SIGABRT) > make[2]: Leaving directory `/home/jhd/src/emacs-unicode2/src' > make[1]: *** [bootstrap-build] Fel 2 > make[1]: Leaving directory `/home/jhd/src/emacs-unicode2' > make: *** [bootstrap] Fel 2 > It aborts here (alloc.c): > 4844 staticpro (varaddress) > 4845 Lisp_Object *varaddress; > 4846 { > 4847 staticvec[staticidx++] =3D varaddress; > 4848 if (staticidx >=3D NSTATICS) > 4849 abort (); > 4850 } I recently got the same bug report from Duncan . As I usually build Emacs without gtk, I didn't notice it. Without gtk and with enable-font-backend, staticidx reaches 1279! In HEAD, it reaches 1193. > If I increase NSTATICS to 1281 it does not abort. This is with GTK. Whe= n=20 > compiling with GTK an extra gtk-version-string is staticpro:ed, so compil= ing=20 > without GTK does not abort. I also get (GTK or non-GTK version): > emacs:0:Pure Lisp storage overflow (approx. 1211344 bytes needed) I don't see that in non-GKT version, though. The last step of dumping shows this message. Dumping under names emacs and emacs-23.0.0.6 1209872 pure bytes used > Is it OK to just increase NSTATICS a bit? Shouldn't staticvec be dynamic= ally=20 > allocated BTW? It was increased from 1026 to 1280 about 4 years ago. Perhaps there was a good reason for not chaning it to be allocated dynamically ... I'm not sure. 1026 is 0x402, 1280 is 0x500. What is the good value for NSTATICS this time; 0x600 or 0x602? --- Kenichi Handa handa@m17n.org