Bug 86195 - Lightswork video editor segfaults
Summary: Lightswork video editor segfaults
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: git
Hardware: x86-64 (AMD64) All
: low minor
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-12 12:56 UTC by Iaroslav Andrusyak
Modified: 2017-05-24 08:12 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
stderr (3.47 KB, text/plain)
2014-11-13 09:00 UTC, Iaroslav Andrusyak
Details
error (14.10 KB, text/plain)
2014-11-13 09:40 UTC, Iaroslav Andrusyak
Details

Description Iaroslav Andrusyak 2014-11-12 12:56:34 UTC
This app is very unstable with radeonsi, but works fine on intel.

HD 7790
mesa-git\llvm-svn 11.10.14


Program received signal SIGSEGV, Segmentation fault.
0x00007dfa9b7807c8 in std::vector<llvm::MachineOperand*, std::allocator<llvm::MachineOperand*> >::_M_fill_insert(__gnu_cxx::__normal_iterator<llvm::MachineOperand**, std::vector<llvm::MachineOperand*, std::allocator<llvm::MachineOperand*> > >, unsigned long, llvm::MachineOperand* const&) ()
   from /usr/lib64/libLLVM-3.6svn.so
(gdb) bt
#0  0x00007dfa9b7807c8 in std::vector<llvm::MachineOperand*, std::allocator<llvm::MachineOperand*> >::_M_fill_insert(__gnu_cxx::__normal_iterator<llvm::MachineOperand**, std::vector<llvm::MachineOperand*, std::allocator<llvm::MachineOperand*> > >, unsigned long, llvm::MachineOperand* const&) ()
    at /usr/lib64/libLLVM-3.6svn.so
#1  0x00007dfa9b780f41 in llvm::MachineRegisterInfo::MachineRegisterInfo(llvm::MachineFunction const*) () at /usr/lib64/libLLVM-3.6svn.so
#2  0x00007dfa9b74c99a in llvm::MachineFunction::MachineFunction(llvm::Function const*, llvm::TargetMachine const&, unsigned int, llvm::MachineModuleInfo&) () at /usr/lib64/libLLVM-3.6svn.so
#3  0x00007dfa9b7508cb in llvm::MachineFunctionAnalysis::runOnFunction(llvm::Function&) () at /usr/lib64/libLLVM-3.6svn.so
#4  0x00007dfa9b46caef in llvm::FPPassManager::runOnFunction(llvm::Function&) () at /usr/lib64/libLLVM-3.6svn.so
#5  0x00007dfa9b46cb7b in llvm::FPPassManager::runOnModule(llvm::Module&) () at /usr/lib64/libLLVM-3.6svn.so
#6  0x00007dfa9b46f225 in llvm::legacy::PassManagerImpl::run(llvm::Module&) () at /usr/lib64/libLLVM-3.6svn.so
#7  0x00007dfa9b8ff303 in  () at /usr/lib64/libLLVM-3.6svn.so
#8  0x00007dfa9b8ff510 in LLVMTargetMachineEmitToMemoryBuffer () at /usr/lib64/libLLVM-3.6svn.so
#9  0x00007dfa9d0458af in radeon_llvm_compile (M=0x7ffaa0a17bc4, binary=0x7fff319ca220, gpu_family=0x7dfa9d1589b5 "bonaire", dump=0)
    at radeon_llvm_emit.c:185
#10 0x00007dfa9cfa96a0 in si_compile_llvm (sscreen=0x18a02b0, shader=0x1be6900, mod=0x7ffaa0a17bc4) at si_shader.c:2601
#11 0x00007dfa9cfa9d8e in si_shader_create (sscreen=0x18a02b0, shader=0x1be6900) at si_shader.c:2800
#12 0x00007dfa9cfafa19 in si_shader_select (ctx=0x1988d20, sel=0x1bd8800) at si_state.c:2279
#13 0x00007dfa9cfb1bb8 in si_update_derived_state (sctx=0x1988d20) at si_state_draw.c:652
#14 0x00007dfa9cfb1dda in si_draw_vbo (ctx=0x1988d20, info=0x7fff319d17f0) at si_state_draw.c:919
#15 0x00007dfa9ccb7fc9 in blitter_draw (ctx=
    0x19b2c30, x1=<optimized out>, y1=<optimized out>, x2=<optimized out>, y2=<optimized out>, depth=<optimized out>, num_instances=1)
    at ./util/u_draw.h:99
#16 0x00007dfa9ccb80e1 in util_blitter_draw_rectangle (blitter=
    0x19b2c30, x1=0, y1=0, x2=1920, y2=1080, depth=0, type=<optimized out>, attrib=0x7fff319d19f0) at util/u_blitter.c:1156
#17 0x00007dfa9d038fe2 in r600_draw_rectangle (blitter=
    0x19b2c30, x1=0, y1=0, x2=1920, y2=1080, depth=0, type=<optimized out>, attrib=0x7fff319d19f0) at r600_pipe_common.c:56
#18 0x00007dfa9ccbaab2 in util_blitter_blit_generic (blitter=
    0x19b2c30, dst=0x1bd8470, dstbox=0x7fff319d1b10, src=0x1be23e0, srcbox=0x7fff319d1cf0, src_width0=1920, src_height0=1080, mask=63, filter=0, scissor=0x0) at util/u_blitter.c:1619
#19 0x00007dfa9cf9d81a in si_resource_copy_region (ctx=0x1988d20, dst=0x1be34f0, dst_level=0, dstx=0, dsty=0, dstz=0, src=0x1be4370, src_level=0, src_box=0x7fff319d1cf0) at si_blit.c:664
#20 0x00007dfa9cfa2e7c in si_dma_copy (ctx=0x1988d20, dst=0x1be34f0, dst_level=0, dstx=0, dsty=0, dstz=0, src=0x1be4370, src_level=0, src_box=0x7fff319d1cf0) at si_dma.c:322
#21 0x00007dfa9d03e063 in r600_copy_from_staging_texture (ctx=<optimized out>, rtransfer=<optimized out>) at r600_texture.c:105
#22 0x00007dfa9d03e683 in r600_texture_transfer_unmap (ctx=0x1988d20, transfer=0x1be79a0) at r600_texture.c:1079
#23 0x00007dfa9ccd5f42 in u_transfer_unmap_vtbl (pipe=<optimized out>, transfer=<optimized out>) at util/u_transfer.c:138
#24 0x00007dfa9cb98877 in st_texture_image_unmap (st=<optimized out>, stImage=<optimized out>, slice=<optimized out>)
    at ../../src/gallium/auxiliary/util/u_inlines.h:481
#25 0x00007dfa9cb6ea59 in st_UnmapTextureImage (ctx=<optimized out>, texImage=0x1be78d0, slice=0)
    at ../../src/mesa/state_tracker/st_cb_texture.c:283
#26 0x00007dfa9cb1a32f in store_texsubimage (ctx=0x7dfa99d41010, texImage=0x1be78d0, xoffset=0, yoffset=0, zoffset=<optimized out>, width=1920, height=1080, depth=<optimized out>, format=32993, type=5121, pixels=0x251deb0, packing=0x7dfa99d5c6e0, caller=0x7dfa9d07287f "glTexSubImage")
    at ../../src/mesa/main/texstore.c:2026
#27 0x00007dfa9cb1a4fb in _mesa_store_texsubimage (ctx=<optimized out>, dims=<optimized out>, texImage=<optimized out>, xoffset=<optimized out>, yoffset=<optimized out>, zoffset=<optimized out>, width=1920, height=1080, depth=1, format=32993, type=5121, pixels=0x251deb0, packing=0x7dfa99d5c6e0)
    at ../../src/mesa/main/texstore.c:2083
#28 0x00007dfa9cb72be3 in st_TexSubImage (ctx=0x7dfa99d41010, dims=2, texImage=0x1be78d0, xoffset=0, yoffset=0, zoffset=0, width=1920, height=1080, depth=1, format=32993, type=5121, pixels=0x251deb0, unpack=0x7dfa99d5c6e0) at ../../src/mesa/state_tracker/st_cb_texture.c:852
#29 0x00007dfa9cb72cd8 in st_TexImage (ctx=0x7dfa99d41010, dims=2, texImage=0x1be78d0, format=32993, type=5121, pixels=0x251deb0, unpack=0x7dfa99d5c6e0) at ../../src/mesa/state_tracker/st_cb_texture.c:876
#30 0x00007dfa9cb0b658 in teximage (ctx=0x7dfa99d41010, compressed=<optimized out>, dims=2, target=3553, level=0, internalFormat=6408, width=1920, height=1080, depth=1, border=0, format=32993, type=5121, imageSize=0, pixels=0x251deb0) at ../../src/mesa/main/teximage.c:3326
#31 0x00007dfa9cb0c222 in _mesa_TexImage2D (target=<optimized out>, level=<optimized out>, internalFormat=<optimized out>, width=<optimized out>, height=<optimized out>, border=<optimized out>, format=32993, type=5121, pixels=0x251deb0) at ../../src/mesa/main/teximage.c:3365
#32 0x00007ffaa969ca94 in OpenGLImage::allocTexture(XY<int> const&, void*) () at /usr/lib/lightworks/libOS.so
#33 0x00007ffaa969d063 in OpenGLImage::OpenGLImage(Lw::Ptr<iHostImage, Lw::DtorTraits, Lw::InternalRefCountTraits>, iGPUImage::eFormat) ()
Comment 1 Michel Dänzer 2014-11-13 03:26:03 UTC
Please run the app with the environment variable R600_DEBUG=vs, capture its stderr output to a file and attach that file here after the crash.

BTW, does setting the environment variable DRAW_USE_LLVM=0 avoid the problem?
Comment 2 Iaroslav Andrusyak 2014-11-13 09:00:35 UTC
Created attachment 109393 [details]
stderr
Comment 3 Michel Dänzer 2014-11-13 09:20:31 UTC
(In reply to Iaroslav Andrusyak from comment #2)
> stderr

Did that crash as well? There's only one LLVM dump in there, and no immediate sign of a crash. If it did crash, can you try again with R600_DEBUG=vs,gs,ps?

Also, did you try DRAW_USE_LLVM=0?
Comment 4 Iaroslav Andrusyak 2014-11-13 09:39:33 UTC
DRAW_USE_LLVM=0 does not help, and there is no output in console from LW, Lightswork totally silent. I have only several logs in lightswork folder.


StdErr.log and error.log
Comment 5 Iaroslav Andrusyak 2014-11-13 09:40:26 UTC
Created attachment 109395 [details]
error
Comment 6 Samuel Pitoiset 2017-05-24 08:12:43 UTC
Quite old bug (almost 3 years ago). The AMD open source stack has largely evolved since 2014. Closing.


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.