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 21:23:38 +0200 Message-ID: <835zgaqojp.fsf@gnu.org> References: <20200212073922.GA2812@localhost> <83eeuyr0vd.fsf@gnu.org> <20200213190016.GA11739@localhost> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="115742"; 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 20:32:07 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 1j2KDW-000TxV-9Y for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Feb 2020 20:32:06 +0100 Original-Received: from localhost ([::1]:58376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2KDV-0008Pp-At for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 13 Feb 2020 14:32:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59459) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j2K5j-0005Ll-Af for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 14:24:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j2K5i-0002YW-C3 for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 14:24:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54507) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j2K5i-0002Y4-8b for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 14:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j2K5i-0007Qt-2y for bug-gnu-emacs@gnu.org; Thu, 13 Feb 2020 14:24: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 19:24:02 +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.158162182428540 (code B ref 39577); Thu, 13 Feb 2020 19:24:02 +0000 Original-Received: (at 39577) by debbugs.gnu.org; 13 Feb 2020 19:23:44 +0000 Original-Received: from localhost ([127.0.0.1]:60480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2K5Q-0007QG-8g for submit@debbugs.gnu.org; Thu, 13 Feb 2020 14:23:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j2K5P-0007Q2-0H for 39577@debbugs.gnu.org; Thu, 13 Feb 2020 14:23:43 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34505) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j2K5I-0001V2-QV; Thu, 13 Feb 2020 14:23:36 -0500 Original-Received: from [176.228.60.248] (port=4508 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1j2K5I-0001DC-2A; Thu, 13 Feb 2020 14:23:36 -0500 In-reply-to: <20200213190016.GA11739@localhost> (message from Henrik Grimler on Thu, 13 Feb 2020 20:00:16 +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:176014 Archived-At: > Date: Thu, 13 Feb 2020 20:00:16 +0100 > From: Henrik Grimler > Cc: 39577@debbugs.gnu.org > > > > ../../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?) Looks like a bug in getloadavg, but you should be fine replacing that small value with zero. > > 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?) Sounds like sigsetjmp is buggy on that platform? > It also seems that the segfault does not happen if running inside > tmux. Does "inside tmux" mean you run a -nw session?