Bug 31389 - [llvmpipe] valgrind Invalid write of size 8 memalign (vg_replace_malloc.c:581)
Summary: [llvmpipe] valgrind Invalid write of size 8 memalign (vg_replace_malloc.c:581)
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Brian Paul
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 12:18 UTC by Vinson Lee
Modified: 2012-12-11 23:16 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2010-11-04 12:18:27 UTC
mesa: e7f5d19a1106351f2db8f62f59f51be86eaa93df (master)

Run valgrind on glean api2 on llvmpipe.

This valgrind bug appears with llvmpipe using llvm-2.7, llvm-2.8, or llvm-2.9svn.


$ valgrind glean -r results -o -t api2
...
==28849== Invalid write of size 8
==28849==    at 0xB495028: ???
==28849==    by 0x7FEFFF29F: ???
==28849==    by 0x33: ???
==28849==    by 0x5822CF6: draw_pt_emit_linear (draw_pt_emit.c:243)
==28849==    by 0x800000007: ???
==28849==    by 0x7FEFFF3DF: ???
==28849==    by 0x7FEFFF35F: ???
==28849==    by 0xA9CDCEF: ???
==28849==    by 0x200000001: ???
==28849==    by 0x9EABE1F: ???
==28849==    by 0xA78687F: ???
==28849==    by 0xA66CF1F: ???
==28849==  Address 0x9eabe60 is 0 bytes after a block of size 64 alloc'd
==28849==    at 0x4C2732A: memalign (vg_replace_malloc.c:581)
==28849==    by 0x4C27383: posix_memalign (vg_replace_malloc.c:709)
==28849==    by 0x554B966: os_malloc_aligned (os_memory_stdc.h:58)
==28849==    by 0x554BA24: lp_setup_allocate_vertices (lp_setup_vbuf.c:82)
==28849==    by 0x5822C42: draw_pt_emit_linear (draw_pt_emit.c:227)
==28849==    by 0x5820C85: emit (draw_pt_fetch_shade_pipeline_llvm.c:205)
==28849==    by 0x5820F79: llvm_pipeline_generic (draw_pt_fetch_shade_pipeline_llvm.c:297)
==28849==    by 0x58210A7: llvm_middle_end_linear_run (draw_pt_fetch_shade_pipeline_llvm.c:357)
==28849==    by 0x57A9A8C: vsplit_segment_simple_linear (draw_pt_vsplit_tmp.h:229)
==28849==    by 0x57A9DA2: vsplit_run_linear (draw_split_tmp.h:61)
==28849==    by 0x57A1FAD: draw_pt_arrays (draw_pt.c:113)
==28849==    by 0x57A2B8C: draw_vbo (draw_pt.c:481)
Comment 1 Brian Paul 2012-12-11 23:16:31 UTC
This is an old bug and I cant repro this with mesa/master.  Closing as 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.