Blizzard / s2client-proto

StarCraft II Client - protocol definitions used to communicate with StarCraft II.
MIT License
3.76k stars 431 forks source link

Linux binary crashes on a direct "quit {}" request #19

Closed timshen91 closed 6 years ago

timshen91 commented 6 years ago

Reproduction: 1) Launch the Linux binary: ~/StarCraftII/Versions/Base55958/SC2_x64 -listen 127.0.0.1 -port 9999

2) Send "quit {}" to the server. I wrote a script to do this: https://gist.github.com/timshen91/b0aa69e311ea3546ebc772c091b571fd

Run with echo "quit {}" | sc2_repl.py

The server crashes, full log:

Version: B55958 (SC2.3.16) Build: Jul 31 2017 13:19:41 Command Line: '"/.../StarCraftII/Versions/Base55958/SC2_x64" -listen 127.0.0.1 -port 9999' Starting up... Startup Phase 1 complete Startup Phase 2 complete Creating stub renderer... Listening on: 127.0.0.1:9999 (9999) Startup Phase 3 complete. Ready for commands. RequestQuit command received. Closing Application... Error signal: '11' Backtrace: /home/tim/StarCraftII/Versions/Base55958/SC2_x64[0x652f73] /usr/lib/libc.so.6(+0x33940)[0x7f1af24af940] /home/tim/StarCraftII/Versions/Base55958/SC2_x64[0xe8d2bb] /home/tim/StarCraftII/Versions/Base55958/SC2_x64[0xf9d06f] /home/tim/StarCraftII/Versions/Base55958/SC2_x64[0xf9d1d2] /home/tim/StarCraftII/Versions/Base55958/SC2_x64[0x192fbf2] /home/tim/StarCraftII/Versions/Base55958/SC2_x64[0x19338e6] /home/tim/StarCraftII/Versions/Base55958/SC2_x64[0x5ed4d5] /usr/lib/libc.so.6(__libc_start_main+0xea)[0x7f1af249c4ca] /home/tim/StarCraftII/Versions/Base55958/SC2_x64[0x5ed2d9] zsh: segmentation fault (core dumped) ~/StarCraftII/Versions/Base55958/SC2_x64 -listen 127.0.0.1 -port 9999

I'm not sure if it's working as intended.

Thanks!

KevinCalderone commented 6 years ago

This will be fixed in our next release.