[Freeciv-Dev] [bug #23707] Segmentation fault in style_of_nation in nation.c:654
Update of bug #23707 (project freeciv): Status:None = Invalid Open/Closed:Open = Closed ___ Follow-up Comment #2: This segmentation fault doesn't happen any more. It was most likely caused by the new Freeciv server loading savegames from an older server revision. Closing. ___ Reply to this item at: http://gna.org/bugs/?23707 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #23707] Segmentation fault in style_of_nation in nation.c:654
Follow-up Comment #1, bug #23707 (project freeciv): Do you have the logs for a game that crashed? I'm interested in assertion failures. Do you have a way of seeing what settings the game was played with? Did the player pick a nation for himself or was it randomly assigned? ___ Reply to this item at: http://gna.org/bugs/?23707 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] [bug #23707] Segmentation fault in style_of_nation in nation.c:654
Do you have the logs for a game that crashed? I'm interested in assertion failures. This could be a log from this server, but I'm not really sure (it is the log file from servers running on that port). http://play.freeciv.org/freeciv-web-log-6043.log Do you have a way of seeing what settings the game was played with? Did the player pick a nation for himself or was it randomly assigned? No, I don't think that information is logged in production. Andreas 2015-07-22 19:55 GMT+02:00 Sveinung Kvilhaugsvik no-reply.invalid-addr...@gna.org: Follow-up Comment #1, bug #23707 (project freeciv): Do you have the logs for a game that crashed? I'm interested in assertion failures. Do you have a way of seeing what settings the game was played with? Did the player pick a nation for himself or was it randomly assigned? ___ Reply to this item at: http://gna.org/bugs/?23707 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
[Freeciv-Dev] [bug #23707] Segmentation fault in style_of_nation in nation.c:654
URL: http://gna.org/bugs/?23707 Summary: Segmentation fault in style_of_nation in nation.c:654 Project: Freeciv Submitted by: andreasr Submitted on: Wed 22 Jul 2015 05:13:32 PM UTC Category: general Severity: 5 - Blocker Priority: 7 - High Status: None Assigned to: None Originator Email: Open/Closed: Open Release: trunk Discussion Lock: Any Operating System: GNU/Linux Planned Release: ___ Details: I frequently get segmentation faults in style_of_nation() in nation.c, on the current production server for Freeciv-web. I pushed the current github master version to production today, which is based on the Freeciv server svn revision 29233 (trunk). The error occurs in about 6% of all games on startup. Here is a backtrace generated from a core dump: Core was generated by `freeciv-web --debug=1 --port 6043 -q 20 --Announce none -e -m -M http://localho'. Program terminated with signal SIGSEGV, Segmentation fault. #0 style_of_nation (pnation=pnation@entry=0x0) at nation.c:654 654 nation.c: No such file or directory. Traceback (most recent call last): File /usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py, line 63, in module from libstdcxx.v6.printers import register_libstdcxx_printers ImportError: No module named 'libstdcxx' (gdb) bt full #0 style_of_nation (pnation=pnation@entry=0x0) at nation.c:654 No locals. #1 0x0040bdda in player_nation_defaults (pplayer=pplayer@entry=0x27e4180, pnation=0x0, set_name=optimized out) at srv_main.c:2220 pleader = optimized out #2 0x0040cafa in player_set_nation_full (pnation=optimized out, pplayer=0x27e4180) at srv_main.c:2205 No locals. #3 generate_players () at srv_main.c:2411 pnation = optimized out pplayer = 0x27e4180 _pslot = 0x3fff750 needs_startpos = false nations_to_assign = optimized out #4 srv_ready () at srv_main.c:2792 __FUNCTION__ = srv_ready #5 0x0040d3e0 in srv_main () at srv_main.c:3101 __FUNCTION__ = srv_main #6 0x00405aa9 in main (argc=20, argv=0x78228868) at civserver.c:459 inx = 20 showhelp = optimized out showvers = optimized out option = optimized out __FUNCTION__ = main ___ Reply to this item at: http://gna.org/bugs/?23707 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev
Re: [Freeciv-Dev] [bug #23707] Segmentation fault in style_of_nation in nation.c:654
Here's a relevant log file: http://play.freeciv.org/freeciv-web-log-6033.log I rebuilt the servers with debugging enabled, and now this can be found in the logs: 1: in generate_players() [srv_main.c::2410]: assertion 'pnation != NO_NATION_SELECTED' failed. 1: in generate_players() [srv_main.c::2410]: Please report this message at http://gna.org/projects/freeciv/ 1: in player_nation_defaults() [srv_main.c::2216]: assertion 'NO_NATION_SELECTED != pnation' failed. Andreas 2015-07-22 20:07 GMT+02:00 Andreas Røsdal andreas.ros...@gmail.com: Do you have the logs for a game that crashed? I'm interested in assertion failures. This could be a log from this server, but I'm not really sure (it is the log file from servers running on that port). http://play.freeciv.org/freeciv-web-log-6043.log Do you have a way of seeing what settings the game was played with? Did the player pick a nation for himself or was it randomly assigned? No, I don't think that information is logged in production. Andreas 2015-07-22 19:55 GMT+02:00 Sveinung Kvilhaugsvik no-reply.invalid-addr...@gna.org: Follow-up Comment #1, bug #23707 (project freeciv): Do you have the logs for a game that crashed? I'm interested in assertion failures. Do you have a way of seeing what settings the game was played with? Did the player pick a nation for himself or was it randomly assigned? ___ Reply to this item at: http://gna.org/bugs/?23707 ___ Message sent via/by Gna! http://gna.org/ ___ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev