[Pkg-opencl-devel] Bug#769403: beignet: unhelpful error on trying to call nonexistent OpenCL kernel function

Rebecca N. Palmer rebecca_palmer at zoho.com
Thu Nov 13 12:37:28 UTC 2014


Package: beignet
Version: 0.9.3~dfsg-2
(That version is only in Alioth as yet, but as I haven't touched 
anything related to this, I suspect the problem is upstream)

If an OpenCL kernel attempts to call a non-existent function (e.g. 
"b[i]=cossss(a[i])", as in the attached), pocl returns a helpful 
"undefined symbol: cossss" error message, but beignet simply crashes 
with "Segmentation fault".

gdb backtrace:

#0  0x00007ffff26b7eb1 in llvm::Function::getIntrinsicID() const ()
    from /usr/lib/beignet//libgbe.so
No symbol table info available.
#1  0x00007ffff18419e2 in ?? () from /usr/lib/beignet//libgbe.so
No symbol table info available.
#2  0x00007ffff2702c07 in 
llvm::FPPassManager::runOnFunction(llvm::Function&)
     () from /usr/lib/beignet//libgbe.so
No symbol table info available.
#3  0x00007ffff250b433 in ?? () from /usr/lib/beignet//libgbe.so
No symbol table info available.
#4  0x00007ffff2705649 in 
llvm::legacy::PassManagerImpl::run(llvm::Module&) ()
    from /usr/lib/beignet//libgbe.so
No symbol table info available.
#5  0x00007ffff18446a9 in ?? () from /usr/lib/beignet//libgbe.so
No symbol table info available.
#6  0x00007ffff17eeb02 in ?? () from /usr/lib/beignet//libgbe.so
No symbol table info available.
#7  0x00007ffff18a5f10 in ?? () from /usr/lib/beignet//libgbe.so
No symbol table info available.
#8  0x00007ffff17f325b in ?? () from /usr/lib/beignet//libgbe.so
No symbol table info available.
#9  0x00007ffff5a0386d in ?? () from /usr/lib/beignet/libcl.so
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#10 0x00007ffff59fbdf5 in clBuildProgram () from /usr/lib/beignet/libcl.so
No symbol table info available.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bad_kernel_test.py
Type: text/x-python
Size: 1004 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-opencl-devel/attachments/20141113/4e750428/attachment.py>


More information about the Pkg-opencl-devel mailing list