News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

[9.8] crash

Started by sdog, June 14, 2011, 09:19:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sdog

crash while connected to DeManglers server. Server seemed to crash too, and is still down. (21:18 UTC)

Program received signal SIGFPE, Arithmetic exception.
0x000000000047faa6 in senke_t::step(long) ()
(gdb) bt
#0  0x000000000047faa6 in senke_t::step(long) ()
#1  0x000000000047fe54 in senke_t::step_all(long) ()
#2  0x0000000000606d17 in karte_t::step() ()
#3  0x00000000005b6f1e in modal_dialogue(gui_frame_t*, long, karte_t*, bool (*)()) ()
#4  0x00000000005b953f in simu_main(int, char**) ()
#5  0x000000000063e60c in main ()


crashed the server again the same way. Might be electricity, my first coal shippment arrived at that time at a powerplant. (already connected to two consumers, a city and a coliery) This might be coincidental however. I did the same at the earlier crash before.

sdog

managed to trigger the same crash again, just by logging in.

jamespetts

I think that I have probably fixed this on my devel branch, but I cannot test it as the save for the server at the relevant moment is not available.
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.

sdog

could you tell me to what the bug was related to, perhaps i can reconstruct the situation causing it.

jamespetts

I think that it was a divide by zero error occurring in the calculation of the electricity supply.
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.

sdog

Ok, i tried to replicated the electric grid i had in the online game with 9.8, but couldn't reproduce the crash. That's been directly after the server crashed, as i suspected elictricity.



there we go:

Program received signal SIGFPE, Arithmetic exception.
0x000000000047fac6 in senke_t::step(long) ()
(gdb) bt
#0  0x000000000047fac6 in senke_t::step(long) ()
#1  0x000000000047fe74 in senke_t::step_all(long) ()
#2  0x0000000000606417 in karte_t::step() ()
#3  0x000000000060785c in karte_t::interactive(unsigned int) ()
#4  0x00000000005b8c2e in simu_main(int, char**) ()
#5  0x000000000063dd2c in main ()


i tested this with the save from the server and connecting the same to consumers (senke) to the grid as before.
http://dl.dropbox.com/u/1876190/server_crash.sve



it crashes at the end of a month, and it does so regardless if the powerstation is supplied with coal or not.

deMangler

Quote from: jamespetts on June 19, 2011, 11:57:20 PM
I think that I have probably fixed this on my devel branch, but I cannot test it as the save for the server at the relevant moment is not available.
Here is a link to an automatic copy of the latest server save.

http://zeropoint.cc/simutrans/latest_savebackup-dm-exp-srv.sve

There are automatic rolling backups made every time the server crashes too so I may be able to provide saves for a given problematic time.
I will do something about making them available on another server, but I don't want to serve out too much from the game server - I want to keep it as 'pure' as possible.
Sorry - can't help out with testing for a bit, IRL busyness, but will pull and build and run a new server when next master version is ready.
:)
dM

jamespetts

Sdog,

I can't reproduce this with the code from the devel branch, so I suspect that this has been solved.

DeMangler,

thank you for uploading that - much appreciated.
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.

sdog

i can reproduce it with your recent 9.x branch. testing on linux 64.
i'll pm you my binary.

jamespetts

(See the other thread about the branches).
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.