From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61911 invoked by alias); 18 Sep 2019 14:21:29 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 61902 invoked by uid 89); 18 Sep 2019 14:21:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 spammy=Jeffrey, jeffrey X-HELO: einhorn-mail.in-berlin.de Received: from einhorn-mail.in-berlin.de (HELO einhorn-mail.in-berlin.de) (217.197.80.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Sep 2019 14:21:28 +0000 X-Envelope-From: doko@ubuntu.com Received: from authenticated.user (localhost [127.0.0.1]) by einhorn.in-berlin.de with ESMTPSA id x8IELDAs005447 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 18 Sep 2019 16:21:13 +0200 Subject: Re: ../src/x86/ffi64.c:552:5: runtime error: store to misaligned address To: noloader@gmail.com, libffi-discuss@sourceware.org References: From: Matthias Klose Message-ID: Date: Wed, 18 Sep 2019 14:21:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019/txt/msg00031.txt.bz2 On 18.09.19 16:01, Jeffrey Walton wrote: > Hi Everyone, > > I'm testing OpenSC 0.19.0 using a sanitizer build. The sanitizer is > UBsan, and it is enabled with -fsanitize=undefined in CFLAGS and > CXXFLAGS. > > OpenSC depends upon p11-kit, and p11-kit depends upon libffi. During > testing of p11-kit, libffi is producing a finding when I 'make check': > > ../src/x86/ffi64.c:552:5: runtime error: store to misaligned address > 0x7ff660b53012 for type 'long long unsigned int', which requires 8 > byte alignment > 0x7ff660b53012: note: pointer points here > 00 00 49 bb 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 00 00 00 00 00 00 00 00 00 00 > ^ > ERROR: test-managed - missing test plan > > I believe the finding is produced by libffi-3.2.1. I can only say "I > believe" because I am having trouble tracking down > "../src/x86/ffi64.c". 'make check' is running from the p11-kit > directory, and ../src/x86/ffi64.c does not exist. you could verify that by getting the source shipped in the distribution apt source libffi and point "make check" to the source.