GNU bug report logs - #15842
Integer overflow on Mac OS X 64-bit

Previous Next

Package: guile;

Reported by: Geert Janssens <geert <at> kobaltwit.be>

Date: Sat, 9 Nov 2013 18:30:03 UTC

Severity: normal

Done: Mark H Weaver <mhw <at> netris.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Geert Janssens <geert <at> kobaltwit.be>
To: bug-guile <at> gnu.org
Subject: Integer overflow on Mac OS X 64-bit
Date: Sat, 09 Nov 2013 17:39:10 +0100
[Message part 1 (text/plain, inline)]
Hi,

I am experimenting with swig bindings for guile on Mac OS X. One of the 
swig tests (the integer test) is failing. I am aware that swig is not 
guile, but the bug seems to be reproducible in pure guile as well.

When I calculate (2^64) -1 on the Mac OS X platform, it returns -1. On 
my fedora system, the same calculation returns
18446744073709551615

The scheme command used for this is
(display (- (expt 2 64) 1))(newline)

Note that I don't have direct access to a 64-bit Mac OS X system. I have 
run into this bug via that travis CI service.

Here's a link to one of the test runs for swig on that platform:
https://travis-ci.org/gjanssens/swig/jobs/13730706
The output of the calculation as given above is on line 2161.
(The test is missing the (newline) part, so some additional output is 
appended on the same line. This comes from another display command 
though).

I'm not sure what additional information I can provide. If you need, I 
can run more tests indirectly on the travis platform, but other than 
that, my options are fairly limited.

Geert
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 11 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.