[Mesa-dev] [Bug 74717] r600g: 'invalid read' linking geometry shader

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Feb 26 06:38:26 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=74717

--- Comment #10 from Dieter Nützel <Dieter at nuetzel-hh.de> ---
Addendum:

3.14.0-rc4 + drm-radeon-fix-missing-bo-reservation.patch
Mesa 10.2.0-devel (git-54df6a0)
LLVM 3.4 stable
RV730 AGP

With R600_DEBUG=nosb I get this (from time to time):

/opt/ogl-samples> ./build/release/gl-320-primitive-shading
OpenGL Version Needed 3.2 ( 3.3 Found )
Compiling shader
gl-320/primitive-shading.vert...

Compiling shader
gl-320/primitive-shading.geom...

Compiling shader
gl-320/primitive-shading.frag...

Linking program

Running Test
warning: failed to translate tgsi opcode EMIT to LLVM     <<<=== !!!
Speicherschutzverletzung (core dumped)

Core was generated by `./build/release/gl-320-primitive-shading'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xb5a0f1e3 in getElementType (Val=<optimized out>, this=<optimized out>)
    at /usr/src/debug/llvm/include/llvm/IR/DerivedTypes.h:319
319       Type *getElementType() const { return ContainedTys[0]; }

(gdb) bt
#0  0xb5a0f1e3 in getElementType (Val=<optimized out>, this=<optimized out>)
    at /usr/src/debug/llvm/include/llvm/IR/DerivedTypes.h:319
#1  llvm::ExtractElementInst::ExtractElementInst (this=0x891d2e0,
Val=<optimized out>, 
    Index=<optimized out>, Name=..., InsertBef=0x0)
    at /usr/src/debug/llvm/lib/IR/Instructions.cpp:1443
#2  0xb5993fad in Twine (this=<optimized out>, Vec=<optimized out>,
this=<optimized out>, 
    I=0x891d2e0, Idx=0x8918850, NameStr=..., this=<optimized out>,
Str=<optimized out>)
    at /usr/src/debug/llvm/include/llvm/IR/Instructions.h:1554
#3  llvm::IRBuilder<true, llvm::ConstantFolder,
llvm::IRBuilderDefaultInserter<true> >::CreateExtractElement (this=0x8927580,
Vec=0x8927580, Idx=0x8918850, Name=...)
    at /usr/src/debug/llvm/include/llvm/IR/IRBuilder.h:1354
#4  0xb5990913 in LLVMBuildExtractElement (B=0x0, VecVal=0x0, Index=0x891d2c8, 
    Name=<optimized out>) at /usr/src/debug/llvm/lib/IR/Core.cpp:2416
#5  0xb6d3be8c in ?? () from /usr/lib/dri/updates/r600_dri.so
#6  0xb6d4aeb2 in ?? () from /usr/lib/dri/updates/r600_dri.so
#7  0xb6cb8bbf in ?? () from /usr/lib/dri/updates/r600_dri.so
#8  0xb6d3dff2 in ?? () from /usr/lib/dri/updates/r600_dri.so
#9  0xb6ce4659 in ?? () from /usr/lib/dri/updates/r600_dri.so
#10 0xb6ce6ae6 in ?? () from /usr/lib/dri/updates/r600_dri.so
#11 0xb6cfeca8 in ?? () from /usr/lib/dri/updates/r600_dri.so
#12 0xb6d01cec in ?? () from /usr/lib/dri/updates/r600_dri.so
#13 0xb6c1368a in ?? () from /usr/lib/dri/updates/r600_dri.so
#14 0xb6b88d4a in ?? () from /usr/lib/dri/updates/r600_dri.so
#15 0xb6aa81be in ?? () from /usr/lib/dri/updates/r600_dri.so
#16 0xb6a7509d in ?? () from /usr/lib/dri/updates/r600_dri.so
#17 0xb6a76a3c in ?? () from /usr/lib/dri/updates/r600_dri.so
#18 0xb6a76cc4 in ?? () from /usr/lib/dri/updates/r600_dri.so
#19 0x0807aae4 in display() ()
#20 0x080775a5 in main ()

(gdb) list
314         ContainedTys = &ContainedType;
315         NumContainedTys = 1;
316       }
317
318     public:
319       Type *getElementType() const { return ContainedTys[0]; }
320
321       /// Methods for support type inquiry through isa, cast, and dyn_cast.
322       static inline bool classof(const Type *T) {
323         return T->getTypeID() == ArrayTyID ||

(gdb) info registers 
eax            0x0      0
ecx            0x0      0
edx            0x891d2c8        143774408
ebx            0xb5a73000       -1247334400
esp            0xbf81d3c0       0xbf81d3c0
ebp            0xb5a714f8       0xb5a714f8 <vtable for
llvm::ExtractElementInst+8>
esi            0x891d2c8        143774408
edi            0x891d2e0        143774432
eip            0xb5a0f1e3       0xb5a0f1e3
<llvm::ExtractElementInst::ExtractElementInst(llvm::Value*, llvm::Value*,
llvm::Twine const&, llvm::Instruction*)+51>
eflags         0x210282 [ SF IF RF ID ]
cs             0x73     115
ss             0x7b     123
ds             0x7b     123
es             0x7b     123
fs             0x0      0
gs             0x33     51

-- 
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.freedesktop.org/archives/mesa-dev/attachments/20140226/57a182b6/attachment.html>


More information about the mesa-dev mailing list