Blizzard / Blizzard/s2client-api
replay segfault
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 280
- PR merge metrics
- No merged PRs in 30d
Description
While playing with the s2client API on Linux I am running into a
segfault when replaying pack2 games (see trace below). The first game
replay works fine (although taking ~50 seconds on my laptop computer), but the second one fails. I noticed that Libs/ contains
libstdc++.so.6, which when using the system library instead (as ldd
indicates) may cause issues. But running SC2_x64 with its own c++ library still segfaults on the second game.
My O/S is Fedora 26 using gcc 7.2.1.
Trace:
foo6[StarCraftII]:~/git-repos/external/s2client-api/build/bin/replay -e $s2
Launched SC2 (/home/mic/tmp/StarCraftII/Versions/Base56787/SC2_x64), PID: 5748
Version: B56787 (SC2.3.17)
Build: Aug 25 2017 15:00:49
Command Line: '"/home/mic/tmp/StarCraftII/Versions/Base56787/SC2_x64" -listen 127.0.0.1 -port 8167 -displayMode 0 -windowwidth 1024 -windowheight 768 -windowx 100 -windowy 200'
Starting up...
Startup Phase 1 complete
Startup Phase 2 complete
Creating stub renderer...
Listening on: 127.0.0.1:8167 (8167)
Startup Phase 3 complete. Ready for commands.
Waiting for connection.
Connected to 127.0.0.1:8167
Replay is from a different version. Relaunching client into the correct version...
Launched SC2 (/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64), PID: 5781
Version: B55958 (SC2.3.16)
Build: Jul 31 2017 13:19:41
Command Line: '"/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64" -listen 127.0.0.1 -port 8168 -displayMode 0 -dataVersion 5BD7C31B44525DAB46E64C4602A81DC2 -windowwidth 1024
+-windowheight 768 -windowx 100 -windowy 200'
Starting up...
Startup Phase 1 complete
Startup Phase 2 complete
Creating stub renderer...
Listening on: 127.0.0.1:8168 (8168)
Startup Phase 3 complete. Ready for commands.
Waiting for connection.
Connected to 127.0.0.1:8168
Configuring interface options
Configure: raw interface enabled
Configure: feature layer interface disabled
Configure: score interface enabled
Configure: render interface disabled
Launching next game.
Next launch phase started: 2
Next launch phase started: 3
Next launch phase started: 4
Next launch phase started: 5
Next launch phase started: 6
Next launch phase started: 7
Next launch phase started: 8
Starting replay '878dbc702783e829405930f179b558c5ea938cd982cbb7bbe01b618aee999d16.SC2Replay'
Game has started.
Replaying: '/home/mic/tmpdev/StarCraftII/replays/878dbc702783e829405930f179b558c5ea938cd982cbb7bbe01b618aee999d16.SC2Replay'
Units created:
CommandCenter: 1
SupplyDepot: 7
Refinery: 2
Barracks: 2
EngineeringBay: 1
MissileTurret: 2
Bunker: 1
Factory: 1
Starport: 1
SiegeTank: 1
BarracksTechLab: 1
BarracksReactor: 1
FactoryTechLab: 2
FactoryReactor: 1
SCV: 428
Marine: 67
Reaper: 1
Medivac: 3
MULE: 8
Cyclone: 4
KD8Charge: 1
Finished
Configuring interface options
Configure: raw interface enabled
Configure: feature layer interface disabled
Configure: score interface enabled
Configure: render interface disabled
Launching next game.
Next launch phase started: 2
Next launch phase started: 3
Next launch phase started: 4
Next launch phase started: 5
Next launch phase started: 6
Next launch phase started: 7
Next launch phase started: 8
Error signal: '11'
Backtrace:
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x652f73]
/lib64/libc.so.6(+0x36a80)[0x7f225847ea80]
/lib64/libc.so.6(+0xafc08)[0x7f22584f7c08]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x167dd7d]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x1283074]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x127c967]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x127c816]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x127c82c]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x127c82c]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x127c82c]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x127c82c]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x127c82c]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x127c82c]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x127c5cb]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x127d35e]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x1294ce2]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x12d254d]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x12d063a]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x1295ffc]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x19300c9]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x19338e6]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x5ed4d5]
/lib64/libc.so.6(__libc_start_main+0xea)[0x7f225846888a]
/home/mic/tmp/StarCraftII/Versions/Base55958/SC2_x64[0x5ed2d9]
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.