From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Henrik Grimler Newsgroups: gmane.emacs.bugs Subject: bug#39577: 27.0.60; Assertion failed during compilation Date: Wed, 12 Feb 2020 08:39:58 +0100 Message-ID: <20200212073922.GA2812@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="81334"; mail-complaints-to="usenet@ciao.gmane.io" To: 39577@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 12 16:32:24 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1tzz-000L12-BZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Feb 2020 16:32:23 +0100 Original-Received: from localhost ([::1]:39418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1tzy-0000Do-9r for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 12 Feb 2020 10:32:22 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55240) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1tzi-0000Di-HE for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 10:32:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1tze-0002ea-Qd for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 10:32:06 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52976) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1tze-0002eH-MU for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 10:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j1tze-0003En-D0 for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 10:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Henrik Grimler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 12 Feb 2020 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39577 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158152151712432 (code B ref -1); Wed, 12 Feb 2020 15:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Feb 2020 15:31:57 +0000 Original-Received: from localhost ([127.0.0.1]:58949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j1tzY-0003ER-IV for submit@debbugs.gnu.org; Wed, 12 Feb 2020 10:31:57 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:44200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j1mcw-0006k4-Ba for submit@debbugs.gnu.org; Wed, 12 Feb 2020 02:40:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57818) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1mcu-0002ug-O4 for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 02:40:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1mcs-0008FJ-Oi for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 02:40:04 -0500 Original-Received: from smtp-4.sys.kth.se ([2001:6b0:1:1300:250:56ff:fea6:2de3]:44462) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j1mcs-0008By-Dq for bug-gnu-emacs@gnu.org; Wed, 12 Feb 2020 02:40:02 -0500 Original-Received: from smtp-4.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-4.sys.kth.se (Postfix) with ESMTP id 4519A2742 for ; Wed, 12 Feb 2020 08:39:57 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Original-Received: from smtp-4.sys.kth.se ([127.0.0.1]) by smtp-4.sys.kth.se (smtp-4.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9J38DqBKH8fW for ; Wed, 12 Feb 2020 08:39:56 +0100 (CET) X-KTH-Auth: hgrimler [84.55.98.148] X-KTH-mail-from: hgrimler@kth.se X-KTH-rcpt-to: bug-gnu-emacs@gnu.org Original-Received: from localhost (84-55-98-148.customers.ownit.se [84.55.98.148]) by smtp-4.sys.kth.se (Postfix) with ESMTPSA id 7C17E29D0 for ; Wed, 12 Feb 2020 08:39:55 +0100 (CET) Content-Disposition: inline X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Mailman-Approved-At: Wed, 12 Feb 2020 10:31:55 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:175968 Archived-At: Hi, I am trying to debug a segmentation fault happening on android 32bit arm. To do that I tried recompiling my emacs with ``` ../configure --enable-checking=yes,glyphs \ --enable-check-lisp-object-type \ --without-makeinfo \ --without-selinux \ --prefix /data/data/com.termux/files/usr/local \ CFLAGS="-O0 -g3 -gdwarf-4" ``` but building the emacs-27 branch (commit 06c302d) this fails with: ``` [...] Loading /data/data/com.termux/files/home/projects/emacs/lisp/emacs-lisp/syntax.el (source)... Loading /data/data/com.termux/files/home/projects/emacs/lisp/font-lock.el (source)... Loading /data/data/com.termux/files/home/projects/emacs/lisp/jit-lock.el (source)... ../../src/fns.c:2856: Emacs fatal error: assertion failed: !FIXNUM_OVERFLOW_P (lisp_h_make_fixnum_n) Fatal error 6: n make[1]: *** [Makefile:817: bootstrap-emacs.pdmp] Aborted make[1]: Leaving directory '/data/data/com.termux/files/home/projects/emacs/build/src' make: *** [Makefile:424: src] Error 2 ``` This (as well as the segfault) happens both if compiling with clang 9.0.1 and gcc 9.2.0. I get a warning earlier multiple times that might be related: ``` [...] CC dispnew.o In file included from ../../src/dispnew.c:29: In file included from ../../src/termchar.h:23: ../../src/dispextern.h:1917:36: warning: signed shift result (0x3FFFFC00000) requires 43 bits to represent, but 'EMACS_INT' (aka 'int') only has 32 bits [-Wshift-overflow] ? ((EMACS_INT) MAX_FACE_ID << CHARACTERBITS) | MAX_CHAR ~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~ 1 warning generated. [...] ``` I have uploaded the full config.log and make output here: https://grimler.se/emacs/config.log https://grimler.se/emacs/make.log If I remove --enable-checking=yes,glyphs it builds (I am sending this bug report from that build) but gets segmentation faults every now and then. Easiest way to trigger it is to scroll up and down in some file, but it still happens randomly, maybe after 200 lines, maybe after 10 000. Does anyone have any suggestions for how I can proceed debugging this? Best regards, Henrik Grimler In GNU Emacs 27.0.60 (build 1, armv7l-unknown-linux-gnueabi) of 2020-02-10 built on localhost Repository revision: 06c302d425fc2093130479b8aed7da4507d43331 Repository branch: emacs-27 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --enable-check-lisp-object-type --without-makeinfo --without-selinux --prefix /data/data/com.termux/files/usr/local/ 'CFLAGS=-O0 -g3 -gdwarf-4'' Configured features: NOTIFY INOTIFY ACL GNUTLS LIBXML2 ZLIB MODULES THREADS PDUMPER LCMS2 GMP Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: show-paren-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow regexp-opt sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils image term/xterm xterm edmacro kmacro tsdh-dark-theme paren finder-inf info tool-bar package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 threads inotify lcms2 multi-tty make-network-process emacs) Memory information: ((conses 8 77236 5768) (symbols 24 9059 1) (strings 16 27039 2319) (string-bytes 1 881148) (vectors 8 12044) (vector-slots 4 135461 6406) (floats 8 46 544) (intervals 28 170 0) (buffers 576 12))