flinux icon indicating copy to clipboard operation
flinux copied to clipboard

ls hangs on latest build (against arch linux environment)

Open joebo opened this issue 9 years ago • 2 comments

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;

joebo avatar Mar 04 '16 04:03 joebo

Thanks for the info. Looks like it's related to #88

wishstudio avatar Mar 04 '16 18:03 wishstudio

I cannot reproduce this bug and understand the rationality. Can you provide more info?

wishstudio avatar Mar 22 '16 06:03 wishstudio