Skip to content
New issue

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

darling hangs when trying to save out to variable when bootstrap isn't already running #1510

Open
tihmstar opened this issue Apr 26, 2024 · 0 comments

Comments

@tihmstar
Copy link
Contributor

Expected Result
darling should bootstrap and then execute the command and write the result into a variable.

Actual Result
Darling bootstrap hangs when trying to write the result into a variable indefinitely

Steps To Reproduce
This causes a hang:

RANDSTR=$(cat /dev/random | head -c16 | xxd -p)
DIRPATH="/tmp/darling.XXXXXXXX"${RANDSTR}
MYTMPDIR=$(mktemp -d ${DIRPATH})
export HOME=${MYTMPDIR}
rsp=$(/usr/local/bin/darling exec /usr/local/libexec/darling/bin/echo 123)

Output:

Setting up a new Darling prefix at /tmp/darling.sEDpLv9t2ed667d37f5a7ffbcdc87b06c5280f1b/.darling
<HANGS HERE FOREVER>

However running it first without writing it to the variable (so that darling can first bootstrap), works as expected.

RANDSTR=$(cat /dev/random | head -c16 | xxd -p)
DIRPATH="/tmp/darling.XXXXXXXX"${RANDSTR}
MYTMPDIR=$(mktemp -d ${DIRPATH})
export HOME=${MYTMPDIR}
/usr/local/bin/darling exec /usr/local/libexec/darling/bin/echo 123
rsp=$(/usr/local/bin/darling exec /usr/local/libexec/darling/bin/echo 123)
echo $rsp

Output:

Setting up a new Darling prefix at /tmp/darling.WreDvMdhbf5751fbb219b31eb38940698138400b/.darling
Bootstrapping the container with launchd...
123
123

dmesg Output
Run dmesg | grep 'overlay\|darling'

[346121.157101] overlayfs: "xino" feature enabled using 2 upper inode bits.

System Information
What system are you running?

Software Version
Linux Kernel 6.8.7-arch1-1
Darling 7c8415e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant