X-Loop: help-debbugs@HIDDEN
Subject: bug#20567: guile 2.0.11 - test failures on mips64 big-endian with n32 ABI
Resent-From: "Schaefer, Frank" <frank.schaefer@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Wed, 13 May 2015 19:06:02 +0000
Resent-Message-ID: <handler.20567.B.14315439479864 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 20567
X-GNU-PR-Package: guile
X-GNU-PR-Keywords:
To: 20567 <at> debbugs.gnu.org
X-Debbugs-Original-To: "bug-guile@HIDDEN" <bug-guile@HIDDEN>
Received: via spool by submit <at> debbugs.gnu.org id=B.14315439479864
(code B ref -1); Wed, 13 May 2015 19:06:02 +0000
Received: (at submit) by debbugs.gnu.org; 13 May 2015 19:05:47 +0000
Received: from localhost ([127.0.0.1]:44064 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.80)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1YsbyU-0002Z0-4u
for submit <at> debbugs.gnu.org; Wed, 13 May 2015 15:05:46 -0400
Received: from eggs.gnu.org ([208.118.235.92]:55278)
by debbugs.gnu.org with esmtp (Exim 4.80)
(envelope-from <frank.schaefer@HIDDEN>) id 1YsbxF-0002We-Tl
for submit <at> debbugs.gnu.org; Wed, 13 May 2015 15:04:30 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <frank.schaefer@HIDDEN>) id 1Ysbx9-0006AD-QM
for submit <at> debbugs.gnu.org; Wed, 13 May 2015 15:04:24 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: ***
X-Spam-Status: No, score=3.3 required=5.0 tests=BAYES_50,
RECEIVED_FROM_WINDOWS_HOST autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59443)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from <frank.schaefer@HIDDEN>) id 1Ysbx9-0006A8-Nt
for submit <at> debbugs.gnu.org; Wed, 13 May 2015 15:04:23 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:40528)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from <frank.schaefer@HIDDEN>) id 1Ysbx8-0002jD-FY
for bug-guile@HIDDEN; Wed, 13 May 2015 15:04:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from <frank.schaefer@HIDDEN>) id 1Ysbx3-00067p-PI
for bug-guile@HIDDEN; Wed, 13 May 2015 15:04:22 -0400
Received: from mail-bn1on0112.outbound.protection.outlook.com
([157.56.110.112]:25876 helo=na01-bn1-obe.outbound.protection.outlook.com)
by eggs.gnu.org with esmtp (Exim 4.71)
(envelope-from <frank.schaefer@HIDDEN>) id 1Ysbx3-00067U-JN
for bug-guile@HIDDEN; Wed, 13 May 2015 15:04:17 -0400
Received: from CO2PR05CA052.namprd05.prod.outlook.com (10.141.241.180) by
DM2PR05MB975.namprd05.prod.outlook.com (10.141.176.28) with Microsoft SMTP
Server (TLS) id 15.1.154.19; Wed, 13 May 2015 18:31:54 +0000
Received: from BY2FFO11FD030.protection.gbl (2a01:111:f400:7c0c::151) by
CO2PR05CA052.outlook.office365.com (2a01:111:e400:1429::52) with Microsoft
SMTP Server (TLS) id 15.1.160.19 via Frontend Transport; Wed, 13 May 2015
18:31:54 +0000
Authentication-Results: spf=pass (sender IP is 192.65.42.19)
smtp.mailfrom=tekcomms.com; gnu.org; dkim=none (message not signed)
header.d=none;
Received-SPF: Pass (protection.outlook.com: domain of tekcomms.com designates
192.65.42.19 as permitted sender)
receiver=protection.outlook.com;
client-ip=192.65.42.19; helo=mx.danahertm.com;
Received: from mx.danahertm.com (192.65.42.19) by
BY2FFO11FD030.mail.protection.outlook.com (10.1.14.211) with Microsoft SMTP
Server (TLS) id 15.1.160.8 via Frontend Transport; Wed, 13 May 2015 18:31:53
+0000
Received: from US-BV-EXH02-P.global.tektronix.net (128.181.11.23) by
US-BV-EXE02-P.global.tektronix.net (128.181.15.52) with Microsoft SMTP Server
(TLS) id 14.3.224.2; Wed, 13 May 2015 11:31:36 -0700
Received: from US-PLNO-EXC01-P.global.tektronix.net (192.158.164.7) by
US-BV-EXH02-P.global.tektronix.net (128.181.11.23) with Microsoft SMTP Server
(TLS) id 14.3.224.2; Wed, 13 May 2015 11:31:38 -0700
Received: from US-PLNO-EXM01-P.global.tektronix.net
([fe80::3cd2:4426:c7d3:c119]) by US-PLNO-EXC01-P.global.tektronix.net
([fe80::469:bc6d:ec1d:6c37%12]) with mapi id 14.03.0224.002; Wed, 13 May 2015
13:31:14 -0500
From: "Schaefer, Frank" <frank.schaefer@HIDDEN>
Thread-Topic: guile 2.0.11 - test failures on mips64 big-endian with n32 ABI
Thread-Index: AdCNpfr1iJrxPnbQSRGDd3S3pMkLSw==
Date: Wed, 13 May 2015 18:31:12 +0000
Message-ID: <14E7D810D073F84195C3EE3EBF1E9C35746EB81C@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [134.64.81.228]
Content-Type: multipart/mixed;
boundary="_002_14E7D810D073F84195C3EE3EBF1E9C35746EB81CUSPLNOEXM01Pglo_"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD030;
1:qTnmSUc++151Nst1+FQq1GlgPp4OE/A3+u+O229Uw95v7KAVwRuf483Q/iMLakpsNq4JO4cb6Mt34CSj0nOWgsB8ilcH9iy4rOSYzwx0BFGtwrWfytQ3me+54wSXyXjmJx6JNvxUOfLCYOkOkOg4AT2iMKg5K9BQWEbP/2am8stU7AEX4Ja/Ax5nHJ3S4Ode9GXShC+rZzZXBTGk5368coa7FeM7RKfLS95ulphPP+xrJAukPQ2oxqOrD+FXDvL4MZgxw5uRp9HZ7MHTCuwTzw==
X-Forefront-Antispam-Report: CIP:192.65.42.19; CTRY:US; IPV:NLI; EFV:NLI;
SFV:NSPM;
SFS:(10019020)(6009001)(438002)(199003)(189002)(5423002)(6806004)(110136002)(54356999)(568964001)(84326002)(189998001)(2656002)(87936001)(46102003)(2900100001)(4610100001)(5260100001)(55846006)(92566002)(450100001)(2930100002)(86362001)(62966003)(2920100001)(77156002)(99936001)(107886002)(50986999)(5001970100001)(5890100001)(2501003)(5250100002)(19580395003)(33656002)(106466001)(102836002)(66066001)(512954002)(22756005)(2351001)(229853001)(7099028);
DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR05MB975; H:mx.danahertm.com; FPR:;
SPF:Pass; MLV:ovrnspm; A:1; MX:1; PTR:mx2.danahertm.com; LANG:en;
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR05MB975;
X-Microsoft-Antispam-PRVS: <DM2PR05MB9750C21BCB8B273A575CFFDE3D90@HIDDEN>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0;
RULEID:(601004)(5005006)(3002001); SRVR:DM2PR05MB975; BCL:0; PCL:0; RULEID:;
SRVR:DM2PR05MB975;
X-Forefront-PRVS: 0575F81B58
X-OriginatorOrg: tekcomms.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2015 18:31:53.3585 (UTC)
X-MS-Exchange-CrossTenant-Id: 937985d5-3f80-4fc9-be29-0bccc11e8b77
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=937985d5-3f80-4fc9-be29-0bccc11e8b77; Ip=[192.65.42.19];
Helo=[mx.danahertm.com]
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR05MB975
X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
(bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Mailman-Approved-At: Wed, 13 May 2015 15:05:44 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)
--_002_14E7D810D073F84195C3EE3EBF1E9C35746EB81CUSPLNOEXM01Pglo_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
I've encountered two test failures with guile 2.0.11 on mips64 big-endian, =
whenever I build with -mabi=3Dn32 (these test failures do not occur with -m=
abi=3D64). At least one of them I have resolved with the attached patch.
First testcase failure: test-ffi (fixed by my patch). The guile code appar=
ently assumes that sizeof(ffi_arg)<=3Dsizeof(void **). This is a faulty as=
sumption; it holds on *most* platforms, but with the mips64 n32 ABI, sizeof=
(void **)=3D=3D4, and sizeof(ffi_arg)=3D=3D8. So every foreign function th=
at returns a pointer is liable to corrupt data, and anyone retrieving the r=
eturn value as a simple void * is only going to get sign-extension garbage =
on big-endian (usually NULL).
Second testcase failure: check-guile fails due to 'ERROR: foreign.test: pro=
cedure->pointer: qsort - arguments: ((null-pointer-error "pointer->bytevect=
or" "null pointer dereference" () ()))'. I strongly suspect it's related t=
o the ffi_arg issue mentioned above, but I'm still peeling away macro uglin=
ess to track it down. If anyone wants to pitch in with additional guidance=
or patchwork, I'd be happy to listen and test.
(The patch applies against 2.0.11 release or against current HEAD, where it=
also fixes the new testcases for test-foreign-object-scm and test-foreign-=
object-c. HEAD also fails the test-out-of-memory case, though, which precl=
udes further unit tests.)
--_002_14E7D810D073F84195C3EE3EBF1E9C35746EB81CUSPLNOEXM01Pglo_
Content-Type: application/octet-stream;
name="0001-use-ffi_arg-instead-of-void-to-hold-FFI-call-return-.patch"
Content-Description: 0001-use-ffi_arg-instead-of-void-to-hold-FFI-call-return-.patch
Content-Disposition: attachment;
filename="0001-use-ffi_arg-instead-of-void-to-hold-FFI-call-return-.patch";
size=1414; creation-date="Wed, 13 May 2015 18:29:56 GMT";
modification-date="Wed, 13 May 2015 18:29:09 GMT"
Content-Transfer-Encoding: base64
RnJvbSA3OGNhNzFiMzE0ZjRhZDYyZDM5ZDlhY2M1M2ZhYmYwYzQxZmE3NTIxIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBGcmFuayBTY2hhZWZlciA8ZnJhbmsuc2NoYWVmZXJAdGVrY29t
bXMuY29tPgpEYXRlOiBXZWQsIDEzIE1heSAyMDE1IDE3OjQ5OjI5ICswMDAwClN1YmplY3Q6IFtQ
QVRDSF0gdXNlIGZmaV9hcmcgaW5zdGVhZCBvZiB2b2lkICogdG8gaG9sZCBGRkkgY2FsbCByZXR1
cm4gdmFsdWVzCgotLS0KIGxpYmd1aWxlL2ZvcmVpZ24uYyB8IDUgKysrLS0KIDEgZmlsZSBjaGFu
Z2VkLCAzIGluc2VydGlvbnMoKyksIDIgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvbGliZ3Vp
bGUvZm9yZWlnbi5jIGIvbGliZ3VpbGUvZm9yZWlnbi5jCmluZGV4IDBjYWI2YjguLjUxNzlkOGUg
MTAwNjQ0Ci0tLSBhL2xpYmd1aWxlL2ZvcmVpZ24uYworKysgYi9saWJndWlsZS9mb3JlaWduLmMK
QEAgLTI2LDYgKzI2LDcgQEAKICNpbmNsdWRlIDxhbGlnbm9mLmg+CiAjaW5jbHVkZSA8c3RyaW5n
Lmg+CiAjaW5jbHVkZSA8YXNzZXJ0Lmg+CisjaW5jbHVkZSA8c3RkaW50Lmg+CiAKICNpbmNsdWRl
ICJsaWJndWlsZS9fc2NtLmgiCiAjaW5jbHVkZSAibGliZ3VpbGUvYnl0ZXZlY3RvcnMuaCIKQEAg
LTk2OSw3ICs5NzAsNyBAQCBwYWNrIChjb25zdCBmZmlfdHlwZSAqIHR5cGUsIGNvbnN0IHZvaWQg
KmxvYywgaW50IHJldHVybl92YWx1ZV9wKQogCXJldHVybiBzY21fZnJvbV9wb2ludGVyIChtZW0s
IE5VTEwpOwogICAgICAgfQogICAgIGNhc2UgRkZJX1RZUEVfUE9JTlRFUjoKLSAgICAgIHJldHVy
biBzY21fZnJvbV9wb2ludGVyICgqKHZvaWQgKiopIGxvYywgTlVMTCk7CisgICAgICByZXR1cm4g
c2NtX2Zyb21fcG9pbnRlciAoKHZvaWQgKikoaW50cHRyX3QpKCooZmZpX2FyZyAqKSBsb2MpLCBO
VUxMKTsKICAgICBkZWZhdWx0OgogICAgICAgYWJvcnQgKCk7CiAgICAgfQpAQCAtMTAwMyw3ICsx
MDA0LDcgQEAgc2NtX2lfZm9yZWlnbl9jYWxsIChTQ00gZm9yZWlnbiwgY29uc3QgU0NNICphcmd2
KQogICAgIGFyZ19zaXplICs9IGNpZi0+YXJnX3R5cGVzW2ldLT5zaXplICsgY2lmLT5hcmdfdHlw
ZXNbaV0tPmFsaWdubWVudCAtIDE7CiAKICAgLyogU3BhY2UgZm9yIGFyZ3VtZW50IHZhbHVlcywg
Zm9sbG93ZWQgYnkgcmV0dXJuIHZhbHVlLiAgKi8KLSAgZGF0YSA9IGFsbG9jYSAoYXJnX3NpemUg
KyBjaWYtPnJ0eXBlLT5zaXplCisgIGRhdGEgPSBhbGxvY2EgKGFyZ19zaXplICsgbWF4IChzaXpl
b2YoZmZpX2FyZyksIGNpZi0+cnR5cGUtPnNpemUpCiAJCSArIG1heCAoc2l6ZW9mICh2b2lkICop
LCBjaWYtPnJ0eXBlLT5hbGlnbm1lbnQpKTsKIAogICAvKiBVbnBhY2sgQVJHViB0byBuYXRpdmUg
dmFsdWVzLCBzZXR0aW5nIEFSR1YgcG9pbnRlcnMuICAqLwotLSAKMi4zLjEKCg==
--_002_14E7D810D073F84195C3EE3EBF1E9C35746EB81CUSPLNOEXM01Pglo_--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: "Schaefer, Frank" <frank.schaefer@HIDDEN> Subject: bug#20567: Acknowledgement (guile 2.0.11 - test failures on mips64 big-endian with n32 ABI) Message-ID: <handler.20567.B.14315439479864.ack <at> debbugs.gnu.org> References: <14E7D810D073F84195C3EE3EBF1E9C35746EB81C@HIDDEN> X-Gnu-PR-Message: ack 20567 X-Gnu-PR-Package: guile Reply-To: 20567 <at> debbugs.gnu.org Date: Wed, 13 May 2015 19:06:03 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-guile@HIDDEN If you wish to submit further information on this problem, please send it to 20567 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 20567: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20567 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#20567: guile 2.0.11 - test failures on mips64 big-endian with n32 ABI
Resent-From: Andy Wingo <wingo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Fri, 24 Jun 2016 05:18:01 +0000
Resent-Message-ID: <handler.20567.B20567.146674547919865 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 20567
X-GNU-PR-Package: guile
X-GNU-PR-Keywords:
To: mhw@HIDDEN
Cc: 20567 <at> debbugs.gnu.org, "Schaefer, Frank" <frank.schaefer@HIDDEN>
Received: via spool by 20567-submit <at> debbugs.gnu.org id=B20567.146674547919865
(code B ref 20567); Fri, 24 Jun 2016 05:18:01 +0000
Received: (at 20567) by debbugs.gnu.org; 24 Jun 2016 05:17:59 +0000
Received: from localhost ([127.0.0.1]:53221 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1bGJV9-0005AL-Es
for submit <at> debbugs.gnu.org; Fri, 24 Jun 2016 01:17:59 -0400
Received: from pb-sasl1.pobox.com ([64.147.108.66]:59202
helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <wingo@HIDDEN>) id 1bGJV8-0005AE-CL
for 20567 <at> debbugs.gnu.org; Fri, 24 Jun 2016 01:17:58 -0400
Received: from sasl.smtp.pobox.com (unknown [127.0.0.1])
by pb-sasl1.pobox.com (Postfix) with ESMTP id 18A3526E69;
Fri, 24 Jun 2016 01:17:58 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc
:subject:references:date:in-reply-to:message-id:mime-version
:content-type; s=sasl; bh=Uu+NoFCxJOJuaXcMD5BphOfa4pQ=; b=obYRdo
EX0X/vY+oA2AbclOHLJ03jj2J9WXTnbtBzGZPFs/MvGxa24sEzSISVnsXS0o1i2S
D8Rm46djkpZ7MbTz0f8xDrLm4+8SflWO9W8ZW5OuxwEDwv0/BHjqODI6SEeLuaWU
Q1eTzCYNp61h75M/wjtyV1C5DoD4z31tHntag=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc
:subject:references:date:in-reply-to:message-id:mime-version
:content-type; q=dns; s=sasl; b=OpyKx9xxeYQh3LVGxlvTbxJQUTyo9AzW
pe4R1VUyMZHtMro1jk8KzwgV78YUmoLPAIAUmGq8KXqNhGfPf76UmZQiLVSwNHa/
Mvw6gWTeM6ddMzAXjo6ltXUCq7L5mqzEs+TZtMO/lFy9tWl2del51shjBKPclBE+
vcPDjgeCdaQ=
Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1])
by pb-sasl1.pobox.com (Postfix) with ESMTP id 1011A26E68;
Fri, 24 Jun 2016 01:17:58 -0400 (EDT)
Received: from clucks (unknown [88.160.190.192])
(using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 5F63426E67;
Fri, 24 Jun 2016 01:17:57 -0400 (EDT)
From: Andy Wingo <wingo@HIDDEN>
References: <14E7D810D073F84195C3EE3EBF1E9C35746EB81C@HIDDEN>
Date: Fri, 24 Jun 2016 07:17:50 +0200
In-Reply-To: <14E7D810D073F84195C3EE3EBF1E9C35746EB81C@HIDDEN>
(Frank Schaefer's message of "Wed, 13 May 2015 18:31:12 +0000")
Message-ID: <87k2hfjhc1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Pobox-Relay-ID: 03232CC0-39CB-11E6-B26C-C1836462E9F6-02397024!pb-sasl1.pobox.com
X-Spam-Score: -1.4 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.4 (-)
Mark does this ring a bell to you? I know you have a mip64 n32 machine
that you use sometimes.
Andy
On Wed 13 May 2015 20:31, "Schaefer, Frank" <frank.schaefer@HIDDEN> writes:
> I've encountered two test failures with guile 2.0.11 on mips64
> big-endian, whenever I build with -mabi=n32 (these test failures do
> not occur with -mabi=64). At least one of them I have resolved with
> the attached patch.
>
> First testcase failure: test-ffi (fixed by my patch). The guile code
> apparently assumes that sizeof(ffi_arg)<=sizeof(void **). This is a
> faulty assumption; it holds on *most* platforms, but with the mips64
> n32 ABI, sizeof(void **)==4, and sizeof(ffi_arg)==8. So every foreign
> function that returns a pointer is liable to corrupt data, and anyone
> retrieving the return value as a simple void * is only going to get
> sign-extension garbage on big-endian (usually NULL).
>
> Second testcase failure: check-guile fails due to 'ERROR:
> foreign.test: procedure->pointer: qsort - arguments:
> ((null-pointer-error "pointer->bytevector" "null pointer dereference"
> () ()))'. I strongly suspect it's related to the ffi_arg issue
> mentioned above, but I'm still peeling away macro ugliness to track it
> down. If anyone wants to pitch in with additional guidance or
> patchwork, I'd be happy to listen and test.
>
> (The patch applies against 2.0.11 release or against current HEAD,
> where it also fixes the new testcases for test-foreign-object-scm and
> test-foreign-object-c. HEAD also fails the test-out-of-memory case,
> though, which precludes further unit tests.)
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.