Follow-up Comment #3, bug #19800 (project freeciv):

Revision: 21191 ; This is valgrind backtrace :


==32115== Memcheck, a memory error detector
==32115== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==32115== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==32115== Command: server/freeciv-server
==32115== 
This is the server for Freeciv version 2.3.2+
You can learn a lot about Freeciv at http://www.freeciv.org/
2: Loading rulesets.
==32115== Conditional jump or move depends on uninitialised value(s)
==32115==    at 0x4057DD8: inflateReset2 (in
/lib/i386-linux-gnu/libz.so.1.2.3.4)
==32115==    by 0x4057EC7: inflateInit2_ (in
/lib/i386-linux-gnu/libz.so.1.2.3.4)
==32115==    by 0xFFFFFFFE: ???
==32115== 
==32115== Conditional jump or move depends on uninitialised value(s)
==32115==    at 0x4057DD8: inflateReset2 (in
/lib/i386-linux-gnu/libz.so.1.2.3.4)
==32115==    by 0x4057EC7: inflateInit2_ (in
/lib/i386-linux-gnu/libz.so.1.2.3.4)
==32115==    by 0x4F462FDF: ???
==32115== 
==32115== Conditional jump or move depends on uninitialised value(s)
==32115==    at 0x4057DD8: inflateReset2 (in
/lib/i386-linux-gnu/libz.so.1.2.3.4)
==32115==    by 0x4057EC7: inflateInit2_ (in
/lib/i386-linux-gnu/libz.so.1.2.3.4)
==32115==    by 0x4FDB0A0A: ???
==32115== 
2: ai_data_init(): 0x68d63f0 nb 0 "noname"
2: AI*1 has been added as Easy level AI-controlled player.
2: ai_data_init(): 0x68ea540 nb 1 "noname"
2: AI*2 has been added as Easy level AI-controlled player.
2: ai_data_init(): 0x68fe7d0 nb 2 "noname"
2: AI*3 has been added as Easy level AI-controlled player.
2: ai_data_init(): 0x6912ba0 nb 3 "noname"
2: AI*4 has been added as Easy level AI-controlled player.
2: ai_data_init(): 0x69270b0 nb 4 "noname"
2: AI*5 has been added as Easy level AI-controlled player.
2: Now accepting new client connections.

For introductory help, type 'help'.
> 
2: Connection request from pepeto from localhost
2: c1 has client version 2.3.2+
2: pepeto has connected from localhost.
> ==32115== Conditional jump or move depends on uninitialised value(s)
==32115==    at 0x4057DD8: inflateReset2 (in
/lib/i386-linux-gnu/libz.so.1.2.3.4)
==32115==    by 0x4057EC7: inflateInit2_ (in
/lib/i386-linux-gnu/libz.so.1.2.3.4)
==32115==    by 0x4FDB0EB1: ???
==32115== 

pepeto: '/read multiplayer'
2: Loading script file 'data/multiplayer.serv'.
pepeto: '# Server commands to make multiplayer Freeciv rules
'
pepeto: '#
'
pepeto: '
'
pepeto: 'rulesetdir multiplayer
'
2: Ruleset directory set to "multiplayer"
2: Loading rulesets.
==32115== Invalid read of size 4
==32115==    at 0x8125F88: government_number (government.c:93)
==32115==    by 0x80B779F: package_player_info (plrhand.c:872)
==32115==    by 0x80B7EE7: send_player_info_c_real (plrhand.c:717)
==32115==    by 0x80B8010: send_player_info_c (plrhand.c:690)
==32115==    by 0x80C7A7B: load_rulesets (ruleset.c:3968)
==32115==    by 0x80571FE: set_rulesetdir (stdinhand.c:3694)
==32115==    by 0x805CF1F: handle_stdin_input_real.part.15 (stdinhand.c:4124)
==32115==    by 0x805F04F: read_init_script_real (stdinhand.c:1196)
==32115==    by 0x805C578: handle_stdin_input_real.part.15 (stdinhand.c:1113)
==32115==    by 0x8101147: handle_chat_msg_req (handchat.c:343)
==32115==    by 0x80B1E9E: server_handle_packet (hand_gen.c:40)
==32115==    by 0x804FEC1: server_packet_input (srv_main.c:1498)
==32115==  Address 0x43391a0 is 0 bytes inside a block of size 1,344 free'd
==32115==    at 0x402B06C: free (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==32115==    by 0x8126B7C: governments_free (government.c:536)
==32115==    by 0x8125731: game_ruleset_free (game.c:493)
==32115==    by 0x80C7A54: load_rulesets (ruleset.c:3983)
==32115==    by 0x80571FE: set_rulesetdir (stdinhand.c:3694)
==32115==    by 0x805CF1F: handle_stdin_input_real.part.15 (stdinhand.c:4124)
==32115==    by 0x805F04F: read_init_script_real (stdinhand.c:1196)
==32115==    by 0x805C578: handle_stdin_input_real.part.15 (stdinhand.c:1113)
==32115==    by 0x8101147: handle_chat_msg_req (handchat.c:343)
==32115==    by 0x80B1E9E: server_handle_packet (hand_gen.c:40)
==32115==    by 0x804FEC1: server_packet_input (srv_main.c:1498)
==32115==    by 0x80DF00D: server_sniff_all_input (sernet.c:448)
==32115== 
2: Ruleset: 'generator' has been set to "Island-based" (ISLAND).
2: Ruleset: 'topology' has been set to "Wrap East-West" and "Wrap North-South"
(WRAPX|WRAPY).
2: Ruleset: 'startpos' has been set to "One player per continent" (SINGLE).
2: Ruleset: 'alltemperate' has been set to enabled.
2: Ruleset: 'separatepoles' has been set to disabled.
2: Ruleset: 'huts' has been set to 0.
2: Ruleset: 'aifill' has been set to 0.
2: Ruleset: 'diplomacy' has been set to "Disabled for everyone" (DISABLED).
2: Ruleset: 'contactturns' has been set to 0.
2: Ruleset: 'revolen' has been set to 2.
2: Ruleset: 'barbarians' has been set to "No barbarians" (DISABLED).
2: Ruleset: 'techpenalty' has been set to 0.
2: Ruleset: 'startunits' has been set to "cccwwwxxxx".
2: Ruleset: 'specials' has been set to 350.
2: Ruleset: 'borders' has been set to "Disabled" (DISABLED).
2: Removing player AI*5.
2: ai_data_close(): 0x69270b0 nb 4 "AI*5"
2: Removing player AI*4.
2: ai_data_close(): 0x6912ba0 nb 3 "AI*4"
2: Removing player AI*3.
2: ai_data_close(): 0x68fe7d0 nb 2 "AI*3"
2: Removing player AI*2.
2: ai_data_close(): 0x68ea540 nb 1 "AI*2"
pepeto: '
'
pepeto: '# changed game settings are defined in game.ruleset
'
> 
Starting game.
> 
2: Tvrtko Kotromanić rules the Bosnians.
2: Creating a map of size 64 x 64 = 4096 tiles (4000 requested).
==32115== Invalid write of size 4
==32115==    at 0x402E8D3: memset (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==32115==    by 0x8088F23: ai_data_default (string3.h:85)
==32115==    by 0x8052EED: srv_main (srv_main.c:2450)
==32115==    by 0x804B6DB: main (civserver.c:377)
==32115==  Address 0x68e1cdc is 0 bytes after a block of size 28 alloc'd
==32115==    at 0x402BE68: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==32115==    by 0x81BB644: fc_real_malloc (mem.c:83)
==32115==    by 0x81BB803: fc_real_calloc (mem.c:128)
==32115==    by 0x80890F3: ai_data_init (advdata.c:846)
==32115==    by 0x80BA86B: server_create_player (plrhand.c:1136)
==32115==    by 0x8050B5C: aifill (srv_main.c:1807)
==32115==    by 0x80E4EB4: settings_ruleset (settings.c:3063)
==32115==    by 0x80CA5CD: load_rulesets (ruleset.c:3461)
==32115==    by 0x80517D7: srv_main (srv_main.c:2267)
==32115==    by 0x40AA4D2: (below main) (libc-start.c:226)
==32115== 
> 
pepeto: '/quit'
2: Goodbye.
2: Removing player Tvrtko Kotromanić.
2: ai_data_close(): 0x68d63f0 nb 0 "Tvrtko Kotromanić"
==32115== 
==32115== HEAP SUMMARY:
==32115==     in use at exit: 4,683 bytes in 108 blocks
==32115==   total heap usage: 608,540 allocs, 608,432 frees, 71,709,523 bytes
allocated
==32115== 
==32115== LEAK SUMMARY:
==32115==    definitely lost: 24 bytes in 3 blocks
==32115==    indirectly lost: 293 bytes in 6 blocks
==32115==      possibly lost: 0 bytes in 0 blocks
==32115==    still reachable: 4,366 bytes in 99 blocks
==32115==         suppressed: 0 bytes in 0 blocks
==32115== Rerun with --leak-check=full to see details of leaked memory
==32115== 
==32115== For counts of detected and suppressed errors, rerun with: -v
==32115== Use --track-origins=yes to see where uninitialised values come from
==32115== ERROR SUMMARY: 801 errors from 6 contexts (suppressed: 0 from 0)


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?19800>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to