Bug 32887 - [r600g] SIGSEGV src/gallium/drivers/r600/r600_state.c:237
Summary: [r600g] SIGSEGV src/gallium/drivers/r600/r600_state.c:237
Status: CLOSED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/r600 (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium critical
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-06 17:51 UTC by Vinson Lee
Modified: 2011-03-07 21:24 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2011-01-06 17:51:18 UTC
mesa: 6d9ca78ef7bf831b9b63f4bda68623cbae627508 (master)

chipset: RV620
system architecture: i686
libdrm-dev: 2.14.21-1ubuntu2.1
kernel version: 2.6.35-24-generic
Linux distribution: Ubuntu 10.10 i386

Run piglit fbo-generatemipmap-formats test.

$ ./bin/fbo-generatemipmap-formats -auto

Using test set: Core formats
Testing 3
Testing 4
Testing GL_RGB
Testing GL_RGBA
Testing GL_ALPHA
Probe at (129,1)
  Expected: 1.000000 1.000000 1.000000 0.250000
  Observed: 1.000000 1.000000 1.000000 0.000000
Testing GL_LUMINANCE
Probe at (1,1)
  Expected: 1.000000 1.000000 1.000000 1.000000
  Observed: 0.000000 0.000000 0.000000 1.000000
Testing GL_LUMINANCE_ALPHA
Testing GL_INTENSITY
Probe at (1,1)
  Expected: 1.000000 1.000000 1.000000 1.000000
  Observed: 0.000000 0.000000 0.000000 0.000000
Testing GL_ALPHA4
Probe at (129,1)
  Expected: 1.000000 1.000000 1.000000 0.250000
  Observed: 1.000000 1.000000 1.000000 0.000000
Testing GL_ALPHA8
Probe at (129,1)
  Expected: 1.000000 1.000000 1.000000 0.250000
  Observed: 1.000000 1.000000 1.000000 0.000000
Testing GL_ALPHA12
Segmentation fault (core dumped)


Program terminated with signal 11, Segmentation fault.
#0  0x01108338 in r600_draw_common (draw=0xbf9537b4) at src/gallium/drivers/r600/r600_state.c:237
237		if (rctx->vertex_elements->count < rctx->vs_shader->shader.bc.nresource) {
(gdb) bt
#0  0x01108338 in r600_draw_common (draw=0xbf9537b4) at src/gallium/drivers/r600/r600_state.c:237
#1  0x011087c9 in r600_draw_vbo (ctx=0x8fdad50, info=0xbf953c34) at src/gallium/drivers/r600/r600_state.c:307
#2  0x0125fbcd in st_draw_vbo (ctx=0x92ec4b0, arrays=0x932e590, prims=0xbf953cdc, nr_prims=1, ib=0x0, index_bounds_valid=1 '\001', min_index=0, max_index=3) at src/mesa/state_tracker/st_draw.c:732
#3  0x012e5961 in vbo_draw_arrays (ctx=0x92ec4b0, mode=7, start=0, count=4, numInstances=1) at src/mesa/vbo/vbo_exec_array.c:588
#4  0x012e5ac8 in vbo_exec_DrawArrays (mode=7, start=0, count=4) at src/mesa/vbo/vbo_exec_array.c:619
#5  0x0804d636 in piglit_draw_rect_tex ()
#6  0x0804b4e3 in draw_mipmap ()
#7  0x0804bbd9 in test_format ()
#8  0x0804bd02 in piglit_display ()
#9  0x0804de93 in display ()
#10 0x00a8b820 in fghRedrawWindow (window=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece or DW_OP_bit_piece.
) at freeglut_main.c:210
#11 fghcbDisplayWindow (window=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece or DW_OP_bit_piece.
) at freeglut_main.c:227
#12 0x00a8f660 in fgEnumWindows (enumCallback=0xa8b790 <fghcbDisplayWindow>, enumerator=0xbf953f88) at freeglut_structure.c:394
#13 0x00a8bcdb in fghDisplayAll () at freeglut_main.c:249
#14 glutMainLoopEvent () at freeglut_main.c:1450
#15 0x00a8c605 in glutMainLoop () at freeglut_main.c:1498
#16 0x0804e03c in main ()
(gdb) frame 0
#0  0x01108338 in r600_draw_common (draw=0xbf9537b4) at src/gallium/drivers/r600/r600_state.c:237
237		if (rctx->vertex_elements->count < rctx->vs_shader->shader.bc.nresource) {
(gdb) print rctx->vertex_elements
$1 = (struct r600_vertex_element *) 0x0
Comment 1 Vinson Lee 2011-01-06 18:00:24 UTC
876effb0e717e8e64050662f6ffa286c22065f5c is the first bad commit
commit 876effb0e717e8e64050662f6ffa286c22065f5c
Author: Dave Airlie <airlied@redhat.com>
Date:   Fri Dec 24 17:33:41 2010 +1000

    r600g: hack around property unknown issues.
    
    should fix https://bugs.freedesktop.org/show_bug.cgi?id=32619
    
    Need to add proper support for properties later.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>

:040000 040000 fcc05c38e5c4f2c44622a99f64bc09dd3c6af879 f84be8bf6e3f262d1f5dd2d2445b73f434a2d0b3 M	src
bisect run success
Comment 2 Jerome Glisse 2011-03-07 11:46:29 UTC
This should be fixed now, closing, reopen if you still have the issue with lastest master
Comment 3 Vinson Lee 2011-03-07 21:24:41 UTC
mesa: 51db2045b488477230d9a31b60779f90f0f4bf64 (master)

Verified fixed.


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.