From: Geert Janssens <geert@kobaltwit.be>
To: 15842@debbugs.gnu.org
Subject: bug#15842: Integer overflow on Mac OS X 64-bit
Date: Sat, 09 Nov 2013 17:39:10 +0100 [thread overview]
Message-ID: <20974648.zh0m7Q2JlI@legolas.kobaltwit.lan> (raw)
[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
next reply other threads:[~2013-11-09 16:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-09 16:39 Geert Janssens [this message]
2013-11-14 7:22 ` bug#15842: Integer overflow on Mac OS X 64-bit William S Fulton
2013-11-15 0:25 ` Mark H Weaver
2013-11-15 8:24 ` Geert Janssens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20974648.zh0m7Q2JlI@legolas.kobaltwit.lan \
--to=geert@kobaltwit.be \
--cc=15842@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).