The USAF experimented with shooting 1911s in vacuum. With proper lubrication everything worked fine.

Some of the earliest Soviet manned missions carried an AK, though later they went to a custom-designed rifle. The Soviets usually hard-landed in Siberia instead of dropping in the ocean like we did, and some of the country was pretty wild. Apparently someone felt that having cosmonauts eaten by wolves was a possibility...