From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geert Janssens Newsgroups: gmane.lisp.guile.bugs Subject: bug#15842: Integer overflow on Mac OS X 64-bit Date: Sat, 09 Nov 2013 17:39:10 +0100 Organization: Kobalt W.I.T. Message-ID: <20974648.zh0m7Q2JlI@legolas.kobaltwit.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1650399.WAnmtPePMy"; micalg="pgp-sha1"; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1384033331 19263 80.91.229.3 (9 Nov 2013 21:42:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Nov 2013 21:42:11 +0000 (UTC) To: 15842@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Nov 09 22:42:15 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VfGII-0001dS-Tt for guile-bugs@m.gmane.org; Sat, 09 Nov 2013 22:42:15 +0100 Original-Received: from localhost ([::1]:58404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfGII-0001kw-Gh for guile-bugs@m.gmane.org; Sat, 09 Nov 2013 16:42:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfDIS-0000BS-Tl for bug-guile@gnu.org; Sat, 09 Nov 2013 13:30:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfDIM-0002c0-Ab for bug-guile@gnu.org; Sat, 09 Nov 2013 13:30:12 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfDIM-0002bV-6s for bug-guile@gnu.org; Sat, 09 Nov 2013 13:30:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VfDIK-0007Hr-S0 for bug-guile@gnu.org; Sat, 09 Nov 2013 13:30:05 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Geert Janssens Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 09 Nov 2013 18:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15842 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138402177927941 (code B ref -1); Sat, 09 Nov 2013 18:30:03 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Nov 2013 18:29:39 +0000 Original-Received: from localhost ([127.0.0.1]:44475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VfDHt-0007GZ-U1 for submit@debbugs.gnu.org; Sat, 09 Nov 2013 13:29:38 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34289) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VfBZZ-0004aw-5E for submit@debbugs.gnu.org; Sat, 09 Nov 2013 11:39:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfBZN-00020h-5B for submit@debbugs.gnu.org; Sat, 09 Nov 2013 11:39:39 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45455) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfBZN-00020G-1a for submit@debbugs.gnu.org; Sat, 09 Nov 2013 11:39:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfBZG-0008S4-VI for bug-guile@gnu.org; Sat, 09 Nov 2013 11:39:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfBZB-0001mR-3b for bug-guile@gnu.org; Sat, 09 Nov 2013 11:39:26 -0500 Original-Received: from georges.telenet-ops.be ([195.130.137.68]:37971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfBZA-0001lG-Qn for bug-guile@gnu.org; Sat, 09 Nov 2013 11:39:21 -0500 Original-Received: from smtp.kobaltwit.lan ([81.82.192.49]) by georges.telenet-ops.be with bizsmtp id nUfH1m00e14QHfV06UfHyN; Sat, 09 Nov 2013 17:39:17 +0100 Original-Received: from localhost (unknown [127.0.0.1]) by smtp.kobaltwit.lan (Postfix) with ESMTP id A564120C8F for ; Sat, 9 Nov 2013 16:39:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at kobaltwit.lan Original-Received: from smtp.kobaltwit.lan ([127.0.0.1]) by localhost (hosting.kobaltwit.lan [127.0.0.1]) (amavisd-new, port 10024) with LMTP id kfCQp80y-hr6 for ; Sat, 9 Nov 2013 17:39:16 +0100 (CET) Original-Received: from legolas.kobaltwit.lan (legolas.kobaltwit.lan [192.168.93.4]) by smtp.kobaltwit.lan (Postfix) with ESMTP id C534420C8E for ; Sat, 9 Nov 2013 17:39:16 +0100 (CET) User-Agent: KMail/4.11.2 (Linux/3.11.6-200.fc19.x86_64; KDE/4.11.2; x86_64; ; ) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sat, 09 Nov 2013 13:29:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sat, 09 Nov 2013 16:42:11 -0500 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7337 Archived-At: --nextPart1650399.WAnmtPePMy Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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 --nextPart1650399.WAnmtPePMy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAABAgAGBQJSfmU0AAoJEHfzid++mLPj6FEIALYz/o6+1oKbeOH4ko6o3zFW HvK2ix4C/FSxHSco0bRPcqZn/waD1doLrricCaGfE/yHCD1yB9fEZrmjm1T8lxNM cBtyq6yF6aG3nIg5lVzb8OlhfaIuuQeWbCJDJsHiSlI6BIgt7RrlolE21Ra0q4X/ pNMSriTq+QsuVln0IEfn2ZdmzAiRlxcVFTgCTPLV3++EYwEvZxXXiT2C3jgRLRV4 sRVbMCOan4ZSf9rNXULnAbUv6mDf8sLYKsyVSppEHR05ZcidWObLrOh8ntN1+c1H MvBv0jmZsngo635Slt3nJKuQ1sTNhGWdZF1Ct4bEkGEN253NSglw9Fp4OS5qyms= =9Slx -----END PGP SIGNATURE----- --nextPart1650399.WAnmtPePMy--