#48443: action_get_activity() uninitialized value used Open Date: 2023-07-25 22:31 Last Update: 2023-07-25 22:31 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/48443 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48443 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-07-25 22:31 Updated by: cazfi * New Ticket "action_get_activity() uninitialized value used" created --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: (None) Component: General Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: Valgrind (recent S3_1): ==1403679== Conditional jump or move depends on uninitialised value(s) ==1403679== at 0x2ABC35: action_get_activity (actions.c:2138) ==1403679== by 0x2B7502: action_new (actions.c:1622) ==1403679== by 0x2B77AD: unit_action_new (actions.c:1681) ==1403679== by 0x2B77AD: hard_code_actions (actions.c:917) ==1403679== by 0x2B77AD: actions_init (actions.c:1472) ==1403679== by 0x2CAF9C: game_ruleset_init (game.c:504) ==1403679== by 0x2CB08E: game_init (game.c:434) ==1403679== by 0x1574BE: server_game_init (srv_main.c:3387) ==1403679== by 0x15756F: srv_prepare (srv_main.c:3001) ==1403679== by 0x157C1C: srv_main (srv_main.c:3447) ==1403679== by 0x14D247: main (civserver.c:486) The problem is the assert in the beginning of action_get_activity(). action_new() has not yet set the actor kind when it calls action_get_activity() -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/48443 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48443