Skip to contentSkip to conversation

New: GTK apps crash X11 since last update of LLVMM

Bug 65438 [email protected] 1 participant 15 messages Jun 6, 2013 – Jun 14, 2013

lore
Share & tools
lore
#0 lore raw

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

Priority: medium
Bug ID: 65438
Assignee: [email protected]
Summary: GTK apps crash X11 since last update of LLVMM
Severity: blocker
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: NEW
Version: git
Component: Drivers/Gallium/radeonsi
Product: Mesa

Created attachment 80375
--> https://bugs.freedesktop.org/attachment.cgi?id=80375&action=edit
crash report

firefox / google-chrome or any other GTK2 app crash X11 inmediately since last checkout of llvm svn

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cape Verde XT [Radeon HD 7770 GHz Edition]

OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD CAPE VERDE OpenGL version string: 2.1 Mesa 9.2.0 (git-ce67fb4) OpenGL shading language version string: 1.30

attached log of the crash

i got this other bug https://bugzilla.kernel.org/show_bug.cgi?id=58621 not sure if related

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

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

Rafael Castillo <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Priority|medium |highest

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #1 from Michel Dänzer <[email protected]> ---
I can't reproduce this. Make sure your LLVM and Mesa snapshots are both up to date and built consistently.

If that doesn't help, can you isolate which LLVM change introduced the problem for you? The Git mirror at http://llvm.org/git/llvm.git might be useful for that.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #2 from Rafael Castillo <[email protected]> ---
well im sure everything is latest bit, i even did an emerge -C to the entire graphical stack [xserver mesa llvm clang libclc cairo libx11 xcb glamor gtk+] en re emerge with defaults cflags and the same things Qt4 works perfectly but gtk apps crash X[i guess is cairo related]. so im sure is not software related and since my 7770 can't reclock either i guess i got the short straw with this brand.

so can you provide me some help to do what you ask in gentoo? or howto debug the gpu properly? since gdb/valgrind/etc dont do anything against llvm[i guess is cuz is getting loaded by mesa and the output goes to the gpu]

im using FireBurn overlay

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #3 from Michel Dänzer <[email protected]> --- (In reply to comment #2)

Quoted 1 line

so can you provide me some help to do what you ask in gentoo?

I'm not familiar with Gentoo, but I'm sure there are many tutorials on Git bisect on the 'net, there might even be one specific to Gentoo.

Quoted 3 lines

or howto debug the gpu properly? since gdb/valgrind/etc dont do anything against llvm[i guess is cuz is getting loaded by mesa and the output goes to the gpu]

It should work just like for any other X server crash, see
http://wiki.x.org/wiki/Development/Documentation/ServerDebugging .

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #4 from [email protected] ---
I have the same problem on a 7750 CAPE VERDE card.

When starting a xfce session X craches with the error message from above, starting kde works fine.

bisecting shows this bad commit:

8a72c73032707c7b3c042b716286a1ac33720991 is the first bad commit commit 8a72c73032707c7b3c042b716286a1ac33720991

Author: Tom Stellard <[email protected]>
Date:   Mon Jun 3 17:39:46 2013 +0000

R600/SI: Fixup CopyToReg register class in PostprocessISelDAG()

The CopyToReg nodes will sometimes try to copy a value from a VGPR to an SGPR. This kind of copy is not possible, so we need to detect VGPR->SGPR copies and do something else. The current strategy is to replace these copies with VGPR->VGPR copies and hope that all the users of CopyToReg can accept VGPRs as arguments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183132
91177308-0d34-0410-b5e6-96231b3b80d8

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #5 from Rafael Castillo <[email protected]> --- i confirm that commit 8a72c73032707c7b3c042b716286a1ac33720991 seems the culprit

btw hadack and michael many thanks for you help

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #6 from Rafael Castillo <[email protected]> ---
btw hadack your 7750 can reclock? i mean profile mid/high or dynpm, in case it crashes the kernel like mine i made this bug report
https://bugzilla.kernel.org/show_bug.cgi?id=58621

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #7 from Tom Stellard <[email protected]> ---
Can you set the environment variable RADEON_DUMP_SHADERS=1 and re-post the output you get when starting xfce?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #8 from [email protected] ---
Created attachment 80567
--> https://bugs.freedesktop.org/attachment.cgi?id=80567&action=edit
xfce with RADEON_DUMP_SHADERS=1

heres the output with RADEON_DUMP_SHADERS

Rafael: I can reclock the card, but i have to go first to low and than i can set high, else it locks up. After boot it is in a strange state with clocks/voltage combination that no profile sets.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #9 from Tom Stellard <[email protected]> --- Created attachment 80630
--> https://bugs.freedesktop.org/attachment.cgi?id=80630&action=edit
Possible Fix / Work Around

Can you try this patch? It should fix the segfault, but it looks to me like the real bug might be in the CFG Structurizer. There are a number of PHI nodes that take undef as an argument, and I'm not sure if that is correct.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #10 from [email protected] ---
Yes, with your patch xfce starts fine.
Do you need more info to find the real issue?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #11 from Tom Stellard <[email protected]> --- (In reply to comment #10)

Quoted 2 lines

Yes, with your patch xfce starts fine.
Do you need more info to find the real issue?

No, I think we have enough.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Michel Dänzer <[email protected]> --- Tom committed his fix as revision 183937.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#14 lore raw

[Bug 65438] GTK apps crash X11 since last update of LLVMM

In reply to [email protected]

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

--- Comment #13 from Rafael Castillo <[email protected]> --- many thanks for the help very appreciated

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel