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

AI crashes OpenTTD via infinite recursion #5346

Closed
DorpsGek opened this issue Oct 28, 2012 · 5 comments
Closed

AI crashes OpenTTD via infinite recursion #5346

DorpsGek opened this issue Oct 28, 2012 · 5 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Kogut opened the ticket and wrote:

start AI, Openttd will crash
remove UTIL\debug.nut, line 6 to stop crashes

Attachments

Reported version: Version?
Operating system: All


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

Kogut wrote:

tested in r24636


This comment was imported from FlySpray: https://bugs.openttd.org/task/5346#comment11631

@DorpsGek
Copy link
Member Author

DorpsGek commented Jan 8, 2013

Zuu wrote:

To me this looks like a duplicate of #5320? Both appears to be caused by a infinite recursion. Something which naturally will cause the AI to eventually crash. The other option is that OpenTTD run out of memory and cause also OpenTTD to crash.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5346#comment11862

@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 4, 2013

Rubidium wrote:

The attached patch solve the issue, but it doesn't feel right. For what it's worth, it stops crashing when that number is somewhere between 33000 and 35000 (so no nice and obvious number). Also I can't find any (signed) short (or unsigned ones) that would cause this (changed them to int and it still failed). I'm basically at a loss what's the reason for such a mysterious magic number (somewhere between 33000 and 35000).

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/5346#comment11966

@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 5, 2013

Rubidium wrote:

The problem isn't the depth of the call stack, but suspending tail recursion seems to fail horribly.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5346#comment11974

@DorpsGek
Copy link
Member Author

DorpsGek commented Feb 5, 2013

Rubidium closed the ticket.

Reason for closing: Fixed

In r24970


This comment was imported from FlySpray: https://bugs.openttd.org/task/5346

@DorpsGek DorpsGek closed this as completed Feb 5, 2013
@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) bug labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant