From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r109660: Functions to get and set Lisp_Object fields of buffer-local variables. Date: Sat, 18 Aug 2012 11:42:14 +0300 Message-ID: <83ipcgh9qx.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1345279335 22436 80.91.229.3 (18 Aug 2012 08:42:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Aug 2012 08:42:15 +0000 (UTC) Cc: dmantipov@yandex.ru, emacs-devel@gnu.org To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 18 10:42:15 2012 Return-path: Envelope-to: ged-emacs-devel@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 1T2ebi-0005kc-4k for ged-emacs-devel@m.gmane.org; Sat, 18 Aug 2012 10:42:10 +0200 Original-Received: from localhost ([::1]:47057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2ebg-0002Wp-PP for ged-emacs-devel@m.gmane.org; Sat, 18 Aug 2012 04:42:08 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2ebe-0002WV-5q for emacs-devel@gnu.org; Sat, 18 Aug 2012 04:42:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2ebc-0002pC-S4 for emacs-devel@gnu.org; Sat, 18 Aug 2012 04:42:06 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:47851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2ebc-0002p8-Jw for emacs-devel@gnu.org; Sat, 18 Aug 2012 04:42:04 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M8X00C00ZMBTY00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 18 Aug 2012 11:42:02 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8Y00C7C062V620@a-mtaout22.012.net.il>; Sat, 18 Aug 2012 11:42:02 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152635 Archived-At: > From: Juanma Barranquero > Date: Fri, 17 Aug 2012 23:02:27 +0200 > Cc: Emacs developers > > On Fri, Aug 17, 2012 at 4:24 PM, Dmitry Antipov wrote: > > ------------------------------------------------------------ > > revno: 109660 > > committer: Dmitry Antipov > > branch nick: trunk > > timestamp: Fri 2012-08-17 18:24:43 +0400 > > message: > > Functions to get and set Lisp_Object fields of buffer-local variables. > > > "./../nt/oo-spd/i386/addsection" "oo-spd/i386/temacs.bin" > "oo-spd/i386/temacs.exe" EMHEAP 27 > Dumping from oo-spd/i386/temacs.bin > to oo-spd/i386/temacs.exe > "./oo-spd/i386/temacs.exe" -batch -l loadup dump > > lisp.h:2416: Emacs fatal error: assertion failed: found == !EQ > (blv->defcell, blv->valcell) The old code had no asserts, so I commented out the assert (locally), and the build proceeded with no problems. Here's a backtrace and some additional relevant data from an unoptimized build, if it helps: Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 6036.0x1760] 0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll (gdb) bt #0 0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll #1 0x0122e84e in w32_abort () at w32fns.c:7217 #2 0x010434c2 in die ( msg=0x153d2a8 "assertion failed: found == !EQ (blv->defcell, blv->valcell)", file=0x153cd52 "lisp.h", line=2416) at alloc.c:6691 #3 0x01027fc7 in set_blv_found (blv=0x34479c0, found=1) at lisp.h:2416 #4 0x01028cf1 in set_internal (symbol=54901482, newval=54822938, where=54849029, bindflag=1) at data.c:1187 #5 0x01038c4e in specbind (symbol=54901482, value=54822938) at eval.c:3209 #6 0x0106a272 in Fload (file=54999057, noerror=54822938, nomessage=54822938, nosuffix=54822938, must_suffix=54822938) at lread.c:1164 #7 0x0103547a in eval_sub (form=54804902) at eval.c:2173 #8 0x0103495f in Feval (form=54804902, lexical=54822938) at eval.c:2021 #9 0x01005448 in top_level_2 () at keyboard.c:1213 #10 0x01032e24 in internal_condition_case (bfun=0x100542c , handlers=54873594, hfun=0x1004fb3 ) at eval.c:1308 #11 0x0100547a in top_level_1 (ignore=54822938) at keyboard.c:1221 #12 0x010327e3 in internal_catch (tag=54863426, func=0x100544a , arg=54822938) at eval.c:1065 #13 0x010053b5 in command_loop () at keyboard.c:1176 #14 0x01004971 in recursive_edit_1 () at keyboard.c:804 #15 0x01004c93 in Frecursive_edit () at keyboard.c:868 #16 0x010029c4 in main (argc=5, argv=0xa42678) at emacs.c:1666 Lisp Backtrace: "load" (0x82fc20) (gdb) frame 6 #6 0x0106a272 in Fload (file=54999057, noerror=54822938, nomessage=54822938, nosuffix=54822938, must_suffix=54822938) at lread.c:1164 1164 specbind (Qlexical_binding, Qnil); (gdb) p file $1 = 54999057 (gdb) xstring $2 = (struct Lisp_String *) 0x3473810 "loadup.el" (gdb) frame 4 #4 0x01028cf1 in set_internal (symbol=54901482, newval=54822938, where=54849029, bindflag=1) at data.c:1187 1187 set_blv_found (blv, 1); (gdb) p blv->where $3 = 54849029 (gdb) xbuffer $4 = (struct buffer *) 0x344ee00 (unsigned char *) 0x3450018 "*scratch*" (gdb) p blv->defcell $5 = 54808358 (gdb) xcar $6 = 0x345baea (gdb) xsymbol $7 = (struct Lisp_Symbol *) 0x345bae8 "lexical-binding" (gdb) p blv->valcell $8 = 54808358 (gdb) p blv->fwd $9 = (union Lisp_Fwd *) 0x163c2e0