We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To reproduce this issue do
$ LD_PRELOAD=mylib/libmylib.so ./myapp
from samples/Qt/shared-lib/myapp-build
samples/Qt/shared-lib/myapp-build
The text was updated successfully, but these errors were encountered:
Problem seem to be in getEnvironmentVariable() function, if we comment it out for test purposes, it works fine
static std::string getEnvironmentVariable(const char* variableName, const char* defaultVal, const char* alternativeBashCommand = nullptr) { /*#if _ELPP_OS_UNIX const char* val = getenv(variableName); #elif _ELPP_OS_WINDOWS const char* val = getWindowsEnvironmentVariable(variableName); #endif // _ELPP_OS_UNIX if ((val == nullptr) || ((strcmp(val, "") == 0))) { #if _ELPP_OS_UNIX /// Try harder on unix-based systems std::string valBash = base::utils::OS::getBashOutput(alternativeBashCommand); if (valBash.empty()) { return std::string(defaultVal); } else { return valBash; } #elif _ELPP_OS_WINDOWS _ELPP_UNUSED(alternativeBashCommand); return std::string(defaultVal); #endif // _ELPP_OS_WINDOWS } return std::string(val);*/ return std::string(); }
Looking further...
Sorry, something went wrong.
Looked even further so issue is in getBashOut() since it tries to open process so i believe it runs into stack overflow (keep trying to open process)
bc12570
No branches or pull requests
To reproduce this issue do
from
samples/Qt/shared-lib/myapp-build
The text was updated successfully, but these errors were encountered: