From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: (elisp)Numbers Date: Sat, 25 Oct 2003 00:04:44 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8361-Sat25Oct2003000443+0200-eliz@elta.co.il> References: <200310210229.h9L2TGl12085@raven.dms.auburn.edu> <9743-Wed22Oct2003174239+0200-eliz@elta.co.il> <9787-Fri24Oct2003153817+0200-eliz@elta.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1067033919 20028 80.91.224.253 (24 Oct 2003 22:18:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 24 Oct 2003 22:18:39 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Oct 25 00:18:37 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ADAGT-0005gI-00 for ; Sat, 25 Oct 2003 00:18:37 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ADAGS-0004DU-00 for ; Sat, 25 Oct 2003 00:18:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ADADK-00035f-W2 for emacs-devel@quimby.gnus.org; Fri, 24 Oct 2003 18:15:22 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ADACj-0002oo-GO for emacs-devel@gnu.org; Fri, 24 Oct 2003 18:14:45 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ADACD-0002XK-0j for emacs-devel@gnu.org; Fri, 24 Oct 2003 18:14:44 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1ADAC9-0002UV-Sn; Fri, 24 Oct 2003 18:14:09 -0400 Original-Received: from [192.114.186.15] (helo=balder.inter.net.il) by mx20.gnu.org with esmtp (Exim 4.24) id 1ADA8p-0003BI-Uh; Fri, 24 Oct 2003 18:10:44 -0400 Original-Received: from zaretski (pns03-204-110.inter.net.il [80.230.204.110]) by balder.inter.net.il (Mirapoint Messaging Server MOS 3.3.7-GR) with ESMTP id CWV89035; Sat, 25 Oct 2003 00:10:38 +0200 (IST) Original-To: rms@gnu.org X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <9787-Fri24Oct2003153817+0200-eliz@elta.co.il> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17411 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17411 > Date: Fri, 24 Oct 2003 15:38:18 +0200 > From: "Eli Zaretskii" > > > anyway, it does not signal the exception. > > can someone try to debug this? > > I'll try if no one else does. As far as I could see, the problem happens because the definition of the IN_FLOAT macro on GNU/Linux relies on sqrt to set errno, but the expansion of the sqrt macro fails to do so. I stepped with GDB thru the code generated for the line in Fsqrt that says IN_FLOAT (d = sqrt (d), "sqrt", arg); and the value of errno stays zero after the code computes the square root. So this sounds like a glibc bug, perhaps combined with a GCC bug: the expansion of the sqrt macro doesn't set errno for abnormal arguments. (I'm guessing that similar things happen for many other functions from floatfns.c.)