fork error when trying to call VirtualAlloc with size==0

Yuyi Wang Strawberry_Str@hotmail.com
Tue May 20 06:49:15 GMT 2025


I tried dlfork(FORK_NO_RELOAD) after dlopen() the proc macro DLLs. Now rustc
works as expected. Therefore, I think the problem is most likely caused by too
many DLLs loaded. See the PR here: https://github.com/rust-lang/rust/pull/141276

I think dlfork is a good workaround, but not the best. It would be better if we
can set a specific DLL not reload on fork on dlopen(). What do you think?

--
Yuyi Wang


More information about the Cygwin mailing list