ffwff / lilith

x86-64 os made in crystal
Other
1.15k stars 27 forks source link

Multiprocessing::Process gets corrupted mid-process creation #30

Closed ffwff closed 4 years ago

ffwff commented 4 years ago

The Process' process data is sometimes corrupted before process creation (when the PROCESS_CREATE_DRV syscall gets called). This might be because the kernel threads' stacks aren't scanned whenever it transfers an object from the global heap over.

ffwff commented 4 years ago

Apparently this can be fixed by not disabling GC scanning upon putting kernel threads to sleep.

ffwff commented 4 years ago

Fixed with 14ac644