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#9713: emacs 24.0.90 alloc.c assertion failure Date: Tue, 11 Oct 2011 21:29:06 +0200 Message-ID: <837h4bxr7h.fsf@gnu.org> References: <201110111755.p9BHtBoK010533@freefriends.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1318361516 906 80.91.229.12 (11 Oct 2011 19:31:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2011 19:31:56 +0000 (UTC) Cc: 9713@debbugs.gnu.org To: karl@freefriends.org (Karl Berry) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 11 21:31:51 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RDi3J-0007tB-Gs for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Oct 2011 21:31:49 +0200 Original-Received: from localhost ([::1]:38183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDi3I-0007qE-Lf for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Oct 2011 15:31:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDi3F-0007p7-A1 for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2011 15:31:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDi3E-0005r2-Di for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2011 15:31:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDi3E-0005qq-C7 for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2011 15:31:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RDi3W-0007Ai-3G for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2011 15:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2011 19:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9713 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9713-submit@debbugs.gnu.org id=B9713.131836149127530 (code B ref 9713); Tue, 11 Oct 2011 19:32:02 +0000 Original-Received: (at 9713) by debbugs.gnu.org; 11 Oct 2011 19:31:31 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RDi30-00079y-L3 for submit@debbugs.gnu.org; Tue, 11 Oct 2011 15:31:31 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RDi2x-00079Z-BC for 9713@debbugs.gnu.org; Tue, 11 Oct 2011 15:31:28 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LSX0000022SKY00@a-mtaout20.012.net.il> for 9713@debbugs.gnu.org; Tue, 11 Oct 2011 21:29:05 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.91.138]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LSX000WJ24FG640@a-mtaout20.012.net.il>; Tue, 11 Oct 2011 21:29:05 +0200 (IST) In-reply-to: <201110111755.p9BHtBoK010533@freefriends.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 11 Oct 2011 15:32:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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:52541 Archived-At: > Date: Tue, 11 Oct 2011 17:55:11 GMT > From: karl@freefriends.org (Karl Berry) > Cc: eliz@gnu.org, 9713@debbugs.gnu.org > > I have exactly those same values in the same headers. However, running > gcc -dD -E on alloc.c (after configuration, with all the same args as > used for compilation) shows that those values are not being used. > > Instead, Emacs's (gnulib's) lib/stdint.h is being used (why?), which > unconditionally redefines PTRDIFF_MAX as _STDINT_MAX, which is defined > in that same file as the RHS here (the LHS is the recognizable value of > INT_MAX): > > _Static_assert (2147483647 <= ((1) ? ~ ((1) ? (- ((0) + 1) << ((0) ? (0) - 1 : 0)) : (0)) : ((((0) + 1) << ((0) ? (0) - 1 - (1) : 0)) - 1) * 2 + 1), "verify (" "INT_MAX <= PTRDIFF_MAX" ")"); > > > FWIW, if I reduce the input file to these four lines: > #include > #include "lisp.h" > #include > verify (INT_MAX <= PTRDIFF_MAX); > > And compile with all the same options, I get the same error from verify > (along with a spurious error about jmp_buf). Without "lisp.h", > PTRDIFF_MAX is not defined. So I think this is the culprit. Glenn, I guess your system also uses lib/stdint.h, right? So what is different?