From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: karl@freefriends.org (Karl Berry) Newsgroups: gmane.emacs.bugs Subject: bug#9713: emacs 24.0.90 alloc.c assertion failure Date: Tue, 11 Oct 2011 17:55:11 GMT Message-ID: <201110111755.p9BHtBoK010533@freefriends.org> References: <201110100021.p9A0LN4m013541@freefriends.org> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1318355764 25846 80.91.229.12 (11 Oct 2011 17:56:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2011 17:56:04 +0000 (UTC) Cc: 9713@debbugs.gnu.org To: rgm@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 11 19:55:59 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 1RDgYO-0001Uv-Q4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Oct 2011 19:55:49 +0200 Original-Received: from localhost ([::1]:42976 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDgYO-0000s7-DG for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Oct 2011 13:55:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:44701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDgYL-0000rc-55 for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2011 13:55:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDgYK-0006Gq-4L for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2011 13:55:45 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51286) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDgYK-0006Gf-2o for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2011 13:55:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RDgYb-0004C4-Lc for bug-gnu-emacs@gnu.org; Tue, 11 Oct 2011 13:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: karl@freefriends.org (Karl Berry) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Oct 2011 17:56:01 +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.131835573616079 (code B ref 9713); Tue, 11 Oct 2011 17:56:01 +0000 Original-Received: (at 9713) by debbugs.gnu.org; 11 Oct 2011 17:55:36 +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 1RDgYC-0004BH-47 for submit@debbugs.gnu.org; Tue, 11 Oct 2011 13:55:36 -0400 Original-Received: from b0.f7.net ([66.148.120.132] helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RDgY9-0004BA-Uw for 9713@debbugs.gnu.org; Tue, 11 Oct 2011 13:55:34 -0400 X-Envelope-From: karl@freefriends.org Original-Received: from freefriends.org (sls-af11p1 [127.0.0.1]) by freefriends.org (8.14.4/8.14.4) with ESMTP id p9BHtBeO010534; Tue, 11 Oct 2011 13:55:14 -0400 Original-Received: (from nobody@localhost) by freefriends.org (8.14.4/8.14.4/submit) id p9BHtBoK010533; Tue, 11 Oct 2011 17:55:11 GMT X-Authentication-Warning: localhost.localdomain: nobody set sender to karl@freefriends.org using -f In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 11 Oct 2011 13:56:01 -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:52534 Archived-At: x86_64 Scientific Linux 5.7 I am compiling on 32-bit, not 64-bit. Perhaps that is the difference. The system has 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. Here is my full command line: gcc -std=gnu99 -c -Demacs -DHAVE_CONFIG_H \ -I. -I/usr/local/gnu/src/emacs-24.0.90/src -I../lib \ -I/usr/local/gnu/src/emacs-24.0.90/src/../lib -I/usr/include/gtk-2.0 \ -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo \ -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 \ -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 \ -I/usr/include/libpng12 -I/usr/include/freetype2 \ -I/usr/include/alsa -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 \ -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 \ -I/usr/include/libxml2 -I/usr/include/dbus-1.0 \ -I/usr/lib/dbus-1.0/include -DORBIT2=1 -pthread -I/usr/include/gconf/2 \ -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 \ -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -MMD -MF \ deps/alloc.d -MP -Wimplicit-function-declaration \ -Wold-style-definition -Wdeclaration-after-statement -g -O2 alloc.c karl