[Mesa-dev] segfaults in softpipe with tbo test since varying packing

Dave Airlie airlied at gmail.com
Fri Dec 14 19:12:39 PST 2012


build softpipe with debug enabled, force sample_count > 4 so 3.0/3.1
is reported,

run arb_texture_buffer_object-formats fs core

=20835== Memcheck, a memory error detector
==20835== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==20835== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==20835== Command: ./bin/arb_texture_buffer_object-formats fs core
==20835==
==20835== Invalid read of size 4
==20835==    at 0x61CA038: get_header (ralloc.c:81)
==20835==    by 0x61CA122: ralloc_size (ralloc.c:112)
==20835==    by 0x61CA177: rzalloc_size (ralloc.c:124)
==20835==    by 0x61CA3B5: rzalloc_array_size (ralloc.c:186)
==20835==    by 0x6323BB8:
lower_packed_varyings_visitor::lower_packed_varyings_visitor(void*,
unsigned int, unsigned int, ir_variable_mode, exec_list*)
(lower_packed_varyings.cpp:152)
==20835==    by 0x6324735: lower_packed_varyings(void*, unsigned int,
unsigned int, ir_variable_mode, gl_shader*)
(lower_packed_varyings.cpp:362)
==20835==    by 0x631E87D: assign_varying_locations(gl_context*,
gl_shader_program*, gl_shader*, gl_shader*, unsigned int,
tfeedback_decl*) (linker.cpp:2379)
==20835==    by 0x631FB95: link_shaders(gl_context*,
gl_shader_program*) (linker.cpp:2915)
==20835==    by 0x61D50E0: _mesa_glsl_link_shader (ir_to_mesa.cpp:3155)
==20835==    by 0x61635FC: link_program (shaderapi.c:752)
==20835==    by 0x6164795: _mesa_LinkProgram (shaderapi.c:1248)
==20835==    by 0x584BD89: shared_dispatch_stub_509 (glapi_mapi_tmp.h:16338)
==20835==  Address 0x5e55150 is 16 bytes after a block of size 32 alloc'd
==20835==    at 0x4A0883C: malloc (vg_replace_malloc.c:270)
==20835==    by 0x636989C: draw_alloc_temp_verts (draw_pipe_util.c:84)
==20835==    by 0x63635C8: draw_aapoint_stage (draw_pipe_aapoint.c:802)
==20835==    by 0x63637C3: draw_install_aapoint_stage (draw_pipe_aapoint.c:893)
==20835==    by 0x6066E32: softpipe_create_context (sp_context.c:295)
==20835==    by 0x60D4D9E: st_api_create_context (st_manager.c:629)
==20835==    by 0x6061910: dri_create_context (dri_context.c:121)
==20835==    by 0x605D099: driCreateContextAttribs (drisw_util.c:194)
==20835==    by 0x4F91648: drisw_create_context_attribs (drisw_glx.c:483)
==20835==    by 0x4F57B6F: glXCreateContextAttribsARB (create_context.c:78)
==20835==    by 0x53FA743: glx_context_create_native (in
/opt/waffle/lib64/libwaffle-1.so.0.2.75)
==20835==    by 0x53FA85A: glx_context_create (in
/opt/waffle/lib64/libwaffle-1.so.0.2.75)
==20835==
arb_texture_buffer_object-formats: ../../src/glsl/ralloc.c:81:
get_header: Assertion `info->canary == 0x5A1106' failed.

valgrind + ralloc assert trace.

Dave.


More information about the mesa-dev mailing list