Author Topic: corrupted double-linked list: 0x0000000013c390b0  (Read 459 times)

0 Members and 1 Guest are viewing this topic.

Offline Vladki

corrupted double-linked list: 0x0000000013c390b0
« 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

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15458
  • Total likes: 378
  • Helpful: 171
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: corrupted double-linked list: 0x0000000013c390b0
« Reply #1 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?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Offline Vladki

Re: corrupted double-linked list: 0x0000000013c390b0
« Reply #2 on: July 01, 2017, 11:01:53 PM »

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15458
  • Total likes: 378
  • Helpful: 171
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: corrupted double-linked list: 0x0000000013c390b0
« Reply #3 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?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Offline Vladki

Re: corrupted double-linked list: 0x0000000013c390b0
« Reply #4 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???

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15458
  • Total likes: 378
  • Helpful: 171
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: corrupted double-linked list: 0x0000000013c390b0
« Reply #5 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.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Offline Vladki

Re: corrupted double-linked list: 0x0000000013c390b0
« Reply #6 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.

Offline Vladki

Re: corrupted double-linked list: 0x0000000013c390b0
« Reply #7 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...

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15458
  • Total likes: 378
  • Helpful: 171
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: corrupted double-linked list: 0x0000000013c390b0
« Reply #8 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.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

Offline Vladki

Re: corrupted double-linked list: 0x0000000013c390b0
« Reply #9 on: July 02, 2017, 06:02:10 PM »
Seems fixed

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15458
  • Total likes: 378
  • Helpful: 171
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: corrupted double-linked list: 0x0000000013c390b0
« Reply #10 on: July 02, 2017, 07:56:01 PM »
Excellent, thank you for checking.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.