From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 Date: Sun, 20 Dec 2015 09:07:38 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2062800519==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 608BE6E029 for ; Sun, 20 Dec 2015 01:07:38 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============2062800519== Content-Type: multipart/alternative; boundary="1450602458.262eB20.5624"; charset="UTF-8" --1450602458.262eB20.5624 Date: Sun, 20 Dec 2015 09:07:38 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=93425 --- Comment #8 from Christoph Haag --- Created attachment 120603 --> https://bugs.freedesktop.org/attachment.cgi?id=120603&action=edit disassembled release build with -mstackrealign Here is my release build with -mstackrealign that works: http://haagch.frickel.club/files/lib32-llvm-libs-svn-256101-1-x86_64.pkg.tar.gz http://haagch.frickel.club/files/lib32-llvm-svn-256101-1-x86_64.pkg.tar.gz They are compiled with -march=native for my ivy bridge cpu, so maybe that has some influence. Disassembling the same function shows different offsets for movaps: 0x0047a805 <+69>: movaps %xmm0,-0x48(%ebp) 0x0047a815 <+85>: movaps %xmm0,-0x38(%ebp) You can check with gdb -q /usr/lib32/libLLVM-3.8svn.so -ex "disassemble LLVMAddTargetDependentFunctionAttr" Probably: movaps %xmm0,-0x48(%ebp) is right movaps %xmm0,-0x40(%ebp) is wrong -- You are receiving this mail because: You are the assignee for the bug. --1450602458.262eB20.5624 Date: Sun, 20 Dec 2015 09:07:38 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 8 on bug 93425 from
Created attachment 120603 [details]
disassembled release build with -mstackrealign

Here is my release build with -mstackrealign that works:

http://haagch.frickel.club/files/lib32-llvm-libs-svn-256101-1-x86_64.pkg.tar.gz
http://haagch.frickel.club/files/lib32-llvm-svn-256101-1-x86_64.pkg.tar.gz

They are compiled with -march=native for my ivy bridge cpu, so maybe that has
some influence.

Disassembling the same function shows different offsets for movaps:

   0x0047a805 <+69>:    movaps %xmm0,-0x48(%ebp)

   0x0047a815 <+85>:    movaps %xmm0,-0x38(%ebp)

You can check with

gdb -q /usr/lib32/libLLVM-3.8svn.so -ex "disassemble
LLVMAddTargetDependentFunctionAttr"

Probably:
movaps %xmm0,-0x48(%ebp) is right
movaps %xmm0,-0x40(%ebp) is wrong


You are receiving this mail because:
  • You are the assignee for the bug.
--1450602458.262eB20.5624-- --===============2062800519== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============2062800519==--