flinux
flinux copied to clipboard
ls hangs on latest build (against arch linux environment)
Running ls in the arch linux environment with the latest build hangs. It looks like it's an exception
I've isolated it to the location change of vfs_fork in this commit:
https://github.com/wishstudio/flinux/commit/a2229ffe5703105038a67327413f88c51e3d57e0#diff-105f07286aa45dd30511b098a017cf41L195
Placing it back to the original location solves the problem
FAILS:
if (!tls_fork(info.hProcess))
goto fail;
if (!vfs_fork(info.hProcess, info.dwProcessId))
goto fail;
if (!mm_fork(info.hProcess))
goto fail;
if (!shared_fork(info.hProcess))
goto fail;
if (!heap_fork(info.hProcess))
goto fail;
if (!signal_fork(info.hProcess))
goto fail;
if (!process_fork(info.hProcess))
goto fail;
if (!exec_fork(info.hProcess))
goto fail;
OK:
if (!tls_fork(info.hProcess))
goto fail;
if (!mm_fork(info.hProcess))
goto fail;
if (!shared_fork(info.hProcess))
goto fail;
if (!heap_fork(info.hProcess))
goto fail;
if (!signal_fork(info.hProcess))
goto fail;
if (!process_fork(info.hProcess))
goto fail;
if (!vfs_fork(info.hProcess, info.dwProcessId))
goto fail;
if (!exec_fork(info.hProcess))
goto fail;
Thanks for the info. Looks like it's related to #88
I cannot reproduce this bug and understand the rationality. Can you provide more info?