From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org Subject: [Bug 56474] New: 3D app segfaults on NV46 Date: Sun, 28 Oct 2012 01:18:56 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1330201713==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces+gcfxn-nouveau=m.gmane.org-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org List-Id: nouveau.vger.kernel.org --===============1330201713== Content-Type: multipart/alternative; boundary="1351387136.377ad4e0.10858"; charset="us-ascii" --1351387136.377ad4e0.10858 Date: Sun, 28 Oct 2012 01:18:56 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=56474 Priority: medium Bug ID: 56474 Assignee: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Summary: 3D app segfaults on NV46 Severity: normal Classification: Unclassified OS: Linux (All) Reporter: 1o5g4r8o-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Hardware: x86 (IA32) Status: NEW Version: 9.0 Component: Drivers/DRI/nouveau Product: Mesa Created attachment 69169 --> https://bugs.freedesktop.org/attachment.cgi?id=69169&action=edit dmesg Debian Wheezy i386 Mesa 9.0-1 libdrm 2.4.39-1 xserver-xorg-video-nouveau 1.0.3 Attached dmesg. supertuxkart segfaults on Debian. Attached backtrace. 21:16 < joi> try: "up; print res" 21:17 < gg0> (gdb) up 21:17 < gg0> #1 nv30_vbo_validate (nv30=0x94c2658) at nv30_vbo.c:239 21:17 < gg0> 239I PUSH_RESRC(push, NV30_3D(VTXBUF(i)), user ? BUFCTX_VTXTMP : BUFCTX_VTXBUF, 21:17 < gg0> (gdb) print res 21:17 < gg0> $4 = (struct nv04_resource *) 0x0 21:35 < joi> gg0: try this one: http://bpaste.net/show/54017/ diff --git a/src/gallium/drivers/nv30/nv30_vbo.c b/src/gallium/drivers/nv30/nv30_vbo.c index 128457f..94febc3 100644 --- a/src/gallium/drivers/nv30/nv30_vbo.c +++ b/src/gallium/drivers/nv30/nv30_vbo.c @@ -226,6 +226,8 @@ nv30_vbo_validate(struct nv30_context *nv30) user = (nv30->vbo_user & (1 << ve->vertex_buffer_index)); res = nv04_resource(vb->buffer); + if (!res) + continue; if (nv30->vbo_fifo || unlikely(vb->stride == 0)) { if (!nv30->vbo_fifo) With patch above, stk doesn't produce core anymore and Xorg freezes. So far, mesa 8 is better. I could use it even if often it crashes during kart races. With mesa 9, races can't even start. Further backtraces and system info available at http://bugs.debian.org/691292 Bug describes how it behaves on current Debian wheezy, Mesa 8. -- You are receiving this mail because: You are the assignee for the bug. --1351387136.377ad4e0.10858 Date: Sun, 28 Oct 2012 01:18:56 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Priority medium
Bug ID 56474
Assignee nouveau@lists.freedesktop.org
Summary 3D app segfaults on NV46
Severity normal
Classification Unclassified
OS Linux (All)
Reporter 1o5g4r8o@gmail.com
Hardware x86 (IA32)
Status NEW
Version 9.0
Component Drivers/DRI/nouveau
Product Mesa

Created attachment 69169 [details]
dmesg

Debian Wheezy i386
Mesa 9.0-1
libdrm 2.4.39-1
xserver-xorg-video-nouveau 1.0.3
Attached dmesg.

supertuxkart segfaults on Debian. Attached backtrace.

21:16 < joi> try: "up; print res"
21:17 < gg0> (gdb) up
21:17 < gg0> #1  nv30_vbo_validate (nv30=0x94c2658) at nv30_vbo.c:239
21:17 < gg0> 239I      PUSH_RESRC(push, NV30_3D(VTXBUF(i)), user ? 
             BUFCTX_VTXTMP : BUFCTX_VTXBUF,
21:17 < gg0> (gdb) print res
21:17 < gg0> $4 = (struct nv04_resource *) 0x0

21:35 < joi> gg0: try this one: http://bpaste.net/show/54017/

diff --git a/src/gallium/drivers/nv30/nv30_vbo.c
b/src/gallium/drivers/nv30/nv30_vbo.c
index 128457f..94febc3 100644
--- a/src/gallium/drivers/nv30/nv30_vbo.c
+++ b/src/gallium/drivers/nv30/nv30_vbo.c
@@ -226,6 +226,8 @@ nv30_vbo_validate(struct nv30_context *nv30)
       user = (nv30->vbo_user & (1 << ve->vertex_buffer_index));

       res = nv04_resource(vb->buffer);
+      if (!res)
+         continue;

       if (nv30->vbo_fifo || unlikely(vb->stride == 0)) {
          if (!nv30->vbo_fifo)

With patch above, stk doesn't produce core anymore and Xorg freezes.

So far, mesa 8 is better. I could use it even if often it crashes during kart
races. With mesa 9, races can't even start.

Further backtraces and system info available at http://bugs.debian.org/691292
Bug describes how it behaves on current Debian wheezy, Mesa 8.


You are receiving this mail because:
  • You are the assignee for the bug.
--1351387136.377ad4e0.10858-- --===============1330201713== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============1330201713==--