[LLVMbugs] [Bug 20649] New: include/llvm/ADT/SmallVector.h:141: T& llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::operator[](unsigned int) [with T = int; <template-parameter-1-2> = void; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::reference = int&]

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 13 11:45:19 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=20649

            Bug ID: 20649
           Summary: include/llvm/ADT/SmallVector.h:141: T&
                    llvm::SmallVectorTemplateCommon<T,
                    <template-parameter-1-2> >::operator[](unsigned int)
                    [with T = int; <template-parameter-1-2> = void;
                    llvm::SmallVectorTemplateCommon<T,
                    <template-parameter-1-2> >::reference = int&]
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Keywords: regression
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: vlee at freedesktop.org
                CC: brian.e.paul at gmail.com, jfonseca at vmware.com,
                    llvmbugs at cs.uiuc.edu, sroland at vmware.com
    Classification: Unclassified

llvm: 3.6.0svn r215483

Run piglit glsl-bug-22603 on llvmpipe. The test now crashes but previously
passed.

$ ./bin/glsl-bug-22603 -auto
glsl-bug-22603: include/llvm/ADT/SmallVector.h:141: T&
llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2>
>::operator[](unsigned int) [with T = int; <template-parameter-1-2> = void;
llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::reference =
int&]: Assertion `begin() + idx < end()' failed.
Aborted (core dumped)

(gdb) bt
#0  0x00007fd05a9b4117 in __GI_raise (sig=sig at entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007fd05a9b5808 in __GI_abort () at abort.c:89
#2  0x00007fd05a9acfc6 in __assert_fail_base (fmt=0x7fd05aafe8b0 "%s%s%s:%u:
%s%sAssertion `%s' failed.\n%n", 
    assertion=assertion at entry=0x7fd058753abe "begin() + idx < end()", 
    file=file at entry=0x7fd0587518e8 "llvm/include/llvm/ADT/SmallVector.h",
line=line at entry=141, 
    function=function at entry=0x7fd0587a6bc0
<llvm::SmallVectorTemplateCommon<int, void>::operator[](unsigned
int)::__PRETTY_FUNCTION__> "T& llvm::SmallVectorTemplateCommon<T,
<template-parameter-1-2> >::operator[](unsigned int) [with T = int;
<template-parameter-1-2> = void; llvm::SmallVectorTemplateCommon<T,
<template-parameter-1-2> >"...) at assert.c:92
#3  0x00007fd05a9ad072 in __GI___assert_fail (assertion=0x7fd058753abe "begin()
+ idx < end()", 
    file=0x7fd0587518e8 "llvm/include/llvm/ADT/SmallVector.h", line=141, 
    function=0x7fd0587a6bc0 <llvm::SmallVectorTemplateCommon<int,
void>::operator[](unsigned int)::__PRETTY_FUNCTION__> "T&
llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2>
>::operator[](unsigned int) [with T = int; <template-parameter-1-2> = void;
llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >"...) at
assert.c:101
#4  0x00007fd057b79913 in llvm::SmallVectorTemplateCommon<int,
void>::operator[](unsigned int) [clone .part.480] ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#5  0x00007fd057579f3c in combineX86ShufflesRecursively(llvm::SDValue,
llvm::SDValue, llvm::ArrayRef<int>, int, bool, llvm::SelectionDAG&,
llvm::TargetLowering::DAGCombinerInfo&, llvm::X86Subtarget const*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#6  0x00007fd05757a147 in combineX86ShufflesRecursively(llvm::SDValue,
llvm::SDValue, llvm::ArrayRef<int>, int, bool, llvm::SelectionDAG&,
llvm::TargetLowering::DAGCombinerInfo&, llvm::X86Subtarget const*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#7  0x00007fd057bb48fd in PerformShuffleCombine(llvm::SDNode*,
llvm::SelectionDAG&, llvm::TargetLowering::DAGCombinerInfo&, llvm::X86Subtarget
const*) () from
mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#8  0x00007fd057bcc3f5 in
llvm::X86TargetLowering::PerformDAGCombine(llvm::SDNode*,
llvm::TargetLowering::DAGCombinerInfo&) const () from
mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#9  0x00007fd057c74a93 in (anonymous
namespace)::DAGCombiner::combine(llvm::SDNode*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#10 0x00007fd057c76162 in llvm::SelectionDAG::Combine(llvm::CombineLevel,
llvm::AliasAnalysis&, llvm::CodeGenOpt::Level) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#11 0x00007fd057d1fc39 in llvm::SelectionDAGISel::CodeGenAndEmitDAG() ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#12 0x00007fd057d22d4e in
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#13 0x00007fd057d24469 in
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#14 0x00007fd057b77888 in (anonymous
namespace)::X86DAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#15 0x00007fd0584b5149 in llvm::FPPassManager::runOnFunction(llvm::Function&)
()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#16 0x00007fd0584b5275 in
llvm::legacy::FunctionPassManagerImpl::run(llvm::Function&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#17 0x00007fd0584b5414 in
llvm::legacy::FunctionPassManager::run(llvm::Function&) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#18 0x00007fd057e7af82 in llvm::JIT::jitTheFunctionUnlocked(llvm::Function*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#19 0x00007fd057e7b64b in llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*)
()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#20 0x00007fd057e7b818 in llvm::JIT::getPointerToFunction(llvm::Function*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#21 0x00007fd057e9521f in
llvm::ExecutionEngine::getPointerToGlobal(llvm::GlobalValue const*) ()
   from mesa/build/linux-x86_64-debug/gallium/targets/libgl-xlib/libGL.so.1
#22 0x00007fd057ac95e9 in gallivm_jit_function (gallivm=0x23df710,
func=0x24228a0)
    at src/gallium/auxiliary/gallivm/lp_bld_init.c:594
#23 0x00007fd05761748b in generate_variant (lp=0x1ed3ef0, shader=0x2439940,
key=0x7fff62800cd0)
    at src/gallium/drivers/llvmpipe/lp_state_fs.c:2634
#24 0x00007fd057618a56 in llvmpipe_update_fs (lp=0x1ed3ef0) at
src/gallium/drivers/llvmpipe/lp_state_fs.c:3166
#25 0x00007fd05760e5d6 in llvmpipe_update_derived (llvmpipe=0x1ed3ef0)
    at src/gallium/drivers/llvmpipe/lp_state_derived.c:186
#26 0x00007fd0575e8e9a in llvmpipe_draw_vbo (pipe=0x1ed3ef0,
info=0x7fff62801010)
    at src/gallium/drivers/llvmpipe/lp_draw_arrays.c:70
#27 0x00007fd057a00642 in cso_draw_vbo (cso=0x1f70880, info=0x7fff62801010)
    at src/gallium/auxiliary/cso_cache/cso_context.c:1428
#28 0x00007fd0577aae42 in st_draw_vbo (ctx=0x7fd05b4b9010, prims=0x1f5b5e8,
nr_prims=1, ib=0x0, 
    index_bounds_valid=1 '\001', min_index=0, max_index=3, tfb_vertcount=0x0,
indirect=0x0)
    at src/mesa/state_tracker/st_draw.c:285
#29 0x00007fd0578d73f7 in vbo_exec_vtx_flush (exec=0x1f5ae88, keepUnmapped=1
'\001') at src/mesa/vbo/vbo_exec_draw.c:409
#30 0x00007fd0578cecf4 in vbo_exec_FlushVertices_internal (exec=0x1f5ae88,
unmap=1 '\001')
    at src/mesa/vbo/vbo_exec_api.c:555
#31 0x00007fd0578d09fb in vbo_exec_FlushVertices (ctx=0x7fd05b4b9010, flags=1)
at src/mesa/vbo/vbo_exec_api.c:1168
#32 0x00007fd05771b773 in _mesa_ReadnPixelsARB (x=500, y=400, width=1,
height=1, format=6407, type=5126, 
    bufSize=2147483647, pixels=0x7fff62801290) at src/mesa/main/readpix.c:916
#33 0x00007fd05771bd1c in _mesa_ReadPixels (x=500, y=400, width=1, height=1,
format=6407, type=5126, pixels=0x7fff62801290)
    at src/mesa/main/readpix.c:1050
#34 0x00007fd05affae13 in stub_glReadPixels (x=500, y=400, width=1, height=1,
format=6407, type=5126, pixels=0x7fff62801290)
    at piglit/tests/util/piglit-dispatch-gen.c:43646
#35 0x00007fd05b02a532 in piglit_read_pixels_float (x=500, y=400, width=1,
height=1, format=6407, pixels=0x7fff62801290)
    at piglit/tests/util/piglit-util-gl.c:1012
#36 0x00007fd05b02a7fb in piglit_probe_pixel_rgb (x=500, y=400,
expected=0x7fff628012d0)
    at piglit/tests/util/piglit-util-gl.c:1076
#37 0x0000000000401bbb in piglit_display () at
piglit/tests/shaders/glsl-bug-22603.c:154
#38 0x00007fd05b04af84 in display () at
piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:60
#39 0x00007fd05a755324 in fghRedrawWindow (window=0x1ed1730) at
freeglut_main.c:231
#40 fghcbDisplayWindow (window=0x1ed1730, enumerator=0x7fff62801420) at
freeglut_main.c:248
#41 0x00007fd05a758b89 in fgEnumWindows
(enumCallback=enumCallback at entry=0x7fd05a7552b0 <fghcbDisplayWindow>, 
    enumerator=enumerator at entry=0x7fff62801420) at freeglut_structure.c:396
#42 0x00007fd05a7558dd in fghDisplayAll () at freeglut_main.c:271
#43 glutMainLoopEvent () at freeglut_main.c:1523
#44 0x00007fd05a7560dd in glutMainLoop () at freeglut_main.c:1571
#45 0x00007fd05b04b2e3 in run_test (gl_fw=0x7fd05b2bd140 <glut_fw>, argc=1,
argv=0x7fff62801808)
    at piglit/tests/util/piglit-framework-gl/piglit_glut_framework.c:167
#46 0x00007fd05b031dcd in piglit_gl_test_run (argc=1, argv=0x7fff62801808,
config=0x7fff628016c0)
    at piglit/tests/util/piglit-framework-gl.c:151
#47 0x000000000040153b in main (argc=1, argv=0x7fff62801808) at
piglit/tests/shaders/glsl-bug-22603.c:43

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140813/9c41228d/attachment.html>


More information about the llvm-bugs mailing list