bugPSPP - Bugs: bug #19004, float-format.c portability problems

 
 

bug #19004: float-format.c portability problems

Submitter:  Ben Pfaff <blp>
Submitted:  Fri 09 Feb 2007 05:03:44 AM UTC
   
 
Category:  Compilation/Portability Severity:  7 - Major
Status:  Fixed Assigned to:  blp
Open/Closed:  Closed Release:  Before 0.6.0
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 15 Aug 2007 07:40:37 PM UTC, comment #4: 


>...it works now.


Wonderful!  Thanks Jason.

Ben Pfaff <blp>
Group administrator
Wed 15 Aug 2007 07:22:08 PM UTC, comment #3: 

Ben, you're right. This was fixed a while ago (I guess by
Gnulib, but I didn't check that). Anyway, it works now.

Jason H Stover <jstover>
Group Member
Mon 30 Jul 2007 01:12:44 AM UTC, comment #2: 

I don't have access to BSD, but I've never seen anything like this happen (and still don't).

John Darrington <jmd>
Group administrator
Sat 28 Jul 2007 08:08:37 PM UTC, comment #1: 

I suspect that these bugs were fixed in a check-in to gnulib in May that fixed a bug in the byteswap routines.  Would either of you mind checking that it now works on your environments?

Ben Pfaff <blp>
Group administrator
Fri 09 Feb 2007 05:03:44 AM UTC, original submission:  

float-format fails on OBSD, x86-64 (from Jason Stover):

/tmp/pspp-tst-9723/float-format.pspp:13: error: DEBUG FLOAT FORMAT: Direct conversion of fffffffffffffffe from ZL to ZS should have produced fffffffe but actually produced ff00ffff.
Errors (123) exceeds limit (100).
run program
FAILED
FAIL: tests/formats/float-format.sh

float-format also fails on mingw via wine (from "John McCabe-Dansted" <gmatht@gmail.com>):

/tmp/pspp-tst-20239/float-format.pspp:2: error: DEBUG FLOAT FORMAT: Direct conversion of 0000000000000000 from IDL to ISB should have produced 80000000 but actually produced 00000000.
/tmp/pspp-tst-20239/float-format.pspp:2: error: DEBUG FLOAT FORMAT: Direct conversion of 80000000 from ISB to IDL should have produced 0000000000000000 but actually produced 0000000000000080.
/tmp/pspp-tst-20239/float-format.pspp:3: error: DEBUG FLOAT FORMAT: Direct conversion of Infinity from X to ISB should have produced 7f800000 but actually produced 7f000080.
/tmp/pspp-tst-20239/float-format.pspp:3: error: DEBUG FLOAT FORMAT: Indirect conversion of 7f800000 from ISB to ISB should have produced 7f800000 but actually produced 7f000080.
/tmp/pspp-tst-20239/float-format.pspp:4: error: DEBUG FLOAT FORMAT: Direct conversion of -Infinity from X to ISB should have produced ff800000 but actually produced ff000080.
/tmp/pspp-tst-20239/float-format.pspp:4: error: DEBUG FLOAT FORMAT: Indirect conversion of ff800000 from ISB to ISB should have produced ff800000 but actually produced ff000080.
/tmp/pspp-tst-20239/float-format.pspp:5: error: DEBUG FLOAT FORMAT: Direct conversion of NaN: from X to ISB should have produced 7f800001 but actually produced 7f000081.
/tmp/pspp-tst-20239/float-format.pspp:6: error: DEBUG FLOAT FORMAT: Direct conversion of NaN:e000000000000000 from X to ISB should have produced 7ff00000 but actually produced 7f0000f0.
/tmp/pspp-tst-20239/float-format.pspp:6: error: DEBUG FLOAT FORMAT: Indirect conversion of 7ff00000 from ISB to ISB should have produced 7ff00000 but actually produced 7f0000f0.
/tmp/pspp-tst-20239/float-format.pspp:6: error: DEBUG FLOAT FORMAT: Direct conversion of 7ffe000000000000 from IDB to ISB should have produced 7ff00000 but actually produced 7f0000f0.
...and so on...

Ben Pfaff <blp>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jstover (Posted a comment)
  • -email is unavailable- added by jmd (Posted a comment)
  • -email is unavailable- added by blp (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-08-15 blp StatusNeed Info Fixed
        Open/ClosedOpen Closed
    2007-07-28 blp StatusNone Need Info
        Carbon-Copy- Added jstover
        Carbon-Copy- Added "john mccabe-dansted" <gmatht@gmail.com>
    2007-07-25 blp ReleaseNone Before 0.6.0
    2007-02-09 blp Carbon-Copy- Added "john mccabe-dansted" <gmatht@gmail.com>

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code