-
-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Description
I think because Jenkins is a service.
I run:
if (auto ph = llfio::path_handle::path(temp_dir.path)) {
if (auto f = llfio::mapped_uniquely_named_file(
4096, ph.value(), llfio::mapped_file_handle::mode::write,
llfio::mapped_file_handle::caching::temporary,
llfio::mapped_file_handle::flag::unlink_on_first_close)) {
if (auto r = f.value().truncate(1)) {
which fails with path not found in the truncate.
Here's a trace:
NtCreateFile(FileHandle=0x3110bfe818 [0x484], DesiredAccess=0x00100000, ObjectAttributes="\??\C:\Users\user\AppData\Local\pythonwrapper\captures", IoStatusBlock=0x3110bfe7c0 [0/1], AllocationSize=null, FileAttributes=0, ShareAccess=7, CreateDisposition=1, CreateOptions=0x20, EaBuffer=null, EaLength=0) => 0
NtCreateFile(FileHandle=0x3110bfed88 [0x480], DesiredAccess=0xc0110000, ObjectAttributes=0x484:"1db06943e12397b2f1ab94ea98b9fc4b21091a59614b3c9b559196fddb2cb11e.random", IoStatusBlock=0x3110bfed70 [0/2], AllocationSize=0x3110bfed68 [0], FileAttributes=0x100, ShareAccess=7, CreateDisposition=2, CreateOptions=0x1060, EaBuffer=null, EaLength=0) => 0
NtFsControlFile(FileHandle=0x480, Event=0, UserApcRoutine=null, UserApcContext=null, UserIoStatus=0x3110bfe440 [0/0], FsControlCode=0x000900c4, InputBuffer=0x3110bfede0, InputBufferLength=1, OutputBuffer=null, OutputBufferLength=0) => 0
NtSetInformationFile(FileHandle=0x480, IoStatusBlock=0x3110bff040 [0/0], FileInformation=0x3110bff088, Length=8, FileInformationClass=0x14 [FileEndOfFileInformation]) => 0
NtQueryInformationFile(FileHandle=0x480, IoStatusBlock=0x3110bfef10 [0/0x18], FileInformation=0x3110bfef50, Length=0x18, FileInformationClass=5 [FileStandardInformation]) => 0
NtQueryInformationFile(FileHandle=0x480, IoStatusBlock=0x3110bfed10 [0/0x48], FileInformation=0x3110bdeca0, Length=0x00010002, FileInformationClass=0x44 [FileStatInformation]) => 0
NtQueryInformationFile(FileHandle=0x480, IoStatusBlock=0x3110bfed10 [0/0x18], FileInformation=0x3110bdeca0, Length=0x00010002, FileInformationClass=0x3b [FileIdInformation]) => 0
NtOpenSection(SectionHandle=0x3110bfef48, DesiredAccess=0x000f001f, ObjectAttributes="\Sessions\0\BaseNamedObjects\llfio_wd481f2baa8f2ba9836bf010000000200") => 0xc000003a [3 'The system cannot find the path specified.']
NtCreateSection(SectionHandle=0x3110bfef48, DesiredAccess=0x000f001f, ObjectAttributes="\Sessions\0\BaseNamedObjects\llfio_wd481f2baa8f2ba9836bf010000000200", SectionSize=null, Protect=4, Attributes=0x08000000, FileHandle=0x480) => 0xc000003a [3 'The system cannot find the path specified.']
NtSetInformationFile(FileHandle=0x480, IoStatusBlock=0x3110bfefd0 [0/0], FileInformation=0x3110bfefa0, Length=4, FileInformationClass=0x40 [FileDispositionInformationEx]) => 0
NtClose(Handle=0x480) => 0
NtClose(Handle=0x484) => 0
Seems like \Sessions\0\BaseNamedObjects* is not the right path in this windows service context.
Metadata
Metadata
Assignees
Labels
No labels