-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process.create with startup_info lead to Process finished with exit code -1073740791 (0xC0000409) on Windows 10 #30
Comments
Isn't the first argument returned from |
@djberg96 you are right, updated code sample:
|
Hm, I can't get it to work either. It's been a long time since I tried it, and I can see where we at least attempt to handle it: https://github.com/chef/win32-process/blob/ffi/lib/win32/process.rb#L563-L598 I'm not immediately certain why it's failing. |
@djberg96 I'm open to help if you have any idea (direction) what to investigate/check I will proceed. According to https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/get-osfhandle API of this method wasn't changed I have found a similar issue in |
I don't think I understand the issue well enough. All I say is that we do check the result of |
I'm not sure if this will help but, initially, we observed this problem on Github Actions
I have More CI runs can be found here: |
@CAMOBAP Hopefully someone from the chef team can help you, because I just don't know. One thing you could try is to see if equivalent C code works for you. If it does, then start inspecting the internals, such as the STARTINFO struct, to see what might be different. |
@djberg96 thanks for giving a direction |
@CAMOBAP I tried this:
I even note this size in the constants.rb file. But in my tests the Ruby code Edit: Or maybe it's a 32bit vs 64bit thing on my end. |
Description
Process.create
withstartup_info
lead toProcess finished with exit code -1073740791 (0xC0000409)
, withoutstartup_info
it works as expected.It starts happens relatively recently, maybe related to some update of Windows OS
Under debugger, I have reached the last line of code after which crash happens
Gem Version
0.8.3
Windows Version
Windows 10,
more details from `systeminfo` command
Replication Case
The minimal program to reproduce
The text was updated successfully, but these errors were encountered: