The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Vladki on July 01, 2017, 10:53:17 PM

Title: corrupted double-linked list: 0x0000000013c390b0
Post by: Vladki on July 01, 2017, 10:53:17 PM
Hello,

I'm trying to move the sandbox servers, but I have problems with british savegames. The swedish pak game works fine. But I get segfaults, both on server and client. Commit 8ad124ca88c729fd406f4bd5d66ce7bb727e9824.

I struggle to get a consistent result. Some games run fine locally and crash only when connected online, some do not start at all.

http://list.extended.simutrans.org/~vladki/debug-saves/client5-network.sve
http://list.extended.simutrans.org/~vladki/debug-saves/server13353-network.sve
Title: Re: corrupted double-linked list: 0x0000000013c390b0
Post by: jamespetts on July 01, 2017, 10:56:11 PM
Thank you for letting me know. I had somebody else report something similar on Github that occurred only when the ~/simutrans directory was deleted. Can you check whether this is the cause?
Title: Re: corrupted double-linked list: 0x0000000013c390b0
Post by: Vladki on July 01, 2017, 11:01:53 PM
I have fresh ~/simutrans on the server, extracted from http://bridgewater-brunel.me.uk/downloads/nightly/packages/Simutrans-Extended-Complete.zip
Title: Re: corrupted double-linked list: 0x0000000013c390b0
Post by: jamespetts on July 01, 2017, 11:11:31 PM
This is odd. May I ask -does this occur on all or only some paksets; does it occur on all or only some saved games? Does it crash (1) only in network mode; (2) only when a server; or (3) even in single player mode?
Title: Re: corrupted double-linked list: 0x0000000013c390b0
Post by: Vladki on July 01, 2017, 11:35:02 PM
Pak sweden seems to be ok in both single player and network.
Pak britain is crashing even in single player. I took the demo game, did a few fixes, saved, did more stuff and crashed. Start again, load, OK. Move over the map, load again the same game and I get crash... Start load, crash. Start load, OK... WTF???
Title: Re: corrupted double-linked list: 0x0000000013c390b0
Post by: jamespetts on July 02, 2017, 12:12:00 AM
Does this crash with a saved game other than the demo game? That game has some corrupted buildings (their type changed from a 1 tile building to a 2 tile building at some point after the game was created, so they now overlap other buildings). I have known this to cause memory corruption in the past.
Title: Re: corrupted double-linked list: 0x0000000013c390b0
Post by: Vladki on July 02, 2017, 12:59:23 AM
Yes it crashes also with my test game "Trnava" the one I used for reporting bugs about signalling, and also with one of the old big maps "bridgewter-brunel copy".

The fixes I spoke about were deleting the department stores, that went from 1x1 to 1x3 tiles.
Title: Re: corrupted double-linked list: 0x0000000013c390b0
Post by: Vladki on July 02, 2017, 11:49:58 AM
Sorry for double post...

I tried to connect to James' bridgewater brunel game, and got the same error as in $subj, just with different number.
I don't know if it killed the server or not. It is running now, but I think there is an automatic restart...
Title: Re: corrupted double-linked list: 0x0000000013c390b0
Post by: jamespetts on July 02, 2017, 12:58:56 PM
I have had some trouble reproducing this. However, I found a memory management error (I am not sure whether it is the same error), which I have corrected on the master branch. Would you be able to re-test this? I should be most grateful.
Title: Re: corrupted double-linked list: 0x0000000013c390b0
Post by: Vladki on July 02, 2017, 06:02:10 PM
Seems fixed
Title: Re: corrupted double-linked list: 0x0000000013c390b0
Post by: jamespetts on July 02, 2017, 07:56:01 PM
Excellent, thank you for checking.