Debian Bug report logs - #785756
libffi: bug on arm64 when passing small struct on stack

version graph

Package: src:libffi; Maintainer for src:libffi is Debian GCC Maintainers <debian-gcc@lists.debian.org>;

Affects: src:python-cffi

Reported by: Edmund Grimley Evans <edmund.grimley.evans@gmail.com>

Date: Tue, 19 May 2015 20:33:01 UTC

Severity: normal

Tags: patch

Found in version libffi/3.1-2

Fixed in versions libffi/3.2.1-2, 3.2.1-2

Done: Matthias Klose <doko@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian GCC Maintainers <debian-gcc@lists.debian.org>:
Bug#785756; Package src:libffi. (Tue, 19 May 2015 20:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Edmund Grimley Evans <edmund.grimley.evans@gmail.com>:
New Bug report received and forwarded. Copy sent to Debian GCC Maintainers <debian-gcc@lists.debian.org>. (Tue, 19 May 2015 20:33:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Edmund Grimley Evans <edmund.grimley.evans@gmail.com>
To: submit@bugs.debian.org
Subject: libffi: bug on arm64 when passing small struct on stack
Date: Tue, 19 May 2015 21:31:16 +0100
[Message part 1 (text/plain, inline)]
Source: libffi
Version: 3.1-2
Tags: patch

The latest python-cffi (0.9.2-2) seems to have exposed a bug in libffi
on arm64:

https://buildd.debian.org/status/package.php?p=python-cffi&suite=sid

It seems to involve the case of small structs, that could be passed in
registers, being passed on the stack when there are insufficient
argument registers available.

The attached patch seems to fix the problem.

You'll want to check the logic carefully, and, if you were expecting
libffi's tests to detect that kind of thing, perhaps check that, too.

Thanks.
[libffi-3.1-2-arm64-2015-05-19.patch (text/x-diff, attachment)]

Added indication that 785756 affects src:python-cffi Request was from Stefano Rivera <stefanor@debian.org> to control@bugs.debian.org. (Sun, 28 Jun 2015 23:00:05 GMT) (full text, mbox, link).


Marked as fixed in versions libffi/3.2.1-2. Request was from Stefano Rivera <stefanor@debian.org> to control@bugs.debian.org. (Sun, 28 Jun 2015 23:00:06 GMT) (full text, mbox, link).


Reply sent to Matthias Klose <doko@debian.org>:
You have taken responsibility. (Wed, 08 Jul 2015 18:00:04 GMT) (full text, mbox, link).


Notification sent to Edmund Grimley Evans <edmund.grimley.evans@gmail.com>:
Bug acknowledged by developer. (Wed, 08 Jul 2015 18:00:04 GMT) (full text, mbox, link).


Message #14 received at 785756-done@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@debian.org>
To: 785756-done@bugs.debian.org
Subject: fixed in 3.2.1-2
Date: Wed, 08 Jul 2015 19:56:56 +0200
Version: 3.2.1-2

Fixed in 3.2.1-2



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 19 Aug 2015 07:31:17 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 5 01:22:33 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.