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#20862: 25.0.50; 32-bit Emacs configured --with-wide-int miscompiles CL Date: Sun, 21 Jun 2015 18:30:39 +0300 Message-ID: <83k2uxhye8.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1434900753 5493 80.91.229.3 (21 Jun 2015 15:32:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Jun 2015 15:32:33 +0000 (UTC) To: 20862@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 21 17:32:15 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 1Z6hED-00043s-QI for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jun 2015 17:32:14 +0200 Original-Received: from localhost ([::1]:36565 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6hEB-0003Ua-S1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jun 2015 11:32:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60774) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6hE7-0003UQ-IY for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 11:32:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6hE2-0001aB-IV for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 11:32:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6hE2-0001a7-FH for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 11:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z6hE2-00018R-6o for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jun 2015 15:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14349006714296 (code B ref -1); Sun, 21 Jun 2015 15:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Jun 2015 15:31:11 +0000 Original-Received: from localhost ([127.0.0.1]:53486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6hDA-00017C-Si for submit@debbugs.gnu.org; Sun, 21 Jun 2015 11:31:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47020) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z6hD8-00016b-F1 for submit@debbugs.gnu.org; Sun, 21 Jun 2015 11:31:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6hD1-0000tA-SK for submit@debbugs.gnu.org; Sun, 21 Jun 2015 11:31:00 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6hD1-0000t4-Oz for submit@debbugs.gnu.org; Sun, 21 Jun 2015 11:30:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60527) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6hD0-0003J8-Ff for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 11:30:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z6hCv-0000nr-9V for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 11:30:58 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:43025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z6hCu-0000nE-Sp for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 11:30:53 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NQA00000W8RWH00@mtaout26.012.net.il> for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 18:33:23 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NQA001FFWJNXS00@mtaout26.012.net.il> for bug-gnu-emacs@gnu.org; Sun, 21 Jun 2015 18:33:23 +0300 (IDT) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: 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:104177 Archived-At: To reproduce, on a 32-bit system: ./configure ... --with-wide-int make cd test/automated make This causes the cl-lib-tests to fail in this innocent check: (ert-deftest cl-lib-test-first () (should (null (cl-first '()))) <<<<<<<<<<<<<<<<< The error is "Invalid function ((nil))". The same test runs fine in a 32-bit build with 32-bit ints. While digging into this, I found out that if I compile cl-lib-test.el with an Emacs executable that doesn't use wide ints, the test succeeds. So I compared the .elc files, and they indeed differ. Moreover, by comparing the *.elc files in the entire Emacs tree, I found 3 files that differ: cl-generic.elc, srt-wy.elc, and one file in Eshell whose name I don't remember. Focusing my attention on cl-generic, which might explain why cl-lib-tests fails, how can I debug this? Would presenting disassembly of a part of the byte code where I see differences help someone to come up with ideas? Are there any other directions to investigate this? Did anyone run the test suite successfully in such a 32-bit build? Do all the *.elc files come out identical to a "normal" 32-bit build? TIA In GNU Emacs 25.0.50.189 (i686-pc-mingw32) of 2015-06-21 on HOME-C4E4A596F7 Repository revision: 821a3633564f36857968c7fe2b8bb6681a895905 Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --prefix=/d/usr --enable-checking=yes,glyphs --with-wide-int 'CFLAGS=-gdwarf-4 -g3 -O0'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 79448 7064) (symbols 56 18398 0) (miscs 48 36 96) (strings 16 12848 4918) (string-bytes 1 326874) (vectors 16 10639) (vector-slots 8 396234 8479) (floats 8 114 55) (intervals 40 251 67) (buffers 856 11))