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

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to