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: Thu, 17 Dec 2015 17:23:29 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0357477456==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B3556E373 for ; Thu, 17 Dec 2015 09:23:29 -0800 (PST) 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 --===============0357477456== Content-Type: multipart/alternative; boundary="1450373009.EfC750.2096"; charset="UTF-8" --1450373009.EfC750.2096 Date: Thu, 17 Dec 2015 17:23:29 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=93425 Bug ID: 93425 Summary: d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 Product: Mesa Version: 11.0 Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: carmenbbakker2@gmail.com QA Contact: dri-devel@lists.freedesktop.org On Arch Linux, when using mesa >=11.0 and llvm-libs >=3.7, any use of gallium-nine segfaults. The bug is also reported here to the team behind gallium-nine, with more detailed information: https://github.com/iXit/Mesa-3D/issues/163 -- You are receiving this mail because: You are the assignee for the bug. --1450373009.EfC750.2096 Date: Thu, 17 Dec 2015 17:23:29 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 93425
Summary d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
Product Mesa
Version 11.0
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter carmenbbakker2@gmail.com
QA Contact dri-devel@lists.freedesktop.org

On Arch Linux, when using mesa >=11.0 and llvm-libs >=3.7, any use of
gallium-nine segfaults.

The bug is also reported here to the team behind gallium-nine, with more
detailed information: https://github.com/iXit/Mesa-3D/issues/163


You are receiving this mail because:
  • You are the assignee for the bug.
--1450373009.EfC750.2096-- --===============0357477456== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0357477456==-- 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: Fri, 18 Dec 2015 20:11:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1912794898==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A91456EAF5 for ; Fri, 18 Dec 2015 12:11:09 -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 --===============1912794898== Content-Type: multipart/alternative; boundary="1450469469.A57C1BBe0.24850"; charset="UTF-8" --1450469469.A57C1BBe0.24850 Date: Fri, 18 Dec 2015 20:11:09 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D93425 --- Comment #1 from Nicolai H=C3=A4hnle --- Judging by the gallium-nine bug report, this is a problem of translating TG= SI to LLVM IR, but that code is used all the time, so it's not obvious what the problem is. Can you reproduce the crash with LLVM compiled as a Debug build with debug symbols and post a new backtrace? (Be sure to also recompile Mesa, to exclu= de the possibility that there have been ABI changes.) --=20 You are receiving this mail because: You are the assignee for the bug. --1450469469.A57C1BBe0.24850 Date: Fri, 18 Dec 2015 20:11:09 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Comment= # 1 on bug 93425<= /a> from Nicolai H=C3=A4hnle
Judging by the gallium-nine bug report, this is a problem of t=
ranslating TGSI
to LLVM IR, but that code is used all the time, so it's not obvious what the
problem is.

Can you reproduce the crash with LLVM compiled as a Debug build with debug
symbols and post a new backtrace? (Be sure to also recompile Mesa, to exclu=
de
the possibility that there have been ABI changes.)


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1450469469.A57C1BBe0.24850-- --===============1912794898== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1912794898==-- 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: Sat, 19 Dec 2015 11:12:29 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1954678287==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 5FC846E377 for ; Sat, 19 Dec 2015 03:12:29 -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 --===============1954678287== Content-Type: multipart/alternative; boundary="1450523549.417FA5580.14332"; charset="UTF-8" --1450523549.417FA5580.14332 Date: Sat, 19 Dec 2015 11:12:29 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=93425 --- Comment #2 from Christoph Haag --- When compiling llvm with -DCMAKE_BUILD_TYPE=Debug and -DCMAKE_BUILD_TYPE=RelWithDebInfo and, it works. When compiling llvm with DCMAKE_BUILD_TYPE=Release, it doesn't work. *sigh* -- You are receiving this mail because: You are the assignee for the bug. --1450523549.417FA5580.14332 Date: Sat, 19 Dec 2015 11:12:29 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 2 on bug 93425 from
When compiling llvm with -DCMAKE_BUILD_TYPE=Debug and
-DCMAKE_BUILD_TYPE=RelWithDebInfo and, it works.

When compiling llvm with DCMAKE_BUILD_TYPE=Release, it doesn't work.

*sigh*


You are receiving this mail because:
  • You are the assignee for the bug.
--1450523549.417FA5580.14332-- --===============1954678287== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1954678287==-- 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: Sat, 19 Dec 2015 11:25:19 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0110752340==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C80976E128 for ; Sat, 19 Dec 2015 03:25:19 -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 --===============0110752340== Content-Type: multipart/alternative; boundary="1450524319.2b7c80.17495"; charset="UTF-8" --1450524319.2b7c80.17495 Date: Sat, 19 Dec 2015 11:25:19 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=93425 --- Comment #3 from Christoph Haag --- I think it's a similar alignment bug like the one clang has produced some time ago for me when compiling llvm: https://llvm.org/bugs/show_bug.cgi?id=21097#c4 0x78f6f76e in LLVMAddTargetDependentFunctionAttr () from /usr/lib32/libLLVM-3.8svn.so Wine-gdb> disassemble Dump of assembler code for function LLVMAddTargetDependentFunctionAttr: 0x78f6f730 <+0>: push %ebp 0x78f6f731 <+1>: push %edi 0x78f6f732 <+2>: push %esi 0x78f6f733 <+3>: push %ebx 0x78f6f734 <+4>: sub $0x108c,%esp 0x78f6f73a <+10>: orl $0x0,(%esp) 0x78f6f73e <+14>: add $0x1010,%esp 0x78f6f744 <+20>: pxor %xmm0,%xmm0 0x78f6f748 <+24>: mov 0x98(%esp),%eax 0x78f6f74f <+31>: lea 0x2c(%esp),%edx 0x78f6f753 <+35>: mov 0x90(%esp),%esi 0x78f6f75a <+42>: mov 0x94(%esp),%ebp 0x78f6f761 <+49>: mov %gs:0x14,%ecx 0x78f6f768 <+56>: mov %ecx,0x6c(%esp) 0x78f6f76c <+60>: xor %ecx,%ecx => 0x78f6f76e <+62>: movaps %xmm0,0x40(%esp) 0x78f6f773 <+67>: movl $0x0,0x20(%esp) 0x78f6f77b <+75>: movl $0x0,0x24(%esp) 0x78f6f783 <+83>: lea 0x20(%esp),%edi 0x78f6f787 <+87>: movaps %xmm0,0x50(%esp) Googling "llvm movaps alignment" brings up several related bugs. -- You are receiving this mail because: You are the assignee for the bug. --1450524319.2b7c80.17495 Date: Sat, 19 Dec 2015 11:25:19 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 3 on bug 93425 from
I think it's a similar alignment bug like the one clang has produced some time
ago for me when compiling llvm: https://llvm.org/bugs/show_bug.cgi?id=21097#c4

0x78f6f76e in LLVMAddTargetDependentFunctionAttr () from
/usr/lib32/libLLVM-3.8svn.so
Wine-gdb> disassemble
Dump of assembler code for function LLVMAddTargetDependentFunctionAttr:
   0x78f6f730 <+0>:     push   %ebp
   0x78f6f731 <+1>:     push   %edi
   0x78f6f732 <+2>:     push   %esi
   0x78f6f733 <+3>:     push   %ebx
   0x78f6f734 <+4>:     sub    $0x108c,%esp
   0x78f6f73a <+10>:    orl    $0x0,(%esp)
   0x78f6f73e <+14>:    add    $0x1010,%esp
   0x78f6f744 <+20>:    pxor   %xmm0,%xmm0
   0x78f6f748 <+24>:    mov    0x98(%esp),%eax
   0x78f6f74f <+31>:    lea    0x2c(%esp),%edx
   0x78f6f753 <+35>:    mov    0x90(%esp),%esi
   0x78f6f75a <+42>:    mov    0x94(%esp),%ebp
   0x78f6f761 <+49>:    mov    %gs:0x14,%ecx
   0x78f6f768 <+56>:    mov    %ecx,0x6c(%esp)
   0x78f6f76c <+60>:    xor    %ecx,%ecx
=> 0x78f6f76e <+62>:    movaps %xmm0,0x40(%esp)
   0x78f6f773 <+67>:    movl   $0x0,0x20(%esp)
   0x78f6f77b <+75>:    movl   $0x0,0x24(%esp)
   0x78f6f783 <+83>:    lea    0x20(%esp),%edi
   0x78f6f787 <+87>:    movaps %xmm0,0x50(%esp)

Googling "llvm movaps alignment" brings up several related bugs.


You are receiving this mail because:
  • You are the assignee for the bug.
--1450524319.2b7c80.17495-- --===============0110752340== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0110752340==-- 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: Sat, 19 Dec 2015 15:28:02 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1870570645==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C44FE6E03B for ; Sat, 19 Dec 2015 07:28:02 -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 --===============1870570645== Content-Type: multipart/alternative; boundary="1450538882.D05D0.4373"; charset="UTF-8" --1450538882.D05D0.4373 Date: Sat, 19 Dec 2015 15:28:02 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable https://bugs.freedesktop.org/show_bug.cgi?id=3D93425 Nicolai H=C3=A4hnle changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |NOTOURBUG --- Comment #4 from Nicolai H=C3=A4hnle --- Thanks, that was very helpful debugging work on your part! :) I guess the ball on this one is already in the Clang and/or LLVM court. --=20 You are receiving this mail because: You are the assignee for the bug. --1450538882.D05D0.4373 Date: Sat, 19 Dec 2015 15:28:02 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Nicolai H=C3=A4hnle changed bug 93425<= /a>
What Removed Added
Status NEW RESOLVED
Resolution --- NOTOURBUG

Comment= # 4 on bug 93425<= /a> from Nicolai H=C3=A4hnle
Thanks, that was very helpful debugging work on your part! :)
I guess the ball on this one is already in the Clang and/or LLVM court.
        


You are receiving this mail because: =20=20=20=20=20=20
  • You are the assignee for the bug.
--1450538882.D05D0.4373-- --===============1870570645== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1870570645==-- 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: Sat, 19 Dec 2015 19:31:55 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0610231155==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A20F66E226 for ; Sat, 19 Dec 2015 11:31:55 -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 --===============0610231155== Content-Type: multipart/alternative; boundary="1450553515.E3dEc0.21074"; charset="UTF-8" --1450553515.E3dEc0.21074 Date: Sat, 19 Dec 2015 19:31:55 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=93425 --- Comment #5 from Christoph Haag --- I compiled llvm with -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_FLAGS:STRING="-m32 -mstackrealign" \ -DCMAKE_CXX_FLAGS:STRING="-m32 -mstackrealign" \ and this works too. So I suppose this is related to https://bugs.archlinux.org/task/27560 -- You are receiving this mail because: You are the assignee for the bug. --1450553515.E3dEc0.21074 Date: Sat, 19 Dec 2015 19:31:55 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 5 on bug 93425 from
I compiled llvm with

-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS:STRING="-m32 -mstackrealign" \
-DCMAKE_CXX_FLAGS:STRING="-m32 -mstackrealign" \

and this works too.

So I suppose this is related to https://bugs.archlinux.org/task/27560


You are receiving this mail because:
  • You are the assignee for the bug.
--1450553515.E3dEc0.21074-- --===============0610231155== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0610231155==-- 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 03:27:25 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0847984134==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 906B26E2BB for ; Sat, 19 Dec 2015 19:27:25 -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 --===============0847984134== Content-Type: multipart/alternative; boundary="1450582045.2Daa0.3344"; charset="UTF-8" --1450582045.2Daa0.3344 Date: Sun, 20 Dec 2015 03:27:25 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=93425 --- Comment #6 from Matthew Scheirer --- For me mstackrealign has no effect but compiling in debug or debinfo works on 3.7.0. What more is debinfo doing beyond stack alignment that could correct issues otherwise unresolved? -- You are receiving this mail because: You are the assignee for the bug. --1450582045.2Daa0.3344 Date: Sun, 20 Dec 2015 03:27:25 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 6 on bug 93425 from
For me mstackrealign has no effect but compiling in debug or debinfo works on
3.7.0. What more is debinfo doing beyond stack alignment that could correct
issues otherwise unresolved?


You are receiving this mail because:
  • You are the assignee for the bug.
--1450582045.2Daa0.3344-- --===============0847984134== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0847984134==-- 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 08:46:39 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0817572324==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id BDE0D6E062 for ; Sun, 20 Dec 2015 00:46:39 -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 --===============0817572324== Content-Type: multipart/alternative; boundary="1450601199.c638Bcd0.1498"; charset="UTF-8" --1450601199.c638Bcd0.1498 Date: Sun, 20 Dec 2015 08:46:39 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=93425 --- Comment #7 from Christoph Haag --- Created attachment 120601 --> https://bugs.freedesktop.org/attachment.cgi?id=120601&action=edit disassembled release build vs relwithdeb build relwithdeb isn't *actually* a release build. It does not produce the problematic movaps instructions at all. -- You are receiving this mail because: You are the assignee for the bug. --1450601199.c638Bcd0.1498 Date: Sun, 20 Dec 2015 08:46:39 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 7 on bug 93425 from
Created attachment 120601 [details]
disassembled release build vs relwithdeb build

relwithdeb isn't *actually* a release build.

It does not produce the problematic movaps instructions at all.


You are receiving this mail because:
  • You are the assignee for the bug.
--1450601199.c638Bcd0.1498-- --===============0817572324== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0817572324==-- 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==-- 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 13:53:28 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1031318000==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 0EC6E6E172 for ; Sun, 20 Dec 2015 05:53:28 -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 --===============1031318000== Content-Type: multipart/alternative; boundary="1450619607.6b710.32326"; charset="UTF-8" --1450619607.6b710.32326 Date: Sun, 20 Dec 2015 13:53:27 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=93425 --- Comment #9 from Matthew Scheirer --- False alarm I guess, I just tried your svn package and the upstream mesagit one and both are working now. Wondering what changed between last night when they announced that package was working and now... -- You are receiving this mail because: You are the assignee for the bug. --1450619607.6b710.32326 Date: Sun, 20 Dec 2015 13:53:27 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 9 on bug 93425 from
False alarm I guess, I just tried your svn package and the upstream mesagit one
and both are working now. Wondering what changed between last night when they
announced that package was working and now...


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