From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#39577: 27.0.60; Assertion failed during compilation Date: Mon, 17 Feb 2020 12:53:05 -0800 Organization: UCLA Computer Science Department Message-ID: <3a007a4f-4d7d-2d86-e670-7bcf5e6b31dd@cs.ucla.edu> References: <20200212073922.GA2812@localhost> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------6815072D71EE80E54399FBAD" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="81475"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 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 Mon Feb 17 21:54:11 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 1j3nP9-000L2c-MD for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Feb 2020 21:54:11 +0100 Original-Received: from localhost ([::1]:52778 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3nP8-0002LC-JD for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 17 Feb 2020 15:54:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38626) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3nP1-0002L2-0o for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2020 15:54:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3nP0-0000bR-06 for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2020 15:54:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33318) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3nOz-0000bL-Sv for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2020 15:54:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3nOz-0004eY-Qp for bug-gnu-emacs@gnu.org; Mon, 17 Feb 2020 15:54:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <20200212073922.GA2812@localhost> Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Feb 2020 20:54: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.158197279817833 (code B ref 39577); Mon, 17 Feb 2020 20:54:01 +0000 Original-Received: (at 39577) by debbugs.gnu.org; 17 Feb 2020 20:53:18 +0000 Original-Received: from localhost ([127.0.0.1]:39291 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3nOH-0004dZ-QS for submit@debbugs.gnu.org; Mon, 17 Feb 2020 15:53:18 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:38598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j3nOF-0004dL-4G for 39577@debbugs.gnu.org; Mon, 17 Feb 2020 15:53:16 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6A3E416008A; Mon, 17 Feb 2020 12:53:09 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id HFnjZolhlO7e; Mon, 17 Feb 2020 12:53:08 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9E07516008E; Mon, 17 Feb 2020 12:53:08 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id TFvCJbHL9yj1; Mon, 17 Feb 2020 12:53:08 -0800 (PST) Original-Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6F30A16008A; Mon, 17 Feb 2020 12:53:08 -0800 (PST) Content-Language: en-US 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:176161 Archived-At: This is a multi-part message in MIME format. --------------6815072D71EE80E54399FBAD Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I installed the attached patch into master, to work around the getloadavg-related assertion failure. However, I don't think this fixes the actual bug. > This android version does not have getloadavg (so I guess > lib/getloadavg.c is used instead?) If so, you should be able to step through the replacement getloadavg and see why it's reporting bogus values. I have the sneaking suspicion that floating point isn't working properly, and that it's treating tiny numbers as NaNs or vice versa. But this bug is relatively unimportant. The main problem here seems to be the sigsetjmp-related bug. You might try putting a breakpoint on handle_sigsegv before running Emacs; that might give you a better backtrace. --------------6815072D71EE80E54399FBAD Content-Type: text/x-patch; charset=UTF-8; name="0001-Avoid-unlikely-load-average-bug.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-Avoid-unlikely-load-average-bug.patch" >From 121f9bb14ab0abe618cabd24bd25ed328e36891c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 17 Feb 2020 12:44:10 -0800 Subject: [PATCH] Avoid unlikely load-average bug * src/fns.c (Fload_average): Do not crash or return nonsense if the load average exceeds most-positive-fixnum/100 (Bug#39577). --- src/fns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fns.c b/src/fns.c index 436ef1c7b7..80012fa9d2 100644 --- a/src/fns.c +++ b/src/fns.c @@ -2843,7 +2843,7 @@ advisable. */) while (loads-- > 0) { Lisp_Object load = (NILP (use_floats) - ? make_fixnum (100.0 * load_ave[loads]) + ? double_to_integer (100.0 * load_ave[loads]) : make_float (load_ave[loads])); ret = Fcons (load, ret); } -- 2.17.1 --------------6815072D71EE80E54399FBAD--