From owner-freebsd-ports@FreeBSD.ORG Fri Dec 26 12:55:23 2014 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 552136E5; Fri, 26 Dec 2014 12:55:23 +0000 (UTC) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFCE866C34; Fri, 26 Dec 2014 12:55:22 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id p9so8607207lbv.0; Fri, 26 Dec 2014 04:55:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=iYc5NCfTSXdissMNeC6/EUQMmwoNB2K+ovPsMUtlhPg=; b=hh9dWAnvbN4qLK8UharEHZvZtrN715KKk7EqgRfyvrmaZyQ5OeSqQa+GSgwx+8ENWY tJxsP+JyoIFYvWJGmcXqNNHmRCw7mbvQVyLFSttQiUL2w8Z1na2HR/6WFJNhpahbkhEo StPakemgUoIt/tzHKK3eoHafcv6HuM3Rjhcy9/gsJuU9Ks8tr/KThyf+7reTBBgRzPI3 o8SfZ8Nhwyh7uunO3R9vJ0x2T4ISAsKkBKmAX8znp52zA9b2iclxf5x+8QebHcdYLoBZ JyvvPMTdHiR4VBUz+vP5ki52uEjjn+FFV9uPdTrMuOUcXLyD2XtqoVI7L7c0T9zxFxyR bMUg== MIME-Version: 1.0 X-Received: by 10.152.37.105 with SMTP id x9mr42801406laj.96.1419598520971; Fri, 26 Dec 2014 04:55:20 -0800 (PST) Sender: thomas.e.zander@googlemail.com Received: by 10.25.77.17 with HTTP; Fri, 26 Dec 2014 04:55:20 -0800 (PST) In-Reply-To: <20141226101504.GG1754@kib.kiev.ua> References: <20141225134226.GA78595@marvin2011.fritz.box> <20141225150940.GF1754@kib.kiev.ua> <20141226101504.GG1754@kib.kiev.ua> Date: Fri, 26 Dec 2014 13:55:20 +0100 X-Google-Sender-Auth: TTM8AXy5koHKDPDrHlIh3x8jvaQ Message-ID: Subject: Re: [CFT] New upstream version of mplayer + mencoder From: Thomas Zander To: Konstantin Belousov Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-ports@freebsd.org" , multimedia@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Dec 2014 12:55:23 -0000 On 26 December 2014 at 11:15, Konstantin Belousov wrote: > It seems that everything makes circles around stack alignment and SSE. > At least, this is strongly suggested by references to OCFLAGS and the > fact that -fomit-frame-pointer implicitely changes stack alignment. > SIGBUS is somewhat consistent with this observation. Sounds sensible to me. Thanks for taking a look. > This might be a compiler bug (what compiler ? I cannot find a conclusive > answer in the PR), or more likely, it is a bug in inline assembler code, > which probably makes unwarranted assumptions about stack alignment. Presumably the reporters used the default compiler for the mplayer port, which is clang on 9.x and 10.x on i386 and amd64. The mplayer code (it bundles ffmpeg) assumes various alignments here and there, including 16 byte alignment in various handcrafted SSE code snippets. Let's try the stackrealign option and observe the results. I'll update the PR accordingly. Best Riggs