Return-Path: Delivered-To: apmail-xml-xalan-dev-archive@www.apache.org Received: (qmail 89263 invoked from network); 3 Dec 2005 01:59:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Dec 2005 01:59:54 -0000 Received: (qmail 12579 invoked by uid 500); 3 Dec 2005 01:59:52 -0000 Delivered-To: apmail-xml-xalan-dev-archive@xml.apache.org Received: (qmail 12543 invoked by uid 500); 3 Dec 2005 01:59:52 -0000 Mailing-List: contact xalan-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: xalan-dev@xml.apache.org List-Id: Delivered-To: mailing list xalan-dev@xml.apache.org Received: (qmail 12516 invoked by uid 99); 3 Dec 2005 01:59:52 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 17:59:52 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 2484EDE for ; Sat, 3 Dec 2005 02:59:31 +0100 (CET) Message-ID: <874602171.1133575171106.JavaMail.jira@ajax.apache.org> Date: Sat, 3 Dec 2005 02:59:31 +0100 (CET) From: "David Bertoni (JIRA)" To: xalan-dev@xml.apache.org Subject: [jira] Assigned: (XALANC-588) Floating point exceptions in DoubleSupport::initialize() on Solaris 10 (x86) In-Reply-To: <955611401.1133539112193.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/XALANC-588?page=all ] David Bertoni reassigned XALANC-588: ------------------------------------ Assign To: David Bertoni > Floating point exceptions in DoubleSupport::initialize() on Solaris 10 (x86) > ---------------------------------------------------------------------------- > > Key: XALANC-588 > URL: http://issues.apache.org/jira/browse/XALANC-588 > Project: XalanC > Type: Bug > Components: XalanC > Versions: 1.10 > Environment: Sun Solaris 10, Opteron chipset (x86/i386). XercesC++ 2.7 XalanC 1.10 > $ CC -V > CC: Sun C++ 5.7 Patch 117831-02 2005/03/30 > $ cc -V > cc: Sun C 5.7 Patch 117837-04 2005/05/11 > usage: cc [ options] files. Use 'cc -flags' for details > Reporter: Sean Pearce > Assignee: David Bertoni > > A couple of issues. > Prior to compiling, XERCESCROOT and XALANCROOT are configured to point the their respective foliders, and the configurations used as follows: > Xerces: ./runConfigure -p solaris -c cc -x CC -b 64 -P $P4SRCROOT/Tools/libs/64/SUN/xerces-c_2_7_0 > Xalan: ./runConfigure -p solaris -c cc -x CC -b 64 -P $P4SRCROOT/Tools/libs/64/SUN/xalanc_1_10 > 1) To compile on this platform, the 'solaris' entries in runConfigure had to be changed to use option '-xarch=amd64' in place of '-xarch=v9' (for XercesC and XalanC) > 2) After building the libraries, our program was crashing in XalanTransformer::initialize(); (after calling XMLPlatformUtils::Initialize(); of course), with a Floating Point Exception (FPE) in: > void > DoubleSupport::initialize() > { > #if defined(XALAN_NO_STD_NUMERIC_LIMITS) > // We initialize this at here because some > // platforms have had issues with signals > // if we call sqrt(-2.01) during static > // initialization. > #if defined(XALAN_STRICT_ANSI_HEADERS) > s_NaN.d = std::sqrt(-2.01); > #else > s_NaN.d = sqrt(-2.01); > #endif > #elif !defined(XALAN_NO_STD_NAMESPACE) > // There seems to be problems with various standard libraries, so > // this is disabled for now. We need to revisit this when we > // update our autoconf/automake system to detect the right value > // for NaN at configuration time. > // XALAN_STATIC_ASSERT(std::numeric_limits::has_quiet_NaN); > #endif > Removing #define XALAN_NO_STD_NUMERIC_LIMITS from the Include/SolarisDefinitions.hpp fixes this problem. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org For additional commands, e-mail: xalan-dev-help@xml.apache.org