All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 33494] New: crash during (or at end) of map loading in ut2004
@ 2011-01-25 20:08 bugzilla-daemon
  2011-01-25 20:13 ` [Bug 33494] " bugzilla-daemon
  2011-01-25 20:14 ` bugzilla-daemon
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2011-01-25 20:08 UTC (permalink / raw)
  To: dri-devel

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

           Summary: crash during (or at end) of map loading in ut2004
           Product: Mesa
           Version: git
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: major
          Priority: medium
         Component: Drivers/Gallium/r600
        AssignedTo: dri-devel@lists.freedesktop.org
        ReportedBy: xoddark@gmail.com


When i try to launch a map in ut2004 i have a crash durring the loading (or
just at the end of loading)

If I haven't debbuggeur attach ut2004 terminate on a DBUS error (Signal SIGBUS)

stack :

#0  memcpy() at ../sysdeps/x86_64/memcpy.S:267
#1  r600_upload_buffer() at /usr/include/bits/string3.h:52
#2  r600_upload_user_buffers() at r600_buffer.c:239
#3  evergreen_vertex_buffer_update() at evergreen_state.c:1372
#4  st_draw_vbo() at state_tracker/st_draw.c:712
#5  vbo_validated_drawrangeelements() at vbo/vbo_exec_array.c:793
#6  vbo_exec_DrawRangeElementsBaseVertex() at vbo/vbo_exec_array.c:905
#7  vbo_exec_DrawRangeElements() at vbo/vbo_exec_array.c:925
#8  FOpenGLRenderInterface::DrawPrimitive(EPrimitiveType, int, int, int, int)()
at :0
#9  FBspDrawList::Render(FLevelSceneNode*, FRenderInterface*)() at :0
#10  RenderLevel(FLevelSceneNode*, FRenderInterface*)() at :0
#11  FLevelSceneNode::Render(FRenderInterface*)() at :0
#12  FPlayerSceneNode::Render(FRenderInterface*)() at :0
#13  UGameEngine::Draw(UViewport*, int, unsigned char*, int*)() at :0
#14  USDLViewport::Repaint(int)() at :0
#15  USDLClient::Tick()() at :0
#16  UGameEngine::Tick(float)() at :0
#17  CMainLoop::RunLoop()() at :0
#18  ??() at :0
#19  main() at :0

Test with :
 - mesa git (commit 90c2fd86407999475ff6accecf36e5a2c75feb9b)
 - libdrm git (commit 550fe2ca3b29ad2191eab4fdfbed9ed21e25492d)
 - xf86-video-ati git (commit fadee0409a8e13b78bbccb83dd70f590fee23d57)
with kernel 3.6.37

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

* [Bug 33494] crash during (or at end) of map loading in ut2004
  2011-01-25 20:08 [Bug 33494] New: crash during (or at end) of map loading in ut2004 bugzilla-daemon
@ 2011-01-25 20:13 ` bugzilla-daemon
  2011-01-25 20:14 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2011-01-25 20:13 UTC (permalink / raw)
  To: dri-devel

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

--- Comment #1 from XoD <xoddark@gmail.com> 2011-01-25 12:13:11 PST ---
If I add a sprintf before memcpy in r600_upload.c I was able to debug in
r600_upload_buffer.

The call stack was :

#0  memcpy() at ../sysdeps/x86_64/memcpy.S:267
#1  fprintf() at /usr/include/bits/string3.h:52
#2  r600_upload_buffer() at r600_upload.c:109
#3  r600_upload_user_buffers() at r600_buffer.c:239
#4  evergreen_vertex_buffer_update() at evergreen_state.c:1372
#5  st_draw_vbo() at state_tracker/st_draw.c:712
...


Patch :
diff --git a/src/gallium/drivers/r600/r600_upload.c
b/src/gallium/drivers/r600/r600_upload.c
index 44102ff..ba19185 100644
--- a/src/gallium/drivers/r600/r600_upload.c
+++ b/src/gallium/drivers/r600/r600_upload.c
@@ -103,7 +103,11 @@ int r600_upload_buffer(struct r600_upload *upload,
unsigned offset,
        }

        in_ptr = in_buffer->user_buffer;
-       memcpy(upload->ptr + upload->offset, (uint8_t *) in_ptr + offset,
size);
+       uint8_t * ptr_src = (uint8_t *) upload->ptr + upload->offset;
+       uint8_t * ptr_dest = (uint8_t *) in_ptr + offset;
+       //R600_ERR("memcpy src %d dest %d size %d\n", ptr_src, ptr_dest, size);
+       fprintf(stdout, "memcpy src %p dest %p size %d\n", ptr_src, ptr_dest,
size);
+       memcpy(ptr_src, ptr_dest, size);
        *out_offset = upload->offset;
        *out_size = upload->size;
        *out_buffer = NULL;

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

* [Bug 33494] crash during (or at end) of map loading in ut2004
  2011-01-25 20:08 [Bug 33494] New: crash during (or at end) of map loading in ut2004 bugzilla-daemon
  2011-01-25 20:13 ` [Bug 33494] " bugzilla-daemon
@ 2011-01-25 20:14 ` bugzilla-daemon
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla-daemon @ 2011-01-25 20:14 UTC (permalink / raw)
  To: dri-devel

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

XoD <xoddark@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop.
                   |.org                        |org

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

end of thread, other threads:[~2011-01-25 20:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25 20:08 [Bug 33494] New: crash during (or at end) of map loading in ut2004 bugzilla-daemon
2011-01-25 20:13 ` [Bug 33494] " bugzilla-daemon
2011-01-25 20:14 ` 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.