All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
@ 2015-12-17 17:23 bugzilla-daemon
  2015-12-18 20:11 ` bugzilla-daemon
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-12-17 17:23 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 864 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 2222 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
  2015-12-17 17:23 [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 bugzilla-daemon
@ 2015-12-18 20:11 ` bugzilla-daemon
  2015-12-19 11:12 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-12-18 20:11 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 575 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93425

--- Comment #1 from Nicolai Hähnle <nhaehnle@gmail.com> ---
Judging by the gallium-nine bug report, this is a problem of translating 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 exclude
the possibility that there have been ABI changes.)

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1390 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
  2015-12-17 17:23 [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 bugzilla-daemon
  2015-12-18 20:11 ` bugzilla-daemon
@ 2015-12-19 11:12 ` bugzilla-daemon
  2015-12-19 11:25 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-12-19 11:12 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 370 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93425

--- Comment #2 from Christoph Haag <haagch@frickel.club> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 1165 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
  2015-12-17 17:23 [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 bugzilla-daemon
  2015-12-18 20:11 ` bugzilla-daemon
  2015-12-19 11:12 ` bugzilla-daemon
@ 2015-12-19 11:25 ` bugzilla-daemon
  2015-12-19 15:28 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-12-19 11:25 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1470 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93425

--- Comment #3 from Christoph Haag <haagch@frickel.club> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 2462 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
  2015-12-17 17:23 [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2015-12-19 11:25 ` bugzilla-daemon
@ 2015-12-19 15:28 ` bugzilla-daemon
  2015-12-19 19:31 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-12-19 15:28 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 636 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93425

Nicolai Hähnle <nhaehnle@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |NOTOURBUG

--- Comment #4 from Nicolai Hähnle <nhaehnle@gmail.com> ---
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:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
  2015-12-17 17:23 [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2015-12-19 15:28 ` bugzilla-daemon
@ 2015-12-19 19:31 ` bugzilla-daemon
  2015-12-20  3:27 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-12-19 19:31 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 428 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93425

--- Comment #5 from Christoph Haag <haagch@frickel.club> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 1355 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
  2015-12-17 17:23 [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2015-12-19 19:31 ` bugzilla-daemon
@ 2015-12-20  3:27 ` bugzilla-daemon
  2015-12-20  8:46 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-12-20  3:27 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 378 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93425

--- Comment #6 from Matthew Scheirer <matt.scheirer@gmail.com> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 1239 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
  2015-12-17 17:23 [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2015-12-20  3:27 ` bugzilla-daemon
@ 2015-12-20  8:46 ` bugzilla-daemon
  2015-12-20  9:07 ` bugzilla-daemon
  2015-12-20 13:53 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-12-20  8:46 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 445 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93425

--- Comment #7 from Christoph Haag <haagch@frickel.club> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 1485 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
  2015-12-17 17:23 [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 bugzilla-daemon
                   ` (6 preceding siblings ...)
  2015-12-20  8:46 ` bugzilla-daemon
@ 2015-12-20  9:07 ` bugzilla-daemon
  2015-12-20 13:53 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-12-20  9:07 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1001 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93425

--- Comment #8 from Christoph Haag <haagch@frickel.club> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 2246 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7
  2015-12-17 17:23 [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 bugzilla-daemon
                   ` (7 preceding siblings ...)
  2015-12-20  9:07 ` bugzilla-daemon
@ 2015-12-20 13:53 ` bugzilla-daemon
  8 siblings, 0 replies; 10+ messages in thread
From: bugzilla-daemon @ 2015-12-20 13:53 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 399 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=93425

--- Comment #9 from Matthew Scheirer <matt.scheirer@gmail.com> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 1260 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-12-20 13:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-17 17:23 [Bug 93425] d3dadapter.so (gallium-nine) segfaults since Mesa 11.0/LLVM 3.7 bugzilla-daemon
2015-12-18 20:11 ` bugzilla-daemon
2015-12-19 11:12 ` bugzilla-daemon
2015-12-19 11:25 ` bugzilla-daemon
2015-12-19 15:28 ` bugzilla-daemon
2015-12-19 19:31 ` bugzilla-daemon
2015-12-20  3:27 ` bugzilla-daemon
2015-12-20  8:46 ` bugzilla-daemon
2015-12-20  9:07 ` bugzilla-daemon
2015-12-20 13:53 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.