==1858== Invalid read of size 4 ==1858== at 0xB37C129: si_bind_sampler_states (si_descriptors.c:305) ==1858== by 0xB087D8A: cso_single_sampler_done (cso_context.c:1215) ==1858== by 0xB087D8A: cso_set_samplers (cso_context.c:1250) ==1858== by 0xAEF6E23: try_pbo_upload_common (st_cb_texture.c:1386) ==1858== by 0xAF000B0: try_pbo_upload (st_cb_texture.c:1665) ==1858== by 0xAF000B0: st_TexSubImage (st_cb_texture.c:1745) ==1858== by 0xAE54A63: _mesa_texture_sub_image (teximage.c:3143) ==1858== by 0xAE55122: texsubimage (teximage.c:3201) ==1858== by 0xAE55122: _mesa_TexSubImage2D (teximage.c:3342) ==1858== by 0x4D5411: ??? (in /usr/bin/glretrace) ==1858== by 0x40BFFC: ??? (in /usr/bin/glretrace) ==1858== by 0x40C65B: ??? (in /usr/bin/glretrace) ==1858== by 0x407ED4: ??? (in /usr/bin/glretrace) ==1858== by 0x6ADB86F: (below main) (in /lib/x86_64-linux-gnu/libc-2.21.so) ==1858== Address 0x1026e44c is 988 bytes inside a block of size 4,096 free'd ==1858== at 0x4C2AEAB: free (vg_replace_malloc.c:530) ==1858== by 0xD544D3B: Deallocate (Allocator.h:102) ==1858== by 0xD544D3B: DeallocateSlabs (Allocator.h:338) ==1858== by 0xD544D3B: ~BumpPtrAllocatorImpl (Allocator.h:165) ==1858== by 0xD544D3B: llvm::MCContext::~MCContext() (MCContext.cpp:61) ==1858== by 0xCBEC0D5: llvm::MachineModuleInfo::~MachineModuleInfo() (MachineModuleInfo.cpp:203) ==1858== by 0xCBEC100: llvm::MachineModuleInfo::~MachineModuleInfo() (MachineModuleInfo.cpp:204) ==1858== by 0xCA5E53D: llvm::PMTopLevelManager::~PMTopLevelManager() (LegacyPassManager.cpp:833) ==1858== by 0xCA5EBE0: ~PassManagerImpl (LegacyPassManager.cpp:397) ==1858== by 0xCA5EBE0: llvm::legacy::PassManagerImpl::~PassManagerImpl() (LegacyPassManager.cpp:397) ==1858== by 0xCA5B998: llvm::legacy::PassManager::~PassManager() (LegacyPassManager.cpp:1751) ==1858== by 0xD686A11: LLVMTargetMachineEmit(LLVMOpaqueTargetMachine*, LLVMOpaqueModule*, llvm::raw_pwrite_stream&, LLVMCodeGenFileType, char**) (TargetMachineC.cpp:185) ==1858== by 0xD686EEB: LLVMTargetMachineEmitToMemoryBuffer (TargetMachineC.cpp:230) ==1858== by 0xB44D78F: radeon_llvm_compile (radeon_llvm_emit.c:220) ==1858== by 0xB38ED9E: si_compile_llvm (si_shader.c:4609) ==1858== by 0xB38FF3F: si_compile_ps_epilog (si_shader.c:5717) ==1858== Block was alloc'd at ==1858== at 0x4C29C4F: malloc (vg_replace_malloc.c:299) ==1858== by 0xD56C680: Allocate (Allocator.h:95) ==1858== by 0xD56C680: StartNewSlab (Allocator.h:322) ==1858== by 0xD56C680: Allocate (Allocator.h:249) ==1858== by 0xD56C680: allocate (MCContext.h:556) ==1858== by 0xD56C680: llvm::MCSymbol::operator new(unsigned long, llvm::StringMapEntry const*, llvm::MCContext&) (MCSymbol.cpp:37) ==1858== by 0xD53E3D7: llvm::MCContext::createSymbolImpl(llvm::StringMapEntry const*, bool) (MCContext.cpp:171) ==1858== by 0xD53EDAD: llvm::MCContext::createSymbol(llvm::StringRef, bool, bool) (MCContext.cpp:183) ==1858== by 0xD53FC7F: llvm::MCContext::createTempSymbol(llvm::Twine const&, bool, bool) (MCContext.cpp:215) ==1858== by 0xD546B6F: llvm::MCContext::getELFSection(llvm::StringRef, unsigned int, unsigned int, unsigned int, llvm::MCSymbolELF const*, unsigned int, char const*, llvm::MCSectionELF const*) (MCContext.cpp:369) ==1858== by 0xD546F5E: llvm::MCContext::getELFSection(llvm::StringRef, unsigned int, unsigned int, unsigned int, llvm::StringRef, unsigned int, char const*) (MCContext.cpp:340) ==1858== by 0xD55EE25: getELFSection (MCContext.h:350) ==1858== by 0xD55EE25: getELFSection (MCContext.h:337) ==1858== by 0xD55EE25: llvm::MCObjectFileInfo::initELFMCObjectFileInfo(llvm::Triple) (MCObjectFileInfo.cpp:495) ==1858== by 0xD560218: llvm::MCObjectFileInfo::InitMCObjectFileInfo(llvm::Triple const&, llvm::Reloc::Model, llvm::CodeModel::Model, llvm::MCContext&) (MCObjectFileInfo.cpp:848) ==1858== by 0xCF044EC: llvm::AsmPrinter::doInitialization(llvm::Module&) (AsmPrinter.cpp:180) ==1858== by 0xCA5A425: llvm::FPPassManager::doInitialization(llvm::Module&) (LegacyPassManager.cpp:1580) ==1858== by 0xCA63E83: runOnModule (LegacyPassManager.cpp:1612) ==1858== by 0xCA63E83: llvm::legacy::PassManagerImpl::run(llvm::Module&) (LegacyPassManager.cpp:1730) ==1858== ==1858== Invalid read of size 4 ==1858== at 0xB37C129: si_bind_sampler_states (si_descriptors.c:305) ==1858== by 0xB089923: cso_single_sampler_done (cso_context.c:1215) ==1858== by 0xB089923: cso_restore_fragment_samplers (cso_context.c:1274) ==1858== by 0xB089923: cso_restore_state (cso_context.c:1562) ==1858== by 0xAEF65F6: try_pbo_upload_common (st_cb_texture.c:1525) ==1858== by 0xAF000B0: try_pbo_upload (st_cb_texture.c:1665) ==1858== by 0xAF000B0: st_TexSubImage (st_cb_texture.c:1745) ==1858== by 0xAE54A63: _mesa_texture_sub_image (teximage.c:3143) ==1858== by 0xAE55122: texsubimage (teximage.c:3201) ==1858== by 0xAE55122: _mesa_TexSubImage2D (teximage.c:3342) ==1858== by 0x4D5411: ??? (in /usr/bin/glretrace) ==1858== by 0x40BFFC: ??? (in /usr/bin/glretrace) ==1858== by 0x40C65B: ??? (in /usr/bin/glretrace) ==1858== by 0x407ED4: ??? (in /usr/bin/glretrace) ==1858== by 0x6ADB86F: (below main) (in /lib/x86_64-linux-gnu/libc-2.21.so) ==1858== Address 0x1026e44c is 988 bytes inside a block of size 4,096 free'd ==1858== at 0x4C2AEAB: free (vg_replace_malloc.c:530) ==1858== by 0xD544D3B: Deallocate (Allocator.h:102) ==1858== by 0xD544D3B: DeallocateSlabs (Allocator.h:338) ==1858== by 0xD544D3B: ~BumpPtrAllocatorImpl (Allocator.h:165) ==1858== by 0xD544D3B: llvm::MCContext::~MCContext() (MCContext.cpp:61) ==1858== by 0xCBEC0D5: llvm::MachineModuleInfo::~MachineModuleInfo() (MachineModuleInfo.cpp:203) ==1858== by 0xCBEC100: llvm::MachineModuleInfo::~MachineModuleInfo() (MachineModuleInfo.cpp:204) ==1858== by 0xCA5E53D: llvm::PMTopLevelManager::~PMTopLevelManager() (LegacyPassManager.cpp:833) ==1858== by 0xCA5EBE0: ~PassManagerImpl (LegacyPassManager.cpp:397) ==1858== by 0xCA5EBE0: llvm::legacy::PassManagerImpl::~PassManagerImpl() (LegacyPassManager.cpp:397) ==1858== by 0xCA5B998: llvm::legacy::PassManager::~PassManager() (LegacyPassManager.cpp:1751) ==1858== by 0xD686A11: LLVMTargetMachineEmit(LLVMOpaqueTargetMachine*, LLVMOpaqueModule*, llvm::raw_pwrite_stream&, LLVMCodeGenFileType, char**) (TargetMachineC.cpp:185) ==1858== by 0xD686EEB: LLVMTargetMachineEmitToMemoryBuffer (TargetMachineC.cpp:230) ==1858== by 0xB44D78F: radeon_llvm_compile (radeon_llvm_emit.c:220) ==1858== by 0xB38ED9E: si_compile_llvm (si_shader.c:4609) ==1858== by 0xB38FF3F: si_compile_ps_epilog (si_shader.c:5717) ==1858== Block was alloc'd at ==1858== at 0x4C29C4F: malloc (vg_replace_malloc.c:299) ==1858== by 0xD56C680: Allocate (Allocator.h:95) ==1858== by 0xD56C680: StartNewSlab (Allocator.h:322) ==1858== by 0xD56C680: Allocate (Allocator.h:249) ==1858== by 0xD56C680: allocate (MCContext.h:556) ==1858== by 0xD56C680: llvm::MCSymbol::operator new(unsigned long, llvm::StringMapEntry const*, llvm::MCContext&) (MCSymbol.cpp:37) ==1858== by 0xD53E3D7: llvm::MCContext::createSymbolImpl(llvm::StringMapEntry const*, bool) (MCContext.cpp:171) ==1858== by 0xD53EDAD: llvm::MCContext::createSymbol(llvm::StringRef, bool, bool) (MCContext.cpp:183) ==1858== by 0xD53FC7F: llvm::MCContext::createTempSymbol(llvm::Twine const&, bool, bool) (MCContext.cpp:215) ==1858== by 0xD546B6F: llvm::MCContext::getELFSection(llvm::StringRef, unsigned int, unsigned int, unsigned int, llvm::MCSymbolELF const*, unsigned int, char const*, llvm::MCSectionELF const*) (MCContext.cpp:369) ==1858== by 0xD546F5E: llvm::MCContext::getELFSection(llvm::StringRef, unsigned int, unsigned int, unsigned int, llvm::StringRef, unsigned int, char const*) (MCContext.cpp:340) ==1858== by 0xD55EE25: getELFSection (MCContext.h:350) ==1858== by 0xD55EE25: getELFSection (MCContext.h:337) ==1858== by 0xD55EE25: llvm::MCObjectFileInfo::initELFMCObjectFileInfo(llvm::Triple) (MCObjectFileInfo.cpp:495) ==1858== by 0xD560218: llvm::MCObjectFileInfo::InitMCObjectFileInfo(llvm::Triple const&, llvm::Reloc::Model, llvm::CodeModel::Model, llvm::MCContext&) (MCObjectFileInfo.cpp:848) ==1858== by 0xCF044EC: llvm::AsmPrinter::doInitialization(llvm::Module&) (AsmPrinter.cpp:180) ==1858== by 0xCA5A425: llvm::FPPassManager::doInitialization(llvm::Module&) (LegacyPassManager.cpp:1580) ==1858== by 0xCA63E83: runOnModule (LegacyPassManager.cpp:1612) ==1858== by 0xCA63E83: llvm::legacy::PassManagerImpl::run(llvm::Module&) (LegacyPassManager.cpp:1730) ==1858==