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
So the problem is much simpler that I thought initially and not sure if there is anything to do about it. Was able to reproduce with these commands on tumbleweed:
The first print command produces expected output, while the second (after assigning value to $0) has corrupted output.
So my main concerns was about environment variables in the child processes and all my testing confirmed that they are not affected, so it is mostly a concern for more complicated monitoring/debugging, etc.
Steps to reproduce the behavior
Start app with hypnotoad script in Tumbleweed or debian or ubuntu
Expected behavior
Content of
/proc/\<pid\>/environ
should contain environment variables. Or at least document current behavior.Actual behavior
Content of
/proc/\<pid\>/environ
looks corrupted: contains spaces, null bytes and sometimes meaningless characters.In production environment on Tumbleweed content of
/proc/\<pid\>/environ
looks corrupted for processes created by hypnotoad script.I reproduced problem with this test https://github.com/andrii-suse/mojo/blob/test_hypnotoad_environ/t/mojo/hypnotoad-environ.t
You can try these dockerfiles to reproduce the problem with the test above in various containers:
https://github.com/andrii-suse/mojo/tree/test_hypnotoad_environ/t/hypnotoad
The command like:
podman build -f Dockerfile.tumbleweed .
Test logs for github actions https://github.com/andrii-suse/mojo/actions/runs/12391807120 confirm my observations: for latest Tumbleweed, Debian and Ubuntu output of
hexdump -C /proc/$$/environ
is like below:For Leap it is expected behavior and output starts like
The text was updated successfully, but these errors were encountered: