Skip to contentSkip to conversation

New: Glamor on r600g crashes Xserver

Bug 70088 [email protected] 1 participant 16 messages Oct 3, 2013 – Oct 17, 2013

lore
Share & tools
lore
#0 lore raw

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

Priority: medium
Bug ID: 70088
Assignee: [email protected]
Summary: Glamor on r600g crashes Xserver
Severity: normal
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: NEW
Version: git
Component: Drivers/Gallium/r600
Product: Mesa

Created attachment 87079
--> https://bugs.freedesktop.org/attachment.cgi?id=87079&action=edit
Crash log

When I try to run Xserver and radeon driver with glamor accel method I get a crash from Xserver. It happens when I'm starting blackbox or Gnome(from GDM3). While GNOME causes crash, gdm3 works.

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 70088] Glamor on r600g crashes Xserver

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

--- Comment #1 from Grigori Goronzy <[email protected]> ---
That looks exactly like the crash I see on PALM ASICs, too. I just didn't have time to properly report it yet. Something is going wrong in SB's gcm phase.

This only seems to happen on certain ASICs, it works fine on TURKS.

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

Krzysztof A. Sobiecki <[email protected]> changed:

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

           Hardware|Other                       |x86-64 (AMD64)
                 OS|All                         |Linux (All)
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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

--- Comment #2 from Vadim Girlin <[email protected]> --- Please attach the output with R600_DEBUG=ps,vs

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

--- Comment #3 from Marek Olšák <[email protected]> --- You should be able to obtain a better backtrace if you do this:

1) Delete /etc/X11/core.
2) Reproduce the crash. This should create a new core file in /etc/X11.
3) Run: gdb /usr/bin/Xorg /etc/X11/core
4) Type bt in gdb.

The paths may differ depending on your distribution. Please attach the backtrace you will get from gdb.

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

--- Comment #4 from Grigori Goronzy <[email protected]> --- Created attachment 87094
--> https://bugs.freedesktop.org/attachment.cgi?id=87094&action=edit
Xorg log with shader dump and sb dump

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

--- Comment #5 from Grigori Goronzy <[email protected]> --- Created attachment 87095
--> https://bugs.freedesktop.org/attachment.cgi?id=87095&action=edit
Xorg backtrace

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

--- Comment #6 from Krzysztof A. Sobiecki <[email protected]> --- Created attachment 87098
--> https://bugs.freedesktop.org/attachment.cgi?id=87098&action=edit
It fixes my crash problem

It fixes my crash problem. Maybe code needs more checks for null values? As always my patch is subpar, You shouldn't use it.

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

--- Comment #7 from Vadim Girlin <[email protected]> --- Created attachment 87148
--> https://bugs.freedesktop.org/attachment.cgi?id=87148&action=edit
patch

This patch should fix this issue.

(In reply to comment #6)

Quoted 2 lines

It fixes my crash problem. Maybe code needs more checks for null values? As always my patch is subpar, You shouldn't use it.

Checking for null is not enough in this case, it may prevent segfault but generated shader code would be incorrect anyway, when we have null there it means that something is already broken.

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

Krzysztof A. Sobiecki <[email protected]> changed:

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

  Attachment #87098|0                           |1

is obsolete| |

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

--- Comment #8 from Krzysztof A. Sobiecki <[email protected]> --- (In reply to comment #7)

Quoted 6 lines

Created attachment 87148 [details] [review]
patch

This patch should fix this issue.

Quoted 7 lines

(In reply to comment #6)

Quoted 2 lines

It fixes my crash problem. Maybe code needs more checks for null values? As always my patch is subpar, You shouldn't use it.

Checking for null is not enough in this case, it may prevent segfault but generated shader code would be incorrect anyway, when we have null there it means that something is already broken.

Yes it fixed the problem. Thank You.
When it will be pushed into git I will close this bug.

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

--- Comment #9 from Grigori Goronzy <[email protected]> --- I can also confirm that the patch fixes the 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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

--- Comment #10 from Krzysztof A. Sobiecki <[email protected]> --- When Your patch will go into a git?

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

Vadim Girlin <[email protected]> changed:

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

  Attachment #87148|0                           |1

is obsolete| |

--- Comment #11 from Vadim Girlin <[email protected]> --- Created attachment 87597
--> https://bugs.freedesktop.org/attachment.cgi?id=87597&action=edit
patch

This is an improved version of the patch, please test.

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 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

--- Comment #12 from Krzysztof A. Sobiecki <[email protected]> --- (In reply to comment #11)

Quoted 4 lines

Created attachment 87597 [details] [review]
patch

This is an improved version of the patch, please test.

Glamor acceleration with mesa + this patch works fine, will try to run piglit.

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

#15 lore raw

[Bug 70088] Glamor on r600g crashes Xserver

In reply to [email protected]

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

Vadim Girlin <[email protected]> changed:

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

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

--- Comment #13 from Vadim Girlin <[email protected]> --- Fix pushed with commit 62c8149472903a2f3fc4d319c3799b9e729419d5

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