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

Segmentation Fault #3749

Closed
DorpsGek opened this issue Apr 10, 2010 · 2 comments
Closed

Segmentation Fault #3749

DorpsGek opened this issue Apr 10, 2010 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Ammler opened the ticket and wrote:

We had a segmentation fault this night:

crash files attached.

Server patches in use:
- keepBlitter
- logging DoCommands

further infos from SmatZ ;-)

Attachments

Reported version: 1.0.0
Operating system: All


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

SmatZ wrote:

The crash is at company_cmd.cpp:642 in void CompaniesYearlyLoop():

if (_settings_client.gui.show_finances && _local_company != COMPANY_SPECTATOR) {
ShowCompanyFinances(_local_company);
c = Company::Get(_local_company);

if (c->num_valid_stat_ent > 5 && c->old_economy[0].performance_history < c->old_economy[4].performance_history) {

as seen in crash.log, _local_company == 0 and there is no company 0 in the savegame. Why is _local_company == 0 anyway for dedicated server?

Workaround in this case is to "set show_finances 0", but with _local_company != COMPANY_SPECTATOR, I wouldn't wonder if it crashed at different place later.


This comment was imported from FlySpray: https://bugs.openttd.org/task/3749#comment7829

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Fixed

In r19664.


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

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) 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