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: Thu, 13 Feb 2020 20:00:16 +0100 Message-ID: <20200213190016.GA11739@localhost> References: <20200212073922.GA2812@localhost> <83eeuyr0vd.fsf@gnu.org> 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="27010"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 39577@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 13 20:12:14 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 1j2JuH-0006rj-CG for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Feb 2020 20:12:13 +0100 Original-Received: from localhost ([::1]:58230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2JuG-0002MX-93 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Feb 2020 14:12:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34921) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2Ju7-0002M9-RA for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 14:12:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2Ju6-0000xp-Me for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 14:12:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54480) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2Ju6-0000vy-08 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 14:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j2Ju5-00077M-R0 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 14:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Henrik Grimler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 13 Feb 2020 19:12: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.158162111727345 (code B ref 39577); Thu, 13 Feb 2020 19:12:01 +0000 Original-Received: (at 39577) by debbugs.gnu.org; 13 Feb 2020 19:11:57 +0000 Original-Received: from localhost ([127.0.0.1]:60453 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2Ju0-00076z-DV for submit@debbugs.gnu.org; Thu, 13 Feb 2020 14:11:57 -0500 Original-Received: from smtp-4.sys.kth.se ([130.237.48.193]:47344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2Jih-0006qf-Q2 for 39577@debbugs.gnu.org; Thu, 13 Feb 2020 14:00:17 -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 19C0F2B44; Thu, 13 Feb 2020 20:00:14 +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 Nx9l-ht18JD5; Thu, 13 Feb 2020 20:00:13 +0100 (CET) X-KTH-Auth: hgrimler [84.55.98.148] DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kth.se; s=default; t=1581620413; bh=smCliYTYNDDUXgXsrYLmQqAWbYPjc4lhwKPmDDZS8HQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=CLjJrNSJhnV44jNfGkbZ9d7VexczO4oLahw914lvZS7QU7I/mNU18zDY4CP8QgG66 F19hDmRtdznrDW2aMGF7RZhx0aOZeuwT8kvyGbVzuWcAK2PxyRSTRtJezu68XhPSRW 3PAHIztlht4EuNMNvGkYGafcyovWhD6qQNU/TGr0= X-KTH-mail-from: hgrimler@kth.se 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 CDD312A22; Thu, 13 Feb 2020 20:00:12 +0100 (CET) Content-Disposition: inline In-Reply-To: <83eeuyr0vd.fsf@gnu.org> X-Mailman-Approved-At: Thu, 13 Feb 2020 14:11:54 -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:176008 Archived-At: Hi Eli, On Thu, Feb 13, 2020 at 04:57:26PM +0200, Eli Zaretskii wrote: > > 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? It seems to be preposterously small: ``` Breakpoint 2, Fload_average (use_floats=XIL(0)) at ../../src/fns.c:2856 2856 ? make_fixnum (100.0 * load_ave[loads]) (gdb) print load_ave $1 = {2.8900000000000001, 2.8752811112650786e-312, 2.7799999999999998} ``` This android version does not have getloadavg (so I guess lib/getloadavg.c is used instead?) > > 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? After loading gdbinit from emacs src, starting emacs and scrolling up and down a file a couple of times it crashes with: ``` Program received signal SIGSEGV, Segmentation fault. 0xb6995228 in sigsetjmp () from /system/lib/libc.so ``` A backtrace then unfortunately only shows: ``` #0 0xb6995228 in sigsetjmp () from /system/lib/libc.so #1 0x62e31f80 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) Program received signal SIGSEGV, Segmentation fault. backtrace_top () at ../../src/eval.c:176 176 { The program being debugged was signaled while in a function called from GDB. GDB remains in the frame where the signal was received. To change this behavior use "set unwindonsignal on". Evaluation of the expression containing the function (backtrace_top) will be abandoned. When the function is done executing, GDB will silently stop. ``` I am fairly in-experienced with gdb, so please let me know if there is anything else I can try. It also seems that the segfault does not happen if running inside tmux.