Package: libclang-cpp9
Version: 1:9.0.1-20
Severity: serious

Hi,

since the 1:9.0.1-20+b1 binNMU for amd64 reached sid yesterday, pocl
started to segfault.
This can be easily reproduced by installing clinfo + pocl-opencl-icd in
sid and running clinfo. The backtrace as observed in gdb:

Thread 1 "clinfo" received signal SIGSEGV, Segmentation fault.
reset () at 
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:182
182               _M_deleter()(__old_p);
(gdb) bt
#0  reset () at 
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:182
#1  reset () at 
/usr/lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:456
#2  clearOutputFiles () at 
/build/llvm-toolchain-9-as4LCm/llvm-toolchain-9-9.0.1/clang/lib/Frontend/CompilerInstance.cpp:657
#3  0x00007ffff724b454 in EndSourceFile () at 
/build/llvm-toolchain-9-as4LCm/llvm-toolchain-9-9.0.1/clang/lib/Frontend/FrontendAction.cpp:994
#4  0x00007ffff720a3f8 in ExecuteAction () at 
/build/llvm-toolchain-9-as4LCm/llvm-toolchain-9-9.0.1/clang/lib/Frontend/CompilerInstance.cpp:947
#5  0x00007ffff7da758f in pocl_llvm_build_program (program=0x5555555f15b0, 
device_i=0, num_input_headers=0, input_headers=<optimized out>, 
header_include_names=<optimized out>, linking_program=1) at 
./lib/CL/pocl_llvm_build.cc:531
#6  0x00007ffff7d465a0 in compile_and_link_program 
(compile_program=compile_program@entry=1, link_program=link_program@entry=1, 
program=0x5555555f15b0, num_devices=1, device_list=0x7fffffffdcc8, options=0x0, 
num_input_headers=0, input_headers=0x0,
    header_include_names=0x0, num_input_programs=0, input_programs=0x0, 
pfn_notify=0x0, user_data=0x0) at ./lib/CL/pocl_build.c:767
#7  0x00007ffff7d4567c in POclBuildProgram (program=<optimized out>, 
num_devices=<optimized out>, device_list=<optimized out>, options=<optimized 
out>, pfn_notify=<optimized out>, user_data=<optimized out>) at 
./lib/CL/clBuildProgram.c:37
#8  0x0000555555564057 in getWGsizes (ret=ret@entry=0x7fffffffdce0, 
loc=0x7fffffffdca0, wgm=wgm@entry=0x7fffffffdc20, wgm_sz=wgm_sz@entry=1, 
output=<optimized out>) at src/clinfo.c:1477
#9  0x00005555555644b0 in device_info_wg (ret=0x7fffffffdce0, loc=<optimized 
out>, chk=<optimized out>, output=<optimized out>) at src/clinfo.c:1534
#10 0x00005555555658cc in printDeviceInfo (dev=dev@entry=0x55555557a3c0, 
plist=plist@entry=0x7fffffffe2c0, p=p@entry=0, 
param_whitelist=param_whitelist@entry=0x0, output=output@entry=0x7fffffffe280) 
at src/clinfo.c:2888
#11 0x0000555555566808 in printPlatformDevices (plist=0x7fffffffe2c0, p=0, 
device=0x555555581520, ndevs=1, str=0x7fffffffe160, output=0x7fffffffe280, 
these_are_offline=0) at src/clinfo.c:3163
#12 0x0000555555566c37 in showDevices (plist=plist@entry=0x7fffffffe2c0, 
output=output@entry=0x7fffffffe280) at src/clinfo.c:3220
#13 0x000055555555b708 in main (argc=1, argv=<optimized out>) at 
src/clinfo.c:3991

The segfaulting starts to happen after upgrading these
packages to the new version ins sid:

# apt-get install libclang-cpp9
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  clang-9 libclang-common-9-dev libllvm9 libobjc-11-dev
Suggested packages:
  clang-9-doc
Recommended packages:
  llvm-9-dev python3
The following packages will be REMOVED:
  libgcc-10-dev libobjc-10-dev libstdc++-10-dev
The following NEW packages will be installed:
  libobjc-11-dev
The following packages will be upgraded:
  clang-9 libclang-common-9-dev libclang-cpp9 libllvm9
4 upgraded, 1 newly installed, 3 to remove and 7 not upgraded.
Need to get 0 B/28.6 MB of archives.
After this operation, 31.7 MB disk space will be freed.
Do you want to continue? [Y/n]

Could this be related to building with g++-11 now?


Andreas

Reply via email to