[0.14.19] [debian] SIGSEGV after dns lookup problems

This subforum contains all the issues which we already resolved.
iostr
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Nov 08, 2016 6:15 pm
Contact:

[0.14.19] [debian] SIGSEGV after dns lookup problems

Post by iostr »

Hi,

The attached log was produced by
1) Joined one multiplayer game. Ran around a bit. Left the server.
2) Tried to join another multiplayer game.
3) Factorio crashed with SIGSEGV

The log shows problems resolving host "multiplayer.factorio.com". It should be noted that the networking stack being used in this case is very non-standard, and often makes DNS lookups fail. The networking stack in this case usually resolves the DNS name on the second retry.

Suggestion: it could be investigated if Factorio could display "could not connect to server" and allow the user to continue selecting another server (or retry) instead of crashing with SIGSEGV when this situation occurs.

BTW: thanks for such an excellent game! Awesome work all Wube developers!
Attachments
factorio-current.log
(8.7 KiB) Downloaded 158 times

User avatar
Smarty
Global Moderator
Global Moderator
Posts: 816
Joined: Sat Oct 04, 2014 5:00 pm
Contact:

Re: [0.14.19] [debian] SIGSEGV after dns lookup problems

Post by Smarty »

Code: Select all

   0.000 2016-11-08 18:06:29; Factorio 0.14.19 (build 25291, linux64, alpha)
   0.717 Operating system: Linux (Debian n/a)
   0.718 Program arguments: "./factorio/bin/x64/factorio" 
   0.718 Read data path: /home/oskar/factorio/data
   0.718 Write data path: /home/oskar/factorio
   0.718 Binaries path: /home/oskar/factorio/bin
   0.741 System info: [CPU: Intel(R) Core(TM)2 Quad CPU    Q6600  @ 2.40GHz, 4 cores, RAM: 7987MB]
   0.745 Display options: [FullScreen: 0] [VSync: 0] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255]
   0.799 Available display adapters: 1
   0.799  [0]: resolution 1920x1200px at [0,0]
   0.799 Create display on adapter 0. Size 1280x720 at position [310, 222].
   0.943 Initialised OpenGL:[0] GeForce GTX 970/PCIe/SSE2; driver: 4.5.0 NVIDIA 367.57
   0.944     Video memory size (dedicated/total available/current available): 4096/4096/3866 MB
   1.015 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 25%] [DXT: false]
   1.153 Loading mod core 0.0.0 (data.lua)
   1.163 Loading mod base 0.14.19 (data.lua)
   1.405 Checksum for core: 1291735968
   1.405 Checksum for mod base: 786624017
   2.327 Info PlayerData.cpp:55: Local player-data.json available, timestamp 1478463638
   2.327 Info PlayerData.cpp:62: Cloud player-data.json unavailable
   2.585 Initial atlas bitmap size is 16384
   2.591 Created atlas bitmap 16384x5589
   2.592 Created atlas bitmap 4096x968
   2.593 Created atlas bitmap 4096x3644
  25.427 Sprites loaded
  25.427 Convert atlas 4096x968 to: trilinear-filtering 
  25.557 Convert atlas 4096x3644 to: mipmap 
  25.969 Loading sounds...
  29.944 Custom inputs active: 0
  30.011 Factorio initialised
 126.035 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:0)
 126.160 code:6, 6; Couldn't resolve host 'multiplayer.factorio.com'
 126.160 Info HttpSharedState.cpp:109: Downloading https://multiplayer.factorio.com/get-games?username=iostr&token=<private>
 126.160 Info HttpSharedState.cpp:111: Status code: 0
 155.287 Info UDPSocket.cpp:235: Socket closed
 155.294 Joining game 52.206.5.29:34197
 155.294 Info UDPSocket.cpp:33: Opening socket
 155.294 Info ClientMultiplayerManager.cpp:538: MapTick(-1) changing state from(Ready) to(Connecting)
 155.557 Connection refused
 155.557 Info ClientMultiplayerManager.cpp:177: Quitting multiplayer connection.
 155.557 Info ClientMultiplayerManager.cpp:538: MapTick(-1) changing state from(Connecting) to(Disconnected)
 155.558 Info HttpSharedState.cpp:44: Downloading https://auth.factorio.com/generate-user-server-key
 156.107 Info HttpSharedState.cpp:111: Status code: 200
 156.107 Info AuthServerConnector.cpp:132: Received key(cmOqWOyxRArkuQC9wqZAPQ==) for username(iostr) from auth server.
 156.143 Info UDPSocket.cpp:235: Socket closed
 156.143 Joining game 52.206.5.29:34197
 156.143 Info UDPSocket.cpp:33: Opening socket
 156.143 Info ClientMultiplayerManager.cpp:538: MapTick(-1) changing state from(Ready) to(Connecting)
 156.408 Info ClientSynchronizer.cpp:34: Initialized Synchronizer local peer(1) latency(32).
 156.408 Info ClientMultiplayerManager.cpp:538: MapTick(-1) changing state from(Connecting) to(ConnectedWaitingForMap)
 156.408 Info ClientRouter.cpp:219: ConnectionAccepted
 156.825 Info ClientMultiplayerManager.cpp:668: Received mapReadyForDownload
 156.825 Downloading file /home/oskar/factorio/temp/mp-download.zip (4928948 B, 9800 blocks)
 156.826 Info ClientMultiplayerManager.cpp:538: MapTick(-1) changing state from(ConnectedWaitingForMap) to(ConnectedDownloadingMap)
 158.887 Finished download (2 s, 4.9 MB, 2.3 MB/s)
 158.917 Info ClientMultiplayerManager.cpp:649: mapTick(-1) map download finished creating scenario
 158.917 Info ClientMultiplayerManager.cpp:538: MapTick(-1) changing state from(ConnectedDownloadingMap) to(ConnectedLoadingMap)
 158.923 Loading map /home/oskar/factorio/temp/mp-download.zip
 158.925 Error FileUtil.cpp:284: Can't remove /home/oskar/factorio/temp/currently-playing: No such file or directory
 158.945 Info Scenario.cpp:152: Map version 0.14.19-0
 159.569 Checksum for script /home/oskar/factorio/temp/currently-playing/control.lua: 1057114497
 159.579 Info ClientMultiplayerManager.cpp:538: MapTick(601916) changing state from(ConnectedLoadingMap) to(TryingToCatchUp)
 159.866 Info ClientMultiplayerManager.cpp:538: MapTick(602099) changing state from(TryingToCatchUp) to(WaitingForCommandToStartSendingTickClosures)
 160.046 Info ClientMultiplayerManager.cpp:538: MapTick(602099) changing state from(WaitingForCommandToStartSendingTickClosures) to(InGame)
 160.196 Info GameActionHandler.cpp:2556: MapTick(602108) processed PlayerJoinGame peerID(3) playerIndex(2) mode(create)
 169.872 Info ClientSynchronizer.cpp:255: Changing local latency from 32 to 24 (nextTickToSend: 602719, ticksClientWillJumpOver: 0 {})
 184.886 Info ClientSynchronizer.cpp:255: Changing local latency from 24 to 27 (nextTickToSend: 603613, ticksClientWillJumpOver: 0 {})
 194.907 Info ClientSynchronizer.cpp:255: Changing local latency from 27 to 24 (nextTickToSend: 604217, ticksClientWillJumpOver: 0 {})
 204.901 Info ClientSynchronizer.cpp:255: Changing local latency from 24 to 22 (nextTickToSend: 604814, ticksClientWillJumpOver: 0 {})
 219.882 Info ClientSynchronizer.cpp:255: Changing local latency from 22 to 18 (nextTickToSend: 605719, ticksClientWillJumpOver: 0 {})
 229.890 Info ClientSynchronizer.cpp:255: Changing local latency from 18 to 15 (nextTickToSend: 606315, ticksClientWillJumpOver: 0 {})
 255.810 Info ClientMultiplayerManager.cpp:129: Disconnecting multiplayer connection.
 255.810 Info ClientMultiplayerManager.cpp:538: MapTick(607853) changing state from(InGame) to(DisconnectScheduled)
 255.814 Info ClientMultiplayerManager.cpp:538: MapTick(607853) changing state from(DisconnectScheduled) to(WaitingForDisconnectConfirmation)
 255.988 Info ClientMultiplayerManager.cpp:538: MapTick(607853) changing state from(WaitingForDisconnectConfirmation) to(Disconnected)
 255.988 Info ClientMultiplayerManager.cpp:772: Disconnect notification for peer (3)
 256.260 Info UDPSocket.cpp:235: Socket closed
 259.681 Info UDPSocket.cpp:27: Opening socket at (0.0.0.0:0)
 259.686 code:6, 6; Couldn't resolve host 'multiplayer.factorio.com'
 259.686 Info HttpSharedState.cpp:109: Downloading https://multiplayer.factorio.com/get-games?username=iostr&token=<private>
 259.686 Info HttpSharedState.cpp:111: Status code: 0
 285.287 Info HttpSharedState.cpp:109: Downloading https://multiplayer.factorio.com/get-game-details/458582
 285.287 Info HttpSharedState.cpp:111: Status code: 404
 285.338 Error CrashHandler.cpp:230: Received SIGSEGV
Factorio crashed. Generating symbolized stacktrace, please wait ...
 286.832 Warning Logger.cpp:369: Symbols.size() == 22, usedSize == 18
#0  0x000000000085682d in Logger::logStacktrace(StackTraceInfo*) at /tmp/factorio-9shgzV/src/Util/Logger.cpp:391
#1  0x000000000062fa4b in CrashHandler::writeStackTrace() at /tmp/factorio-9shgzV/src/Util/CrashHandler.cpp:105
#2  0x000000000062fce4 in CrashHandler::SignalHandler(int) at /tmp/factorio-9shgzV/src/Util/CrashHandler.cpp:235
#3  0x00007f4cb52ab040 in ?? at ??:0
#4  0x00007f4cb53a646e in ?? at ??:0
#5  0x00000000011ad7b0 in std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) at ??:?
#6  0x00000000011adec4 in std::string::assign(std::string const&) at ??:?
#7  0x0000000000d7dd55 in agui::Widget::setText(std::string const&) at ??:?
#8  0x0000000000d5fd27 in agui::Label::setText(std::string const&) at ??:?
#9  0x0000000000bd4d83 in BrowseGamesGui::addGamesLabel(std::string const&, bool) [clone .constprop.77316] at /tmp/factorio-9shgzV/src/Gui/BrowseGamesGui.cpp:472
#10 0x0000000000bd50b1 in BrowseGamesGui::viewGames(unsigned int) at /tmp/factorio-9shgzV/src/Gui/BrowseGamesGui.cpp:335
#11 0x0000000000c654a5 in BrowseGamesGui::refreshGameDetails() at /tmp/factorio-9shgzV/src/Gui/BrowseGamesGui.cpp:230
#12 0x0000000000c7e5e8 in InBrowseGamesDialog::process(AppManager*) at /tmp/factorio-9shgzV/src/AppManagerStates.cpp:816
#13 0x0000000000c841c8 in size at /usr/include/c++/5/bits/stl_vector.h:655
#14 0x0000000000c8e76a in size at /home/build/build_environment/boost_1_61_0/output_linux64/include/boost/ptr_container/detail/reversible_ptr_container.hpp:511
#15 0x0000000000d072cf in process at /tmp/factorio-9shgzV/src/AppManager.cpp:194
#16 0x00007f4cb52982b1 in prePrepare at /tmp/factorio-9shgzV/src/MainLoop.cpp:277
#17 0x000000000040ada9 in mainLoopStep at /tmp/factorio-9shgzV/src/MainLoop.cpp:352
 287.937 Warning Logger.cpp:369: Symbols.size() == 21, usedSize == 17
 287.937 Error Util.cpp:77: Unexpected error occurred. If you're running the latest version of the game you can help us solve the problem by posting the contents of the log file on the Factorio forums.
Please also include the save file(s), any mods you may be using, and any steps you know of to reproduce the crash.

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.14.19] [debian] SIGSEGV after dns lookup problems

Post by Oxyd »

Fixed in 0.14.21. Or 0.15 if there is no .21.

Post Reply

Return to “Resolved Problems and Bugs”