Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash: (hang) dedicated server hang with 100% CPU utilization, possibly pathfinder? #6250

Closed
DorpsGek opened this issue Mar 9, 2015 · 3 comments
Labels
bug Something isn't working flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) needs triage This issue needs further investigation before it becomes actionable

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Mar 9, 2015

luaduck opened the ticket and wrote:

We run a pretty popular open access server running completely vanilla 1.4.4, attracting an average of 10+ players at most times. Today, for the first time in my knowledge, the process became completely unresponsive and pegged our CPU at 100%, requiring a SIGKILL. Uptime at the time the hang started was 1 month and 9 days.

From what one of our moderators tells me, we've had previous problems with players exploiting vehicles to increase load, including stuff like funding road reconstruction when there's 500+ vehicles serving the town and sending pathfinder into an existential crisis (but never completely hanging it).

I've attached the last autosave available. A stacktrace is available here (http://paste.duck.me.uk/elaqujapip.vbs), which lends fuel to the thought that it's a pathfinder hang. Any thoughts / workarounds would be appreciated!

Attachments

Reported version: 1.4.4
Operating system: Linux


This issue was imported from FlySpray: https://bugs.openttd.org/task/6250
@DorpsGek
Copy link
Member Author

DorpsGek commented Mar 9, 2015

frosch wrote:

Backtrace from external link:
# 0 0x00000000006c7bf8 in CFollowTrackT<(TransportType)0, Train, true, false>::Follow(unsigned int, Trackdir) ()
# 1 0x00000000006cad73 in CYapfCostRailT<CYapfRail_TypesT<CYapfRail1, CFollowTrackT<(TransportType)0, Train, true, false>, CNodeList_HashTableT<CYapfRailNodeT, 8, 10>, CYapfDestinationTileOrStationRailT, CYapfFollowRailT> >::PfCalcCost(CYapfRailNodeT&, CFollowTrackT<(TransportType)0, Train, true, false> const*) ()
# 2 0x00000000006cb2ba in CYapfBaseT<CYapfRail_TypesT<CYapfRail1, CFollowTrackT<(TransportType)0, Train, true, false>, CNodeList_HashTableT<CYapfRailNodeT, 8, 10>, CYapfDestinationTileOrStationRailT, CYapfFollowRailT> >::FindPath(Train const*) ()
# 3 0x00000000006cc350 in CYapfFollowRailT<CYapfRail_TypesT<CYapfRail1, CFollowTrackT<(TransportType)0, Train, true, false>, CNodeList_HashTableT<CYapfRailNodeT, 8, 10>, CYapfDestinationTileOrStationRailT, CYapfFollowRailT> >::stCheckReverseTrain(Train const*, unsigned int, Trackdir, unsigned int, Trackdir, int) ()
# 4 0x00000000007a952b in ?? ()
# 5 0x00000000007a9d8a in Train::Tick() ()
# 6 0x00000000007ba715 in CallVehicleTicks() ()
# 7 0x00000000006b30da in StateGameLoop() ()
# 8 0x00000000006632f5 in NetworkGameLoop() ()
# 9 0x00000000006b39f8 in GameLoop() ()
# 10 0x00000000007c4429 in VideoDriver_Dedicated::MainLoop() ()
# 11 0x00000000006b22f4 in openttd_main(int, char**) ()
# 12 0x00007ff722d98af5 in __libc_start_main () from /lib64/libc.so.6
# 13 0x000000000053f54d in _start ()


This comment was imported from FlySpray: https://bugs.openttd.org/task/6250#comment13814

@DorpsGek
Copy link
Member Author

DorpsGek commented Mar 9, 2015

frosch wrote:

Hint for next time:
If you send a signal 6 (SIGABRT) instead of 9 (SIGKILL), you get a crash.sav.


This comment was imported from FlySpray: https://bugs.openttd.org/task/6250#comment13815

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
@TrueBrain TrueBrain added needs triage This issue needs further investigation before it becomes actionable bug Something isn't working and removed bug from FlySpray labels Apr 12, 2018
@frosch123 frosch123 removed the Core label Apr 14, 2018
@andythenorth
Copy link
Contributor

Thanks for this. There's been no activity on this for some time, and as it stands, it doesn't look likely that it will go any further. I'm closing it as we try to keep the issue count low for OpenTTD, it helps us focus on things that are important and fun. Feel free to discuss in irc or request re-opening if you disagree. Thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) needs triage This issue needs further investigation before it becomes actionable
Projects
None yet
Development

No branches or pull requests

4 participants