brson: brson: Thanks for the details about the hanging issue. I’ve tried just doing some normal rustup commands and looking for zombie instances in task manager, but so far haven’t reproduced what you are seeing. It certainly sounds related. This isn’t a bug that I’ve heard of. Does cargo update hang consistently or just sometimes?

Any cargo command hangs, even cargo without any extra argument. In Process Explorer I can see multirust.exe seem to actually call cargo so I think it’s actually multirust.exe that has an issue. No idea how multirust.exe is involved in the whole chain.

I did some more tests and I am pretty sure it has something to do with the 32 bit binaries as all the issues disappear if I manually download and use 64 bit rustup-init.exe to install the toolchain.

EDIT:

I was too quick to say that everything works when using the 64 bit binaries only. cargo build still hangs (actually rustc seem to hang). cargo update works fine.

Last strace lines for cargo build :

--- Process 9208 loaded C:\Windows\System32\shell32.dll at 000007FEFE450000 --- Process 9208 loaded C:\Windows\System32\shlwapi.dll at 000007FEFD8E0000 --- Process 9208 loaded C:\Windows\System32\userenv.dll at 000007FEFD180000 --- Process 9208 loaded C:\Windows\System32\profapi.dll at 000007FEFD040000 --- Process 9208 loaded C:\Windows\System32\ws2_32.dll at 000007FEFDD20000 --- Process 9208 loaded C:\Windows\System32

si.dll at 000007FEFE010000 --- Process 9208 loaded C:\Windows\System32\dbghelp.dll at 000007FEF836 --- Process 9208 loaded C:\Windows\System32\shell32.dll at 000007FEFE450000 --- Process 9208 loaded C:\Windows\System32\shlwapi.dll at 000007FEFD8E0000 --- Process 9208 loaded C:\Windows\System32\userenv.dll at 000007FEFD180000 --- Process 9208 loaded C:\Windows\System32\profapi.dll at 000007FEFD040000 --- Process 9208 loaded C:\Windows\System32\ws2_32.dll at 000007FEFDD20000 --- Process 9208 loaded C:\Windows\System32

si.dll at 000007FEFE010000 --- Process 9208 loaded C:\Windows\System32\dbghelp.dll at 000007FEF836

Later edit:

I see that rustc gets immediately suspended (visible in System Monitor -> Analyze Wait Chain). There are no more details on why it is suspended. I guess the antivirus (Symantec) has something to do with it even if I cannot find any info in the logs.

I don’t have these issues if I manually download and install Rust. I guess it has something to do with how rustup is downloading the binaries.

Could it be that Symantec does not like binaries that suddenly pop up on the file system without being connected to an installation process?

cc @retep998