Strange behavioral from 'std::env' when calling Rust program from C++ Program #88108
Labels
A-process
Area: `std::process` and `std::env`
C-bug
Category: This is a bug.
S-needs-repro
Status: This issue has no reproduction and needs a reproduction to make progress.
S-waiting-on-author
Status: This is awaiting some action (such as code changes or more information) from the author.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
I port an application from C++ to RUST which is responsible to parse the input arguments and then do some actions.
I tried to call this RUST application from another C++ application via CreateProcess function.
But something strange happened, I think the lifetime of passing parameters in C++ affects on Rust program.
My rust program receives the arguments in C++ Debug mode successfully but it could not received same arguments in Release mode of C++.
I think std::env of Rust should work isolated from parent process, am I right?
Related issue #44650
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: