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

 
 

bug #19004: float-format.c portability problems

Submitted by:  Ben Pfaff <blp>
Submitted on:  Fri 09 Feb 2007 05:03:44 AM UTC  
 
Category: Compilation/PortabilitySeverity: 7 - Major
Status: FixedAssigned to: Ben Pfaff <blp>
Open/Closed: ClosedRelease: Before 0.6.0
Effort: 0.00

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

>...it works now.


Wonderful! Thanks Jason.

Ben Pfaff <blp>
Project AdministratorIn charge of this item.
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>
Project 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>
Project 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 15 Aug 2007 07:40:37 PM UTCblpStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Sat 28 Jul 2007 08:08:37 PM UTCblpStatusNone=>Need Info
      Carbon-Copy-=>Added jstover
      Carbon-Copy-=>Added "john mccabe-dansted"
    Wed 25 Jul 2007 03:20:50 PM UTCblpReleaseNone=>Before 0.6.0
    Fri 09 Feb 2007 05:03:44 AM UTCblpCarbon-Copy-=>Added "john mccabe-dansted"

    Back to the top


    Powered by Savane 3.1-cleanup1