Summary: | r300g: segfault in r300_draw_arrays_immediate | ||
---|---|---|---|
Product: | Mesa | Reporter: | Wiktor Janas <wixorpeek> |
Component: | Drivers/Gallium/r300 | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | maraeo |
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Wiktor Janas
2011-02-16 05:38:36 UTC
I can't reproduce it with Blender 2.49. Could you possibly bisect? (In reply to comment #1) > I can't reproduce it with Blender 2.49. Could you possibly bisect? Well, the drawing code has changed much between 2.49 and 2.5x, you may want to get the beta release from blender.org. The exact steps to reproduce are: start blender and maximize (not fullscreen) the window. In the top-left corner there is an combo box with a circled 'i' letter; open it and move the mouse quickly around the menu for some time. It crashes after a second or so. I have also spotted this on kwin cube-desktop-switch effect, crashes every time after painting some dozen frames. The exact commit introducing the bug is 45e1cd522bd ("interaction between UNSYNCHRONIZED and DONTBLOCK"). I have introduced a debug statement into radeon_bo_map_internal and this is what I found (the first column is timestamp in nanoseconds, the parentheses contain bo->size, bo->name. bo->handle): 170745153: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 170749993: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 170754953: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 170759793: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 170764473: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 170790113: bo = 0x2c4a310 (65536, 13, 0), flags = 00000600, cs = 0x2b8fe40 170809233: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 170814913: bo = 0x2c4a310 (65536, 13, 0), flags = 00000600, cs = 0x2b8fe40 170827513: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 170833233: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 170838153: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172139113: bo = 0x441d610 (128, 3, 0), flags = 00000400, cs = 0x2b8fe40 172182793: bo = 0x441d610 (128, 3, 0), flags = 00000400, cs = 0x2b8fe40 172204593: bo = 0x2c4a310 (65536, 13, 0), flags = 00000600, cs = 0x2b8fe40 172250793: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172256993: bo = 0x2c4a310 (65536, 13, 0), flags = 00000600, cs = 0x2b8fe40 172276473: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172282353: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172287313: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172292113: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172296993: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172301793: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172306473: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172311353: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172316193: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172320913: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172325833: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172330673: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172335433: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172340353: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172345033: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172349873: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172354713: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172359553: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172364393: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172369193: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172373873: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172378713: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172383553: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172388233: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172392993: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172397833: bo = 0x2c4a310 (65536, 13, 0), flags = 00000400, cs = 0x2b8fe40 172425513: bo = 0x44ef860 (65536, 14, 0), flags = 00000600, cs = 0x2b8fe40 172485593: bo = 0x44ef860 (65536, 14, 0), flags = 00000400, cs = 0x2b8fe40 *boom* Hope it means something. I have reverted 45e1cd522bd on top of latest git and blender seems to work again, however still kwin crashes: Application: KWin (kwin), signal: Segmentation fault [KCrash Handler] #6 0x00007feb74754796 in memcpy () from /lib/libc.so.6 #7 0x00007feb5c69fc8e in r300_draw_arrays_immediate (r300=<value optimized out>, mode=<value optimized out>, start=<value optimized out>, count=<value optimized out>) at r300_render.c:430 #8 0x00007feb5c6a1956 in r300_draw_vbo (pipe=0x154f700, info=0x7fffb083b240) at r300_render.c:803 #9 0x00007feb5c75de50 in st_draw_vbo (ctx=<value optimized out>, arrays=<value optimized out>, prims=<value optimized out>, nr_prims=1, ib=0x0, index_bounds_valid=<value optimized out>, min_index=0, max_index=3) at state_tracker/st_draw.c:715 #10 0x00007feb5c7f867d in vbo_save_playback_vertex_list (ctx=0x1598170, data=<value optimized out>) at vbo/vbo_save_draw.c:289 #11 0x00007feb5c6e0272 in ext_opcode_execute (ctx=0x1598170, list=<value optimized out>) at main/dlist.c:552 #12 execute_list (ctx=0x1598170, list=<value optimized out>) at main/dlist.c:7123 #13 0x00007feb5c6e3082 in _mesa_CallList (list=2) at main/dlist.c:8440 #14 0x00007feb5bd290c6 in ?? () from /usr/lib/kde4/kwin4_effect_builtins.so #15 0x00007feb74b07e9e in ?? () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so [...cut...] #42 0x00007feb74a8a48a in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_kwin.so #43 0x00007feb746f3c4d in __libc_start_main () from /lib/libc.so.6 #44 0x00000000004006a9 in _start () I can't reproduce it with neither Blender 2.5x nor kwin. Please try the latest Mesa master branch. Alternatively, you may try and set either of these environment variables and see if it helps: RADEON_THREAD=0 RADEON_DEBUG=noimmd |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.