[Pkg-opencl-devel] Bug#848792: beignet: Beignet causes blender crash

Andreas Boll andreas.boll.dev at gmail.com
Tue Dec 20 13:37:22 UTC 2016


Forwarded post from rnpalmer:

> That message does come from beignet-opencl-icd
> (http://sources.debian.net/src/beignet/1.2.1-1/src/intel/intel_driver.c#L140),
> and means that context creation failed, but doesn't specify why.
> 
> To find out, please obtain a debug backtrace as follows:
> 
> $ sudoedit /etc/apt/sources.list
> [add the debug archive (deb
> http://debug.mirrors.debian.org/debian-debug/ testing-debug main) if
> not already present: https://wiki.debian.org/HowToGetABacktrace]
> $ sudo apt-get update
> $ sudo apt-get install gdb beignet-opencl-icd-dbgsym
> libdrm-intel-dbgsym
> $ gdb blender
> (gdb) set pagination 0
> (gdb) break intel/intel_bufmgr_gem.c:3175
> [this will probably ask whether to make it pending on future library
> load - answer yes]
> (gdb) run
> [trigger the crash - this will freeze, not close, the blender window]
> (gdb) bt full
> 
> What hardware are you using (lspci -nn | grep -e "\[03..\]:" )?
> 
> Does the beignet test suite
> (/usr/lib/x86_64-linux-gnu/beignet/utest_run from the beignet-dev
> package) also crash/fail?
> 
> Does the crash go away if you disable OpenCL in Blender's settings
> (https://www.blender.org/manual/preferences/system.html#compute-device)?
> 
> There are upstream bug reports that Blender's OpenCL doesn't work in
> beignet, but they appear to be different problems.


I guess this could be related to LLVM bug #848368. Blender crashes
because it uses different LLVM versions in the same process:
mesa-opencl-icd uses LLVM 3.9 and beignet-opencl-icd probably uses
LLVM 3.8.

It has been reported that Blender also crashes if pocl (using LLVM
3.8) and mesa-opencl-icd are installed at the same time
(https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=846162#5).

See also bug #846410, kdevelop crashes if using two different LLVM
versions in the same process.

Thanks,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-opencl-devel/attachments/20161220/11eebae7/attachment.sig>


More information about the Pkg-opencl-devel mailing list