From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#20567: guile 2.0.11 - test failures on mips64 big-endian with n32 ABI Date: Fri, 24 Jun 2016 07:17:50 +0200 Message-ID: <87k2hfjhc1.fsf@pobox.com> References: <14E7D810D073F84195C3EE3EBF1E9C35746EB81C@US-PLNO-EXM01-P.global.tektronix.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466745512 31846 80.91.229.3 (24 Jun 2016 05:18:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2016 05:18:32 +0000 (UTC) Cc: 20567@debbugs.gnu.org, "Schaefer, Frank" To: mhw@netris.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Jun 24 07:18:21 2016 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 1bGJVT-0000u1-RX for guile-bugs@m.gmane.org; Fri, 24 Jun 2016 07:18:19 +0200 Original-Received: from localhost ([::1]:40871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGJVP-0002J2-MA for guile-bugs@m.gmane.org; Fri, 24 Jun 2016 01:18:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGJVH-0002Cw-5J for bug-guile@gnu.org; Fri, 24 Jun 2016 01:18:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGJVC-000600-5c for bug-guile@gnu.org; Fri, 24 Jun 2016 01:18:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGJVB-0005zv-W4 for bug-guile@gnu.org; Fri, 24 Jun 2016 01:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bGJVB-0005Ad-MM for bug-guile@gnu.org; Fri, 24 Jun 2016 01:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 24 Jun 2016 05:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20567 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 20567-submit@debbugs.gnu.org id=B20567.146674547919865 (code B ref 20567); Fri, 24 Jun 2016 05:18:01 +0000 Original-Received: (at 20567) by debbugs.gnu.org; 24 Jun 2016 05:17:59 +0000 Original-Received: from localhost ([127.0.0.1]:53221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bGJV9-0005AL-Es for submit@debbugs.gnu.org; Fri, 24 Jun 2016 01:17:59 -0400 Original-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 ) id 1bGJV8-0005AE-CL for 20567@debbugs.gnu.org; Fri, 24 Jun 2016 01:17:58 -0400 Original-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= Original-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) Original-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) In-Reply-To: <14E7D810D073F84195C3EE3EBF1E9C35746EB81C@US-PLNO-EXM01-P.global.tektronix.net> (Frank Schaefer's message of "Wed, 13 May 2015 18:31:12 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-Pobox-Relay-ID: 03232CC0-39CB-11E6-B26C-C1836462E9F6-02397024!pb-sasl1.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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" Xref: news.gmane.org gmane.lisp.guile.bugs:8196 Archived-At: 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" 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.)