URL: <http://gna.org/bugs/?16857>
Summary: [trunk] Assertion failures + segfault with civ1 ruleset Project: Freeciv Submitted by: jtn Submitted on: Tuesday 10/12/10 at 00:16 Category: None Severity: 4 - Important Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: trunk r18200 Discussion Lock: Any Operating System: GNU/Linux Planned Release: 2.3.0 _______________________________________________________ Details: Trunk r18200ish. I think this is probably caused by patch #1978, but I haven't really looked into it. Attempting to start a server with the civ1 ruleset ("rulesetdir civ1"), I get the following while loading the ruleset: 1: Nation American: Unknown group "Early Modern". 1: Nation Russian: Unknown group "Early Modern". 1: Nation French: Unknown group "Early Modern". 1: Nation Chinese: Unknown group "Early Modern". 1: Nation English: Unknown group "Early Modern". 1: Nation Mongol: Unknown group "Early Modern". [...] 1: in nation_group_number() [nation.c::535]: assertion '((void *)0) != pgroup' failed. 1: Please report this message at http://gna.org/projects/freeciv/ 1: in nation_group_number() [nation.c::535]: assertion '((void *)0) != pgroup' failed. 1: Please report this message at http://gna.org/projects/freeciv/ 1: in nation_group_number() [nation.c::535]: assertion '((void *)0) != pgroup' failed. 1: Please report this message at http://gna.org/projects/freeciv/ 1: in nation_group_number() [nation.c::535]: assertion '((void *)0) != pgroup' failed. 1: Please report this message at http://gna.org/projects/freeciv/ 1: in nation_group_number() [nation.c::535]: assertion '((void *)0) != pgroup' failed. 1: Please report this message at http://gna.org/projects/freeciv/ 1: in nation_group_number() [nation.c::535]: assertion '((void *)0) != pgroup' failed. 1: Please report this message at http://gna.org/projects/freeciv/ If I press on and start the game, it dies with a segfault, which looks like it could be related: nation.c:659 contains a dereference of a nation group pointer. #0 0x00000000004f2e7c in nations_match (n1=0x0, n2=0xef6468, ignore_conflicts=<value optimised out>) at nation.c:659 #1 0x000000000047ff06 in pick_a_nation (choices=0x0, ignore_conflicts=<value optimised out>, only_available=<value optimised out>, barb_type=<value optimised out>) at plrhand.c:1413 #2 0x00000000004093e6 in generate_players () at srv_main.c:1900 #3 0x000000000040b311 in srv_ready () at srv_main.c:2267 #4 0x000000000040bb36 in srv_main () at srv_main.c:2465 #5 0x00000000004041df in main (argc=<value optimised out>, argv=0x7fff88c40868) at civserver.c:376 _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?16857> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev