From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#39577: 27.0.60; Assertion failed during compilation Date: Thu, 13 Feb 2020 16:57:26 +0200 Message-ID: <83eeuyr0vd.fsf@gnu.org> References: <20200212073922.GA2812@localhost> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="111270"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39577@debbugs.gnu.org To: Henrik Grimler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 13 16:22:12 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 1j2GJf-000Spb-PV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Feb 2020 16:22:11 +0100 Original-Received: from localhost ([::1]:54618 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2GJe-0006g5-RV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Feb 2020 10:22:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34841) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2FwJ-0000Gl-M7 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 09:58:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2FwI-0000Mt-L3 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 09:58:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2FwI-0000Lp-CU for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 09:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j2FwI-0007Oe-1J for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 09:58: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: Thu, 13 Feb 2020 14:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39577 X-GNU-PR-Package: emacs Original-Received: via spool by 39577-submit@debbugs.gnu.org id=B39577.158160585528398 (code B ref 39577); Thu, 13 Feb 2020 14:58:01 +0000 Original-Received: (at 39577) by debbugs.gnu.org; 13 Feb 2020 14:57:35 +0000 Original-Received: from localhost ([127.0.0.1]:60321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2Fvq-0007Nw-T6 for submit@debbugs.gnu.org; Thu, 13 Feb 2020 09:57:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2Fvp-0007Nj-8h for 39577@debbugs.gnu.org; Thu, 13 Feb 2020 09:57:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j2Fvj-0007nB-BT; Thu, 13 Feb 2020 09:57:27 -0500 Original-Received: from [176.228.60.248] (port=4039 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j2Fvg-0006Pg-KT; Thu, 13 Feb 2020 09:57:25 -0500 In-reply-to: <20200212073922.GA2812@localhost> (message from Henrik Grimler on Wed, 12 Feb 2020 08:39:58 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:175996 Archived-At: > Date: Wed, 12 Feb 2020 08:39:58 +0100 > From: Henrik Grimler > > ../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) This would mean that the values returned by getloadavg on that system are preposterously large. Can you run the offending command under a debugger, put a breakpoint on line 2856 of fns.c, and see what values you get in the load_ave[] array? > 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 think this warning is bogus, since if your EMACS_INT is not wide enough to hold MAX_FACE_ID shifted left by 8 bits, the code will not do that. > 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. Can you show a backtrace from the segfault?