From: nobu@... Date: 2017-10-24T14:46:59+00:00 Subject: [ruby-core:83543] [Ruby trunk Bug#14047] SEGV happen when running script under OneDrive directory if File On-Demand is enabled Issue #14047 has been updated by nobu (Nobuyoshi Nakada). Could you try this patch? ```diff diff --git a/win32/win32.c b/win32/win32.c index 62801dae71..7e8afb2ddc 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4958,7 +4958,7 @@ rb_w32_read_reparse_point(const WCHAR *path, rb_w32_reparse_buffer_t *rp, ret = rp->SymbolicLinkReparseBuffer.PrintNameLength; *len = ret / sizeof(WCHAR); } - else { /* IO_REPARSE_TAG_MOUNT_POINT */ + else if (rp->ReparseTag == IO_REPARSE_TAG_MOUNT_POINT) { static const WCHAR *volume = L"Volume{"; enum {volume_prefix_len = rb_strlen_lit("\\??\\")}; name = ((char *)rp->MountPointReparseBuffer.PathBuffer + @@ -4971,6 +4971,9 @@ rb_w32_read_reparse_point(const WCHAR *path, rb_w32_reparse_buffer_t *rp, memcmp(name, volume, sizeof(volume) - 1 * sizeof(WCHAR)) == 0) return -1; } + else { + return -1; + } *result = name; if (e) { if ((char *)name + ret + sizeof(WCHAR) > (char *)rp + bufsize) ``` ---------------------------------------- Bug #14047: SEGV happen when running script under OneDrive directory if File On-Demand is enabled https://bugs.ruby-lang.org/issues/14047#change-67569 * Author: what_alnk (��������� ���������) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- After Windows 10 Fall Creators Update, SEGV happened when I run any script under OneDrive directory. If File On-Demand was disabled, SEGV did not happened. I attached the log. OS: Windows 10 Pro Version 1709 Build 16299.19 ---Files-------------------------------- 2017-10-23-ruby-segv.txt (6.35 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: