wishstudio / flinux

Foreign LINUX - Run unmodified Linux applications inside Windows.
GNU General Public License v3.0
3.58k stars 244 forks source link

Problem with Boehm GC #106

Open stasoid opened 5 years ago

stasoid commented 5 years ago

I am trying to get Cyclone work on flinux. Cyclone uses garbage collector. When running cyclone on flinux it errors out with Absurd stack bottom value error. This issue is similar to this: Boehm gc reads "/proc/self/stat" and extracts field 28 and uses that for stack scanning (field 28 is the start of the main thread's stack, see http://man7.org/linux/man-pages/man5/proc.5.html).

But flinux does not properly set field 28 in /proc/self/stat

I don't have enough knowledge to fix it myself, however for someone who understands the codebase it probably would be easy.

But also, I am concerned if that would be enough. Maybe Boehm gc messes with the code on low level so it would be hard to get working on flinux?