How to fix Signal 11 (SIGSEGV) problem when I use DDP?

Ok, I’ll try it. Though I guess the problem may come from python 3.9, I see some others downgrade to python 3.8 to fix this problem. see How to fix a SIGSEGV in pytorch when using distributed training (e.g. DDP)? - #7 by Brando_Miranda and How to fix SIGSEGV in distributed training (i.e. DDP) 2 - #4 by dsethz