[Mesa-dev] screen blurred and glxgears segment fault on ubuntu17.10 for arm architecture server with amdgpu(AMD RADEON PRO WX7100)
Lvzhihong (ReJohn)
lvzhihong1 at huawei.com
Mon Dec 4 02:49:55 UTC 2017
Hi,all,
We met a problem on ubuntu17.10 for arm server with amdgpu(AMD RADEON PRO WX7100), we use open source driver which are integrated in ubuntu17.10. And the architecture is AArch64-linux-gnu.
we install :
apt-get install xserver-xorg xinit xfce4 and mesa-utils glmark2
we start x server :
startx
and then the monitor shows the screen and the screen is blurred.
[cid:image001.jpg at 01D36CED.9D00A330]
Run glxinfo ,the output is normal. glmark2 runs well and get 4300 score. but glxgears got segment fault.
and the call stack is :
Starting program: /usr/bin/glxgears
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
[New Thread 0xffffbc6b31d0 (LWP 5813)]
[New Thread 0xffffbbcfa1d0 (LWP 5814)]
[New Thread 0xffffbb4b21d0 (LWP 5815)]
[New Thread 0xffffbacb21d0 (LWP 5816)]
[New Thread 0xffffba4b21d0 (LWP 5817)]
[New Thread 0xffffb9cb21d0 (LWP 5818)]
[New Thread 0xffffb94b21d0 (LWP 5819)]
[New Thread 0xffffb8c521d0 (LWP 5820)]
Thread 9 "gallium_drv:0" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xffffb8c521d0 (LWP 5820)]
0x0000ffffbd913a44 in llvm::Value::getContext (this=this at entry=0xffff94092478) at /home/llvm/llvm-5.0.0.src/lib/IR/Value.cpp:697
697 LLVMContext &Value::getContext() const { return VTy->getContext(); }
(gdb) bt
#0 0x0000ffffbd913a44 in llvm::Value::getContext (this=this at entry=0xffff94092478) at /home/llvm/llvm-5.0.0.src/lib/IR/Value.cpp:697
#1 0x0000ffffbd914f78 in llvm::Value::setNameImpl (this=this at entry=0xffff94092478, NewName=...) at /home/llvm/llvm-5.0.0.src/lib/IR/Value.cpp:229
#2 0x0000ffffbd91522c in llvm::Value::setName (this=this at entry=0xffff94092478, NewName=...) at /home/llvm/llvm-5.0.0.src/lib/IR/Value.cpp:285
#3 0x0000ffffbd8b998c in llvm::ExtractValueInst::init (this=this at entry=0xffff94092478, Idxs=..., Name=...) at /home/llvm/llvm-5.0.0.src/lib/IR/Instructions.cpp:1945
#4 0x0000ffffbd85d6b8 in llvm::ExtractValueInst::ExtractValueInst (InsertBefore=0x0, NameStr=..., Idxs=..., Agg=0xffff940c56d0, this=0xffff94092478)
at /home/llvm/llvm-5.0.0.src/include/llvm/IR/Instructions.h:2397
#5 llvm::ExtractValueInst::Create (InsertBefore=0x0, NameStr=..., Idxs=..., Agg=0xffff940c56d0) at /home/llvm/llvm-5.0.0.src/include/llvm/IR/Instructions.h:2336
#6 llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::CreateExtractValue (Name=..., Idxs=..., Agg=0xffff940c56d0, this=0xffff94020d10)
at /home/llvm/llvm-5.0.0.src/include/llvm/IR/IRBuilder.h:1756
#7 LLVMBuildExtractValue (B=0xffff94020d10, AggVal=AggVal at entry=0xffff940c56d0, Index=<optimized out>, Index at entry=263, Name=Name at entry=0x0)
at /home/llvm/llvm-5.0.0.src/lib/IR/Core.cpp:3003
#8 0x0000ffffbece9918 in si_build_ps_prolog_function (ctx=0xffffb8c4dce8, key=0xffffb8c51578) at si_shader.c:7046
#9 0x0000ffffbecef048 in si_get_shader_part (sscreen=sscreen at entry=0xaaaaaab5c3f0, list=list at entry=0xaaaaaab5c900, type=type at entry=PIPE_SHADER_FRAGMENT, prolog=false, prolog at entry=true,
key=key at entry=0xffffb8c51578, tm=tm at entry=0xaaaaaab03980, debug=0x0, debug at entry=0xffff940191d8, build=build at entry=0xffffbece9470 <si_build_ps_prolog_function>,
name=name at entry=0xffffbee42d98 "Fragment Shader Prolog") at si_shader.c:6510
#10 0x0000ffffbecf1044 in si_shader_select_ps_parts (debug=0xffff940191d8, shader=0xffff940191d0, tm=0xaaaaaab03980, sscreen=0xaaaaaab5c3f0) at si_shader.c:7250
#11 si_shader_create (sscreen=sscreen at entry=0xaaaaaab5c3f0, tm=0xaaaaaab03980, shader=shader at entry=0xffff940191d0, debug=debug at entry=0xffff940191d8) at si_shader.c:7428
#12 0x0000ffffbed05780 in si_build_shader_variant (shader=0xffff940191d0, thread_index=<optimized out>, low_priority=<optimized out>) at si_state_shaders.c:1493
#13 0x0000ffffbed061c4 in si_shader_select_with_key (sscreen=0xaaaaaab5c3f0, state=state at entry=0xaaaaaab05b88, compiler_state=compiler_state at entry=0xffffb8c517d0,
key=key at entry=0xffffb8c516e8, thread_index=thread_index at entry=-1) at si_state_shaders.c:1736
#14 0x0000ffffbed06ae8 in si_shader_select (ctx=ctx at entry=0xaaaaaab04c80, state=state at entry=0xaaaaaab05b88, compiler_state=compiler_state at entry=0xffffb8c517d0) at si_state_shaders.c:1753
#15 0x0000ffffbed08234 in si_update_shaders (sctx=sctx at entry=0xaaaaaab04c80) at si_state_shaders.c:3254
#16 0x0000ffffbed01fdc in si_draw_vbo (ctx=0xaaaaaab04c80, info=0xaaaaaac020e8) at si_state_draw.c:1266
#17 0x0000ffffbec591f0 in tc_call_draw_vbo (pipe=<optimized out>, payload=0xaaaaaac020e8) at util/u_threaded_context.c:1814
#18 0x0000ffffbec5603c in tc_batch_execute (job=job at entry=0xaaaaaac01d90, thread_index=thread_index at entry=0) at util/u_threaded_context.c:94
#19 0x0000ffffbeb60d40 in util_queue_thread_func (input=input at entry=0xaaaaaabc3690) at u_queue.c:187
#20 0x0000ffffbeb60bdc in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#21 0x0000ffffbf135338 in start_thread (arg=0xffffffffe9b6) at pthread_create.c:465
#22 0x0000ffffbf3ed98c in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78
There may be a bug in mesa or llvm while running in arm server(aarch64-linux-gnu).
Thanks & Best Regards
吕志宏 ReJohn
华为服务器:创新 让计算更简单
IT产品线 服务器解决方案开发部 M:134-8611-7471
Huawei R&D Center Z4#,No.360 Jiangshu RD,Binjiang District,Hangzhou 310051, P.R.China enterprise.huawei.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171204/c7a4109c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 48021 bytes
Desc: image001.jpg
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171204/c7a4109c/attachment-0001.jpg>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: glxinfo.txt
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171204/c7a4109c/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: glmark2.png
Type: image/png
Size: 68404 bytes
Desc: glmark2.png
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171204/c7a4109c/attachment-0001.png>
More information about the mesa-dev
mailing list