From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Jul 17 12:38:54 2014 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DFB93EDC for ; Thu, 17 Jul 2014 12:38:54 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AD3C6220E for ; Thu, 17 Jul 2014 12:38:54 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.8/8.14.8) with ESMTP id s6HCcsag079386 for ; Thu, 17 Jul 2014 12:38:54 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 191921] New: [patch] multimedia/libva causes executable to terminate abnormally Date: Thu, 17 Jul 2014 12:38:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports Tree X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jiashiun@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2014 12:38:54 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191921 Bug ID: 191921 Summary: [patch] multimedia/libva causes executable to terminate abnormally Product: Ports Tree Version: Latest Hardware: amd64 OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: jiashiun@gmail.com at end of execution, executable terminates with bus error when calling vaTerminate() like below: jsli@jsli-bsd:~ % vainfo libva info: VA-API version 0.35.1 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/local/lib/va/i965_drv_video.so libva info: Found init function __vaDriverInit_0_35 libva info: va_openDriver() returns 0 vainfo: VA-API version: 0.35 (libva 1.3.1) vainfo: Driver version: Intel i965 driver - 1.3.1 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD Bus error (core dumped) jsli@jsli-bsd:~ % It is a use-after-free bug already fixed upstream[1]. Supposed to be included in v1.3.2. Not sure when will v1.3.2 be released so here is the patch picked from upstream to fix it for now. Tested with FreeBSD version FreeBSD jsli-bsd 11.0-CURRENT FreeBSD 11.0-CURRENT #19 r268599: Mon Jul 14 11:00:28 CST 2014 jsli@jsli-bsd64:/usr/obj/usr/src/sys/GENERIC amd64 i915kms.ko loaded, and C2D E7400 / G45 chipset. Also tested ok on nVidia G105M with libva-vdpau-driver and nvidia.ko built from ports. [1]: http://cgit.freedesktop.org/libva/commit/?id=c61d8c6ce9ffc27320e9e177c1e1123d5f1b5014 -- You are receiving this mail because: You are the assignee for the bug.