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#21999: 25.0.50; Binary with --enable-checking immediately aborts with '0<=size' Date: Tue, 24 Nov 2015 18:12:59 +0200 Message-ID: <83bnajz88k.fsf@gnu.org> References: <87oaekh4s5.fsf@isaac.fritz.box> <83poz0zcsi.fsf@gnu.org> <87poyzzpph.fsf@secretsauce.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1448381661 1040 80.91.229.3 (24 Nov 2015 16:14:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2015 16:14:21 +0000 (UTC) Cc: 21999@debbugs.gnu.org, eggert@cs.ucla.edu, deng@randomsample.de To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 24 17:14:11 2015 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 1a1GEL-0008VS-Vh for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Nov 2015 17:14:10 +0100 Original-Received: from localhost ([::1]:39512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1GEN-0008VR-Av for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Nov 2015 11:14:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1GEJ-0008VL-8d for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2015 11:14:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1GEE-0007II-Ra for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2015 11:14:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1GEE-0007HZ-OO for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2015 11:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a1GEE-00017z-5s for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2015 11:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Nov 2015 16:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21999 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21999-submit@debbugs.gnu.org id=B21999.14483816314307 (code B ref 21999); Tue, 24 Nov 2015 16:14:02 +0000 Original-Received: (at 21999) by debbugs.gnu.org; 24 Nov 2015 16:13:51 +0000 Original-Received: from localhost ([127.0.0.1]:51546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1GE2-00017O-B5 for submit@debbugs.gnu.org; Tue, 24 Nov 2015 11:13:50 -0500 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:34765) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1a1GDz-00017C-70 for 21999@debbugs.gnu.org; Tue, 24 Nov 2015 11:13:48 -0500 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0NYB00600U9M7400@mtaout28.012.net.il> for 21999@debbugs.gnu.org; Tue, 24 Nov 2015 18:11:55 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NYB002M6UBV0L30@mtaout28.012.net.il>; Tue, 24 Nov 2015 18:11:55 +0200 (IST) In-reply-to: <87poyzzpph.fsf@secretsauce.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.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:109178 Archived-At: > From: Dima Kogan > Cc: David Engster , Paul Eggert , 21999@debbugs.gnu.org > Date: Tue, 24 Nov 2015 01:55:38 -0800 > > This comes from recent changes that created gc_asize() for use in > the GC, and changed ASIZE() to eassume() if we're not in the GC: > > https://github.com/emacs-mirror/emacs/commit/8afaa1321f808#diff-0e5d67da0ba3fb5c2886841cb3d0ccecR1547 > > This is a very recent change, so we're now seeing some of the effects. > In this particular case FONT_ENTITY_P() was called from the GC; it > called ASIZE(), which saw a marked object so we barfed in the eassume(). > This eassume() is only fatal if --enable-checking, which is why that is > significant. > > I don't know what the plan is here, so no patch is attached. Cc-ing > Paul, since he authored the patch in question. Right, thanks. That eassume in ASIZE made any macro that uses ASIZE unsafe to use in the garbage collector. I fixed this in commit d5fdffe, but I suggest that we reconsider that eassume. After all, the size field of the pseudo-vector object is not really a size, but a bunch of bitfields, so I'm not sure testing it in its entirety makes sense. Paul? David, please see that your problem is solved now. Thanks.