Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928153 - media-gfx/openvdb-11.0.0 - SANDBOX ACCESS VIOLATION - /proc/self/task/109/comm
Summary: media-gfx/openvdb-11.0.0 - SANDBOX ACCESS VIOLATION - /proc/self/task/109/comm
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paul Zander
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-30 06:57 UTC by Marian Kyral
Modified: 2024-04-05 08:57 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Kyral 2024-03-30 06:57:07 UTC
I just switched to 23.0/split-usr profile and media-gfx/openvdb-11.0.0 package failed to recompile. It compliled fine previously.

Reproducible: Always

Steps to Reproduce:
1. Switch to 23.0/split-usr profile
2. emerge -1 media-gfx/openvdb
3.
Actual Results:  
Failed to compile:

>>> Emerging (1 of 1) media-gfx/openvdb-11.0.0::gentoo
 * openvdb-11.0.0.tar.gz BLAKE2B SHA512 size ;-) ...                                                                                                                                                                                                                                                           [ ok ]
>>> Unpacking source...
>>> Unpacking openvdb-11.0.0.tar.gz to /var/tmp/portage/media-gfx/openvdb-11.0.0/work
>>> Source unpacked in /var/tmp/portage/media-gfx/openvdb-11.0.0/work
>>> Preparing source in /var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0 ...
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0_build"
 * Applying openvdb-8.1.0-glfw-libdir.patch ...                                                                                                                                                                                                                                                                [ ok ]
 * Applying openvdb-9.0.0-fix-atomic.patch ...
patching file nanovdb/nanovdb/CMakeLists.txt
Hunk #1 succeeded at 69 with fuzz 1.
patching file openvdb/openvdb/CMakeLists.txt
Hunk #1 succeeded at 197 (offset -5 lines).                                                                                                                                                                                                                                                                    [ ok ]
 * Applying openvdb-10.0.1-fix-linking-of-vdb_tool-with-OpenEXR.patch ...                                                                                                                                                                                                                                      [ ok ]
 * Applying openvdb-10.0.1-log4cplus-version.patch ...                                                                                                                                                                                                                                                         [ ok ]
 * Applying openvdb-11.0.0-constexpr-version.patch ...                                                                                                                                                                                                                                                         [ ok ]
 * Applying openvdb-11.0.0-cmake_fixes.patch ...                                                                                                                                                                                                                                                               [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0 ...
 * install: running my_src_configure
 * trying to determine host CUDAARCHS
 * ACCESS DENIED:  fopen_wr:           /proc/self/task/109/comm
__nvcc_device_query failed to call cudaLoader::cuInit(0) with error 0x130 (CUDA_ERROR_OPERATING_SYSTEM)
 * building for CUDAARCHS =
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0_build-install"
cmake -C /var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0_build-install/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=yes -DCMAKE_INSTALL_DOCDIR=share/doc/openvdb-11.0.0/ -DOPENVDB_ABI_VERSION_NUMBER=11 -DOPENVDB_BUILD_DOCS=no -DOPENVDB_BUILD_UNITTESTS=no -DOPENVDB_BUILD_VDB_LOD=no -DOPENVDB_BUILD_VDB_RENDER=no -DOPENVDB_BUILD_VDB_TOOL=no -DOPENVDB_BUILD_VDB_VIEW=no -DOPENVDB_CORE_SHARED=yes -DOPENVDB_CORE_STATIC=no -DOPENVDB_ENABLE_UNINSTALL=no -DUSE_AX=no -DOPENVDB_BUILD_HOUDINI_PLUGIN=no -DUSE_BLOSC=yes -DUSE_COLORED_OUTPUT=yes -DUSE_EXR=no -DUSE_HOUDINI=no -DUSE_IMATH_HALF=yes -DUSE_LOG4CPLUS=yes -DUSE_PKGCONFIG=yes -DUSE_PNG=no -DUSE_TBB=yes -DUSE_ZLIB=yes -DOPENVDB_USE_FUTURE_ABI_12=no -DOPENVDB_USE_DEPRECATED_ABI_10=no -DOPENVDB_USE_DEPRECATED_ABI_9=no -DUSE_NANOVDB=yes -DNANOVDB_ALLOW_FETCHCONTENT=yes -DNANOVDB_BUILD_EXAMPLES=no -DNANOVDB_BUILD_TOOLS=no -DNANOVDB_BUILD_UNITTESTS=no -DNANOVDB_USE_BLOSC=yes -DNANOVDB_USE_CUDA=yes -DNANOVDB_USE_ZLIB=yes -DNANOVDB_USE_OPENVDB=yes -DNANOVDB_USE_INTRINSICS=yes -DOPENVDB_SIMD=AVX -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0_build-install/gentoo_toolchain.cmake /var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0
loading initial cache file /var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0_build-install/gentoo_common_config.cmake
-- The CXX compiler identification is GNU 13.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using ccache: /usr/bin/ccache
-- Enabling colored compiler output
-- CMake Build Type: RelWithDebInfo
-- Found PkgConfig: /usr/bin/x86_64-pc-linux-gnu-pkg-config (found version "2.1.1")
-- Configuring for OpenVDB Version 11.0.0
-- Configuring for OpenVDB ABI Version 11
-- ----------------------------------------------------
-- ------------- Configuring OpenVDBCore --------------
-- ----------------------------------------------------
-- Found Imath: /usr/include (found suitable version "3.1.6", minimum required is "3.1")
-- Found Log4cplus: /usr/lib64/liblog4cplus.so (found suitable version "2.0.7", minimum required is "1.1.2")
-- Found Blosc: /usr/lib64/libblosc.so (found suitable version "1.21.5", minimum required is "1.17.0")
-- Found ZLIB: /usr/lib64/libz.so (found suitable version "1.3", minimum required is "1.2.7")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- ----------------------------------------------------
-- ----------- Configuring OpenVDBBinaries ------------
-- ----------------------------------------------------
-- Found Jemalloc: /usr/lib64/libjemalloc.so
-- The C compiler identification is GNU 13.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- ----------------------------------------------------
-- --------------- Configuring NanoVDB ----------------
-- ----------------------------------------------------
-- The CUDA compiler identification is NVIDIA 12.3.107
-- Detecting CUDA compiler ABI info
-- Detecting CUDA compiler ABI info - done
-- Check for working CUDA compiler: /opt/cuda/bin/nvcc - skipped
 * ACCESS DENIED:  fopen_wr:           /proc/self/task/308/comm
-- Detecting CUDA compile features
-- Detecting CUDA compile features - done
-- Found Blosc: /usr/lib64/libblosc.so (found version "1.21.5")
-- Found ZLIB: /usr/lib64/libz.so (found version "1.3")
-- <<< Gentoo configuration >>>
Build type      RelWithDebInfo
Install path    /usr
Compiler flags:
C               -march=znver3 -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -pipe
C++             -march=znver3 -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -pipe
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
Module          -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs
Shared          -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs

-- Configuring done (2.8s)
-- Generating done (0.0s)
-- Build files have been written to: /var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0_build-install
>>> Source configured.
 * ----------------------- SANDBOX ACCESS VIOLATION SUMMARY -----------------------
 * LOG FILE: "/var/tmp/portage/media-gfx/openvdb-11.0.0/temp/sandbox.log"
 *
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: fopen_wr
S: deny
P: /proc/self/task/109/comm
A: /proc/self/task/109/comm
R: /proc/108/task/109/comm
C: __nvcc_device_query

F: fopen_wr
S: deny
P: /proc/self/task/308/comm
A: /proc/self/task/308/comm
R: /proc/307/task/308/comm
C: /var/tmp/portage/media-gfx/openvdb-11.0.0/work/openvdb-11.0.0_build-install/CMakeFiles/3.28.3/CMakeDetermineCompilerABI_CUDA.bin
 * --------------------------------------------------------------------------------


Expected Results:  
Compile and install
Comment 1 Marian Kyral 2024-03-31 06:24:32 UTC
Update: it builds correctly today with dev-util/nvidia-cuda-toolkit-12.4.0
Comment 2 Paul Zander 2024-03-31 18:30:07 UTC
Temporary solution is:
echo 'SANDBOX_PREDICT="/proc/self/task"' >> /etc/sandbox.d/20nvidia

The fix is only in dev-util/nvidia-cuda-toolkit-12.4.0 for now.