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: Emacs aborts during byte-compilation from Dired Date: Thu, 22 Feb 2007 20:44:23 +0900 Message-ID: References: <877iuablng.fsf@pacem.orebokech.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1172144692 31810 80.91.229.12 (22 Feb 2007 11:44:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Feb 2007 11:44:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: Romain Francoise Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 22 12:44:45 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HKCNR-0008Sv-0K for ged-emacs-devel@m.gmane.org; Thu, 22 Feb 2007 12:44:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKCNQ-00016C-NG for ged-emacs-devel@m.gmane.org; Thu, 22 Feb 2007 06:44:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HKCNF-000167-Qd for emacs-devel@gnu.org; Thu, 22 Feb 2007 06:44:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HKCND-00015v-9t for emacs-devel@gnu.org; Thu, 22 Feb 2007 06:44:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HKCND-00015s-4l for emacs-devel@gnu.org; Thu, 22 Feb 2007 06:44:31 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HKCNC-0005w4-EM for emacs-devel@gnu.org; Thu, 22 Feb 2007 06:44:30 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id l1MBiOEV022170; Thu, 22 Feb 2007 20:44:24 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id l1MBiNHh005356; Thu, 22 Feb 2007 20:44:24 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id l1MBiNBw004029; Thu, 22 Feb 2007 20:44:23 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.63) (envelope-from ) id 1HKCN4-0005gq-Vi; Thu, 22 Feb 2007 20:44:23 +0900 In-reply-to: <877iuablng.fsf@pacem.orebokech.com> (message from Romain Francoise on Thu, 22 Feb 2007 10:13:07 +0100) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.93 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) X-detected-kernel: Solaris 8 (1) 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:66609 Archived-At: In article <877iuablng.fsf@pacem.orebokech.com>, Romain Francoise writes: > I received this report from a Debian user: > | The latest emacs-snapshot aborts if I try to compile Fontifier.el > | from the mozart package. > | > | I am compiling it from dired (typing B on the line with Fontifier.el): > The file is attached to this message. > I can reproduce this bug with current CVS: > #0 abort () at emacs.c:431 > #1 0x082050dc in get_property_and_range (pos=0, prop=138093161, > val=0xafa52360, start=0xafa5235c, end=0xafa52358, object=137922809) > at intervals.c:2321 I've just tried with the latest CVS HEAD code and met this strange error. At first, I tried to byte-compile Fontifier.el by: M-x byte-compile-file RET ~/Fontifier.el RET then, Emacs signals this error: Symbol's value as variable is void: t Next, I run Emacs under gdb (by M-x gdb), typed C-c C-z to interrupt it, and then: (gdb) p Qt $1 = 137939193 (gdb) xsymbol $2 = (struct Lisp_Symbol *) 0x838c8f8 "t" (gdb) p *$2 $3 = { gcmarkbit = 0, indirect_variable = 0, constant = 1, interned = 2, xname = 136507507, value = 137939193, function = 137939169, plist = 138484157, next = 0x0 } (gdb) watch ((struct Lisp_Symbol *) 0x838c8f8)->value Hardware watchpoint 4: ((struct Lisp_Symbol *) 137939192)->value (gdb) c Continuing. then, did this in Emacs: M-x byte-compile-file RET ~/Fontifier.el RET then, Emacs stopped as below: Hardware watchpoint 4: ((struct Lisp_Symbol *) 137939192)->value Old value = 137939193 New value = 144315101 print_preprocess (obj=144315101) at print.c:1415 (gdb) The lines around print.c:1415 are: 1412 /* If Vprint_continuous_numbering is non-nil and OBJ is a gensym, 1413 always print the gensym with a number. This is a special for 1414 the lisp function byte-compile-output-docform. */ 1415 if (!NILP (Vprint_continuous_numbering) 1416 && SYMBOLP (obj) 1417 && !SYMBOL_INTERNED_P (obj)) 1418 PRINT_NUMBER_STATUS (Vprint_number_table, print_number_index) = Qt; 1419 print_number_index++; I have no idea why the value of Qt is changed at L1415 (note that I compiled print.c without optimization). At last, after restaring Emacs, I deleted the local variable section at the tail of ~/Fontifier.el and byte-compiled it again. The compilation finished with these warnings. Compiling file /home/handa/temp.el at Thu Feb 22 20:31:23 2007 In ozdoc-install-simple: temp.el:160:30:Warning: reference to free variable `src-buffer' In ozdoc-process-request: temp.el:266:18:Warning: reference to free variable `tmp-buffer' temp.el:281:18:Warning: reference to free variable `out-buffer' --- Kenichi Handa handa@m17n.org