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 believe this is because the realpath call in src/utils.c:getFullPath returns a NULL if the provided path does not resolve to a real file (https://man7.org/linux/man-pages/man3/realpath.3.html), which is then fed later on to setVMPath. realpath also does not look at the PATH when searching for a file.
We should log the errno at the very least, and handle this correctly.
The text was updated successfully, but these errors were encountered:
When the Pharo executable is started with an
argv[0]
that is not a relative or absolute path, the VM will segfault.PoC:
wrapper.sh
stack trace
I believe this is because the
realpath
call insrc/utils.c:getFullPath
returns a NULL if the provided path does not resolve to a real file (https://man7.org/linux/man-pages/man3/realpath.3.html), which is then fed later on tosetVMPath
.realpath
also does not look at thePATH
when searching for a file.We should log the errno at the very least, and handle this correctly.
The text was updated successfully, but these errors were encountered: