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.
managed to trigger the same crash again, just by logging in.
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.
could you tell me to what the bug was related to, perhaps i can reconstruct the situation causing it.
I think that it was a divide by zero error occurring in the calculation of the electricity supply.
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 (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.
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
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.
i can reproduce it with your recent 9.x branch. testing on linux 64.
i'll pm you my binary.
(See the other thread about the branches).