[Pkg-opencl-devel] Bug#913141: Bug#913141: beignet: Segmentation fault while running opencv_perf_dnn

Sander Eikelenboom linux at eikelenboom.it
Thu Nov 8 10:09:45 GMT 2018


On 07/11/18 23:40, Rebecca N. Palmer wrote:
> That's a crash while trying to compile something.
> 
> Is this bug present in LLVM 7?  LLVM 3.9 has just been removed, so isn't 
> an option.
> 
> Do any of the tests (/usr/lib/x86_64-linux-gnu/beignet/utest_run from 
> the beignet-dev package) also crash?
> 
> Please install libllvm6.0-dbgsym and beignet-opencl-icd-dbgsym from the 
> debug symbols archive ( 
> https://www.debian.org/releases/stable/amd64/release-notes/ch-whats-new.en.html#debug-archive 
> ) and run the trace again.  If possible, also get the source it is 
> trying to compile (program->source in clBuildProgram, it will probably 
> be long enough that you need to adjust gdb's print settings).
> 

Hi Rebecca,

Compiling with LLVM 7 fails for me at the moment, see below.

I will rebuild with LLVM 6 to get the beignet debug symbol packages, since they are not in the Debian repos for the amd64 arch:

Package beignet-dev-dbgsym
    sid (unstable) (debug): debug symbols for beignet-dev
    1.3.2-4 [debports]: x32

Package beignet-opencl-icd-dbgsym
    sid (unstable) (debug): debug symbols for beignet-opencl-icd
    1.3.2-4 [debports]: x32

Will report back with the output of llvm-6 with debug symbols and running the utests.

Thanks so for !

--
Sander


/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp: In member function ‘{anonymous}::ValuePair {anonymous}::ConversionState::recordForwardPHI(llvm::Value*, llvm::PHINode*, llvm::PHINode*, unsigned int)’:
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:230:5: error: ‘DEBUG’ was not declared in this scope
     DEBUG(dbgs() << "\tRecording as forward PHI\n");
     ^~~~~
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:230:5: note: suggested alternative: ‘IF_DEBUG’
     DEBUG(dbgs() << "\tRecording as forward PHI\n");
     ^~~~~
     IF_DEBUG
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp: In member function ‘void {anonymous}::ConversionState::recordConverted(llvm::Instruction*, const ValuePair&)’:
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:237:5: error: ‘DEBUG’ was not declared in this scope
     DEBUG(dbgs() << "\tTo:  " << *To.Lo << "\n");
     ^~~~~
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:237:5: note: suggested alternative: ‘IF_DEBUG’
     DEBUG(dbgs() << "\tTo:  " << *To.Lo << "\n");
     ^~~~~
     IF_DEBUG
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp: In member function ‘void {anonymous}::ConversionState::recordConverted(llvm::Instruction*, llvm::Value*)’:
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:247:5: error: ‘DEBUG’ was not declared in this scope
     DEBUG(dbgs() << "\tTo:  " << *To << "\n");
     ^~~~~
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:247:5: note: suggested alternative: ‘IF_DEBUG’
     DEBUG(dbgs() << "\tTo:  " << *To << "\n");
     ^~~~~
     IF_DEBUG
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp: In member function ‘void {anonymous}::ConversionState::patchForwardPHIs()’:
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:256:11: error: expected primary-expression before ‘if’
     DEBUG(if (!ForwardPHIs.empty()) dbgs() << "Patching forward PHIs:\n");
           ^~
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:256:5: error: ‘DEBUG’ was not declared in this scope
     DEBUG(if (!ForwardPHIs.empty()) dbgs() << "Patching forward PHIs:\n");
     ^~~~~
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:256:5: note: suggested alternative: ‘IF_DEBUG’
     DEBUG(if (!ForwardPHIs.empty()) dbgs() << "Patching forward PHIs:\n");
     ^~~~~
     IF_DEBUG
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp: In function ‘void convertInstruction(llvm::Instruction*, {anonymous}::ConversionState&, const llvm::DataLayout&)’:
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:389:3: error: ‘DEBUG’ was not declared in this scope
   DEBUG(dbgs() << "Expanding Large Integer: " << *Inst << "\n");
   ^~~~~
/mnt/scratch/src/beignet-1.3.2/backend/src/llvm/ExpandLargeIntegers.cpp:389:3: note: suggested alternative: ‘IF_DEBUG’
   DEBUG(dbgs() << "Expanding Large Integer: " << *Inst << "\n");



More information about the Pkg-opencl-devel mailing list