You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been running an application in WSL, and have found that as I pass more and more CLI arguments, it will cause an unrelated portion of my app to crash. I assumed that it was related to prior issues that there was a memory leak somewhere, but I had properly initialized all my values. (I can't show the app's source)
I then tried the exact same command that crashes in WSL on Powershell, and found that it does not crash. I'm not entirely sure whether it is an issue with line endings that causing this, as I have not dug into the source thoroughly, but this a guess since it may be an assumption made somewhere in the source.
I thought I'd let y'all know. Thank you for creating CLI11!
The text was updated successfully, but these errors were encountered:
Going to need a few more details to help with anything. If you can point to any code or code blocks in CLI11 you think might be the source of the issue that would be helpful. Otherwise not sure I can do much.
JulianKnodt
changed the title
WSL vs Powershell eol may cause Undefined Behavior.
WSL vs Powershell may cause Undefined Behavior.
Oct 18, 2023
Hm.... I'm not sure if there is anything to actively be done. To be clear exactly how I'm repro-ing this, I compile with VS (2019?) on Windows 11, then I run the exe from WSL. I looked at the two functions that I saw in CLI11 that checked for _MSC_VER, but both of them didn't seem to make any assumptions about the content. If there is an error there, it could be an error with how windows registers binfmt_misc (from my understanding).
I'm not sure if there is anything that can be actively done now, but maybe could be randomly identified later.
I've been running an application in WSL, and have found that as I pass more and more CLI arguments, it will cause an unrelated portion of my app to crash. I assumed that it was related to prior issues that there was a memory leak somewhere, but I had properly initialized all my values. (I can't show the app's source)
I then tried the exact same command that crashes in WSL on Powershell, and found that it does not crash. I'm not entirely sure whether it is an issue with line endings that causing this, as I have not dug into the source thoroughly, but this a guess since it may be an assumption made somewhere in the source.
I thought I'd let y'all know. Thank you for creating CLI11!
The text was updated successfully, but these errors were encountered: