From owner-freebsd-mips@freebsd.org Tue Nov 21 15:14:09 2017 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC3AEDF1391 for ; Tue, 21 Nov 2017 15:14:09 +0000 (UTC) (envelope-from kg365@hermes.cam.ac.uk) Received: from ppsw-33.csi.cam.ac.uk (ppsw-33.csi.cam.ac.uk [131.111.8.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B0AB67229B; Tue, 21 Nov 2017 15:14:08 +0000 (UTC) (envelope-from kg365@hermes.cam.ac.uk) X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus Received: from mail-qk0-f175.google.com ([209.85.220.175]:35359) by ppsw-33.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587) with esmtpsa (PLAIN:kg365) (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1eHAFS-000qNI-gi (Exim 4.89) (return-path ); Tue, 21 Nov 2017 15:14:06 +0000 Received: by mail-qk0-f175.google.com with SMTP id p19so12459112qke.2; Tue, 21 Nov 2017 07:14:06 -0800 (PST) X-Gm-Message-State: AJaThX7DFtDfcKSynOx0uPVem9XrTV4uu2E43HHL8b2MSLbHB+ZDolEA Za0bztIGNlqWl+4O9Itm+mxH97F3DWzTjlf/LtU= X-Google-Smtp-Source: AGs4zMa7Eb9LIu4eypWTiT6aSsW3DVz6bdVa2eIW7jVNr5foowymET6hFzU0klYyL8+w10EuI/ueeGs14yqAEnQ+1bY= X-Received: by 10.55.8.4 with SMTP id 4mr7228238qki.249.1511277245384; Tue, 21 Nov 2017 07:14:05 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.153.1 with HTTP; Tue, 21 Nov 2017 07:13:44 -0800 (PST) In-Reply-To: <2687660.XtxPXlZaqn@ralph.baldwin.cx> References: <2687660.XtxPXlZaqn@ralph.baldwin.cx> From: Khilan Gudka Date: Tue, 21 Nov 2017 15:13:44 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: fabs(-0.0) returns -0.0 To: John Baldwin Cc: freebsd-mips@freebsd.org, Khilan Gudka Sender: Khilan Gudka Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2017 15:14:10 -0000 Alex Richardson has submitted a patch to fix fabs() on FreeBSD: https://reviews.freebsd.org/D13135 Thanks, Khilan On 14 November 2017 at 01:43, John Baldwin wrote: > On Monday, November 13, 2017 10:52:10 PM Khilan Gudka wrote: > > Hi, > > > > The implementation of fabs(3) for MIPS (at least) appears to not be > giving > > the right answer for when -0 is passed, as it returns -0 instead of +0. > The > > implementation of fabs is: > > > > double fabs(double x) { > > if (x < 0) > > return -x; > > return x; > > } > > > > The if-test fails for -0 and thus it is returned. Is this a known issue? > A > > simple fix would be to return x+0.0 instead of just x. > > > > The implication of this is that other functions which rely on fabs, such > as > > hypot, also return -0. For example, hypot(-0.0, 0.0) returns -0 instead > of > > +0. > > The C version of fabs() for 32-bit arm has the same misimplementation btw. > All other architectures implement fabs in assembly in libc. > > -- > John Baldwin > From owner-freebsd-mips@freebsd.org Wed Nov 22 23:55:36 2017 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 92D51DF8DC5 for ; Wed, 22 Nov 2017 23:55:36 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh505-vm12.bullet.mail.kks.yahoo.co.jp (nh505-vm12.bullet.mail.kks.yahoo.co.jp [183.79.57.114]) by mx1.freebsd.org (Postfix) with SMTP id 1AFAD70B46 for ; Wed, 22 Nov 2017 23:55:35 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.138] by nh505.bullet.mail.kks.yahoo.co.jp with NNFMP; 22 Nov 2017 23:55:29 -0000 Received: from [183.79.100.136] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 22 Nov 2017 23:55:29 -0000 Received: from [127.0.0.1] by omp505.mail.kks.yahoo.co.jp with NNFMP; 22 Nov 2017 23:55:29 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 465260.11005.bm@omp505.mail.kks.yahoo.co.jp Received: (qmail 91057 invoked by uid 60001); 22 Nov 2017 23:55:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1511394929; bh=Ll6Br03Uh4/7tIMapd4seyD5vDxXy/pC87N/tNnpuKQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MfGxz8Z7ysN3DtXfBQNGgqvqTNFETrSPixugzVAXLz37cAEmdntbia559g35bq0YArHbnSMfVRxigpy7gTCZd9RqjIJr8orv3HciZy4HMSULVaDevcwBezHQNGBUZB8vrmlbsqxzqqmPNoQ/jUKLzio4Q0ay+ResCuB/eyW7fPI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Gzvb2iiBt1ow3N2DqwtABfZJDPWVDk1PlpFDqW4R0Lvgou4FgNlZhIPCMNLcWcyM4usAH6AonCKHjzQseQUrLttVLQNCvORnVUJAKqgYkdBDuuac4UJo4XRvwueCBY7kF9er8OGEcBMvFIXRoQzJr5zkh8WaH1AuS0mEHNSPHAQ=; Message-ID: <105237.78558.qm@web101716.mail.ssk.yahoo.co.jp> X-YMail-OSG: Z.U14FIVM1n.55G2VbSQxOGAiwrYuxR3mi8.GaCthGXv1v1cd01QHfjNwgCWEZ7X4BqpvkbImdIP4CC1Vtl2gHQLnbmNpGyMAqcPERqdy5Dw.NEwzg.30dLk9leArU1rtWvlXwtu8OfDl3CjHUjEtSuVluFiUGe98zr.ivU9zYuys2C4TiRqvEIhFpLhM5JH4vtdAbsxsIk7QzKvezGIMyjh0ulnjGO4rVxjVWgbOEOq6RnWRer6LjZ3DMLTSC.eYxveE9xLCzWfpFA.feFPGbpMfPv6GG0nXK75KiZBbVcloZkWVmz.Jrd_sGgFBhOsoGCa9gMuvHiyRIekAtfzjZmtM8dKp1.QIyktQ2jy1wL1qX_EvZgxxCvNVY4MwYRXeoOm_vSnCV6q9cHvHFa2XezpiJBhngQ_hBGzv3HIayuNsZ6aoajCoNrFY7qRiMAbW2XOb5NKr8DqAn1ttLGC0HSUOpRVXr4SGx3WQugSaZrB81a3TYrfy1tuohhSvlyk5m_OqxinyJQFpWbdheczutYH.ZVF2Sa6Aja.2IdTTMpSs7IMo0.mrw0QW7t2Rq0xI4RloyAaOiNJ3cRtcQ9Oatgo5v5G.F__L1xLImS3raE- Received: from [203.165.91.75] by web101716.mail.ssk.yahoo.co.jp via HTTP; Thu, 23 Nov 2017 08:55:28 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: J5IdFFAVM1k7o1i6oXD8elHx1Iv5We6ehmHWxPiQd5mQlHs6ZlHgzu3hLNfjGLLRkN5vasQcR18E3sJaoerk8nogFQg5omqhN6mlYW2bj5YUTxaankbcdJgKJvfIow_L5qJ7 Date: Thu, 23 Nov 2017 08:55:28 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: kernel crash at ng_vjc To: "freebsd-mips@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Nov 2017 23:55:36 -0000 Hi.=0A=0AI use racoon and mpd5 on my home VPN sever. This host is atheros A= R9.=0AI connect by Android 7 to this VPN server then kernel crash at ng_vjc= .=0A=0ACrash is after ipsec=A0authentification. I seem not so critical.=0AB= ut kernel=A0crash and service is stop.=0A=0AAlso crash on RT3050.=0A=0AI fo= und work around this problem on mpd.conf.=0A=0Aset ipcp disable vjcomp=0Ase= t ipcp deny vjcomp =0A=0AThanks=0A=0AHiroki Mori