Issue 204468
Summary [DirectX] IO sandbox violation error
Labels new issue
Assignees
Reporter bob80905
    These results are seen from the build pipelines:

```

# | #33 0x00007ff6bb113583 llvm::sys::sandbox::scopedDisable D:\a\_work\1\s\llvm-project\llvm\include\llvm\Support\IOSandbox.h:24:0
# | #34 0x00007ff6bb113583 cc1_main(class llvm::ArrayRef<char const *>, char const *, void *) D:\a\_work\1\s\llvm-project\clang\tools\driver\cc1_main.cpp:302:0
# | #35 0x00007ff6bb10b801 ExecuteCC1Tool D:\a\_work\1\s\llvm-project\clang\tools\driver\driver.cpp:229:0
# | #36 0x00007ff6bb109cad llvm::function_ref<int __cdecl(llvm::SmallVectorImpl<char const *> &)>::callback_fn<`clang_main'::`2'::<lambda_1> > D:\a\_work\1\s\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:48:0
# | #37 0x00007ff6bdc70a41 clang::driver::CC1Command::Execute::__l7::<lambda_1>::operator() D:\a\_work\1\s\llvm-project\clang\lib\Driver\Job.cpp:442:0
# | #38 0x00007ff6bdc70a41 llvm::function_ref<void __cdecl(void)>::callback_fn<`clang::driver::CC1Command::Execute'::`7'::<lambda_1> > D:\a\_work\1\s\llvm-project\llvm\include\llvm\ADT\STLFunctionalExtras.h:46:0
# | #39 0x00007ff6bce17bfa llvm::CrashRecoveryContext::RunSafely(class llvm::function_ref<(void)>) D:\a\_work\1\s\llvm-project\llvm\lib\Support\CrashRecoveryContext.cpp:237:0
# | #40 0x00007ff6bdc7139b clang::driver::CC1Command::Execute(class llvm::ArrayRef<class std::optional<class llvm::StringRef>>, class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> *, bool *) const D:\a\_work\1\s\llvm-project\clang\lib\Driver\Job.cpp:442:0
# | #41 0x00007ff6bdb72a5e std::_Func_class<void,clang::driver::Command const &,int>::_Empty C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\functional:945:0
# | #42 0x00007ff6bdb72a5e std::function<void __cdecl(clang::driver::Command const &,int)>::operator bool C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\functional:1198:0
# | #43 0x00007ff6bdb72a5e clang::driver::Compilation::ExecuteCommand(class clang::driver::Command const &, class clang::driver::Command const *&, bool) const D:\a\_work\1\s\llvm-project\clang\lib\Driver\Compilation.cpp:197:0
# | #44 0x00007ff6bdb72cf0 clang::driver::Compilation::ExecuteJobs(class clang::driver::JobList const &, class llvm::SmallVectorImpl<struct std::pair<int, class clang::driver::Command const *>> &, bool) const D:\a\_work\1\s\llvm-project\clang\lib\Driver\Compilation.cpp:246:0
# | #45 0x00007ff6bdb46569 llvm::SmallVectorBase<unsigned int>::empty D:\a\_work\1\s\llvm-project\llvm\include\llvm\ADT\SmallVector.h:86:0
# | #46 0x00007ff6bdb46569 clang::driver::Driver::ExecuteCompilation(class clang::driver::Compilation &, class llvm::SmallVectorImpl<struct std::pair<int, class clang::driver::Command const *>> &) D:\a\_work\1\s\llvm-project\clang\lib\Driver\Driver.cpp:2370:0
# | #47 0x00007ff6bb10dc49 clang_main(int, char **, struct llvm::ToolContext const &) D:\a\_work\1\s\llvm-project\clang\tools\driver\driver.cpp:421:0
# | #48 0x00007ff6bb120e19 main D:\a\_work\1\b\build-release\tools\clang\tools\driver\clang-driver.cpp:17:0
# | #49 0x00007ff6c15c04e8 invoke_main D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:78:0
# | #50 0x00007ff6c15c04e8 __scrt_common_main_seh D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288:0
# | #51 0x00007fffe9eb4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #52 0x00007fffeb95edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# | clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
# | clang version 23.0.0git (https://github.com/llvm/llvm-project.git a1c3370d58b9c0a3d5b75cadff6d1b9c2449bf58)
# | Target: dxilv1.7-unknown-shadermodel6.7-library
# | Thread model: posix
# | InstalledDir: D:\a\_work\1\b\build-release\bin
# | Build config: +assertions
# | clang: warning: dxv not found; resulting DXIL will not be validated or signed for use in release environment [-Wdxil-validation]
# | clang: note: diagnostic msg: 
# | ********************
# | 
# | PLEASE ATTACH THE FOLLOWING CRASH REPRODUCER FILES TO THE BUG REPORT:
# | clang: note: diagnostic msg: C:\Users\CLOUDT~1\AppData\Local\Temp\lit-tmp-1a1s7fb6\dxc_section_emission-13ea8e.hlsl
# | clang: note: diagnostic msg: C:\Users\CLOUDT~1\AppData\Local\Temp\lit-tmp-1a1s7fb6\dxc_section_emission-13ea8e.sh
# | clang: note: diagnostic msg: 
# | 
# | ********************
# `-----------------------------
# error: command failed with exit status: 1

```

The IO sandbox violation error is coming from the DXContainerPDB pass, which uses the local file system, when the virtual file system is expected.
We need to change the pass to either give it an exception to use the local file system, or change the implementation so that it uses the vfs.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to