URL: <http://gna.org/bugs/?14607>
Summary: Server crash when leaving Project: Freeciv Submitted by: pepeto Submitted on: dimanche 25.10.2009 à 18:51 Category: general Severity: 3 - Normal Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: Discussion Lock: Any Operating System: None Planned Release: None _______________________________________________________ Details: Program received signal SIGPIPE, Broken pipe. [Switching to Thread 0x7fbff16cf6f0 (LWP 20344)] 0x00007fbff0ecce20 in __write_nocancel () from /lib/libpthread.so.0 (gdb) q The program is running. Exit anyway? (y or n) n Not confirmed. (gdb) bt #0 0x00007fbff0ecce20 in __write_nocancel () from /lib/libpthread.so.0 #1 0x000000000050af79 in fc_writesocket (sock=7, buf=0x1d8dd10, size=9) at netintf.c:159 #2 0x00000000004a2a73 in write_socket_data (pc=0x837c60, buf=0xb21770, limit=0) at connection.c:242 #3 0x00000000004a2c53 in flush_connection_send_buffer_all (pc=0x837c60) at connection.c:279 #4 0x00000000004b001b in send_packet_data (pc=0x837c60, data=0x7fff6acaf090 "", len=9) at packets.c:147 #5 0x00000000004f626c in send_packet_tile_info_100 (pc=0x837c60, force_send=false, packet=0x7fff6acb00f0) at packets_gen.c:3321 #6 0x00000000004577b1 in send_tile_info (dest=0xafcc90, ptile=0x294b380, send_unknown=false, force=<value optimized out>) at maphand.c:439 #7 0x000000000043c49e in city_map_update_worker (pcity=0x24bf630, ptile=0x294b380, city_x=<value optimized out>, city_y=<value optimized out>) at citytools.c:2286 #8 0x0000000000442c1e in apply_cmresult_to_city (pcity=0x24bf630, cmr=0x7fff6acb0210) at cityturn.c:240 #9 0x000000000044306a in auto_arrange_workers (pcity=0x24bf630) at cityturn.c:349 #10 0x000000000043f003 in city_map_update_tile_direct (ptile=0x294e4a0, queued=false) at citytools.c:2313 #11 0x0000000000417981 in unit_move_consequences (punit=<value optimized out>, ---Type <return> to continue, or q <return> to quit--- src_tile=0x2951680, dst_tile=0x294e4a0, passenger=<value optimized out>) at unittools.c:2703 #12 0x000000000041c1e7 in move_unit (punit=0x2348640, pdesttile=0x294e4a0, move_cost=3) at unittools.c:2806 #13 0x000000000048bfef in unit_move_handling (punit=0x2348640, pdesttile=0x294e4a0, igzoc=false, move_diplomat_city=true) at unithand.c:1404 #14 0x000000000042a593 in ai_unit_move (punit=0x2348640, ptile=0x294e4a0) at aitools.c:1074 #15 0x000000000042a92b in ai_unit_execute_path (punit=0x2348640, path=0x23e4290) at aitools.c:223 #16 0x000000000042b5eb in ai_follow_path (punit=0x2348640, path=0x23e4290, ptile=<value optimized out>) at aitools.c:436 #17 0x000000000042531d in ai_amphibious_goto_constrained (ferry=0x2348640, passenger=0x2344a20, ptile=0x2948140, parameter=<value optimized out>) at aiferry.c:550 #18 0x0000000000425543 in aiferry_goto_amphibious (ferry=0x2348640, passenger=0x2344a20, ptile=0x2948140) at aiferry.c:619 #19 0x0000000000425f07 in aiferry_gobyboat (pplayer=0x8e1e70, punit=0x2344a20, dest_tile=0x2948140) at aiferry.c:744 #20 0x000000000042be8b in ai_gothere (pplayer=0x8e1e70, punit=0x2344a20, dest_tile=0x2948140) at aitools.c:335 #21 0x00000000004305f5 in ai_military_attack (pplayer=0x8e1e70, ---Type <return> to continue, or q <return> to quit--- punit=0x2344a20) at aiunit.c:1769 #22 0x0000000000430e8f in ai_manage_military (pplayer=0x8e1e70, punit=0x2344a20) at aiunit.c:2092 #23 0x00000000004320d0 in ai_manage_unit (pplayer=0x8e1e70, punit=0x2344a20) at aiunit.c:2275 #24 0x00000000004247d9 in ai_manage_ferryboat (pplayer=0x8e1e70, punit=0x2348640) at aiferry.c:1018 #25 0x0000000000431f47 in ai_manage_unit (pplayer=0x8e1e70, punit=0x2348640) at aiunit.c:2256 #26 0x00000000004330f7 in ai_manage_units (pplayer=0x8e1e70) at aiunit.c:2381 #27 0x00000000004234e9 in ai_do_first_activities (pplayer=0x8e1e70) at aihand.c:436 #28 0x000000000040b095 in srv_main () at srv_main.c:649 #29 0x0000000000404286 in main (argc=3, argv=0x7fff6acb11b8) at civserver.c:296 (gdb) bt full #0 0x00007fbff0ecce20 in __write_nocancel () from /lib/libpthread.so.0 No symbol table info available. #1 0x000000000050af79 in fc_writesocket (sock=7, buf=0x1d8dd10, size=9) at netintf.c:159 No locals. #2 0x00000000004a2a73 in write_socket_data (pc=0x837c60, buf=0xb21770, limit=0) at connection.c:242 writefs = {fds_bits = {128, 0 <repeats 15 times>}} exceptfs = {fds_bits = {0 <repeats 16 times>}} tv = {tv_sec = 0, tv_usec = 0} start = 30989584 nput = <value optimized out> nblock = 9 #3 0x00000000004a2c53 in flush_connection_send_buffer_all (pc=0x837c60) at connection.c:279 No locals. #4 0x00000000004b001b in send_packet_data (pc=0x837c60, data=0x7fff6acaf090 "", len=9) at packets.c:147 packet_type = 14 result = 0 __PRETTY_FUNCTION__ = "send_packet_data" stat_size_alone = 51284 stat_size_uncompressed = 345410 ---Type <return> to continue, or q <return> to quit--- stat_size_compressed = 105150 stat_size_no_compression = 78 compression_level_initialized = true compression_level = -1 #5 0x00000000004f626c in send_packet_tile_info_100 (pc=0x837c60, force_send=false, packet=0x7fff6acb00f0) at packets_gen.c:3321 size = 9 fields = {vec = "\b"} old = (struct packet_tile_info *) 0x1c83ae0 different = <value optimized out> buffer = "\000\t\016\b\000#<\005\023\000\000\000\000\000\000\000\037\000\000\000\000\000\000\000`|\203\000\000\000\000\000\220��j�\177\000\000\t\000\000\000\000\000\000\000���j�\177\000\000`|\203\000\000\000\000\...@\005�\000\000\000\000\000s,J\000\000\000\000\000K�\000\000\000\000\000\000U\002K\000\000\000\000\000\000��j�\177\000\000\000\000\000\000\016\000\000\000�H\227\002D\000\000\000ܸP\000\000\000\000\000`\002�j�\177\000\000\000��", '\0' <repeats 13 times>, "ܸP\000\000\000\000\000\000l�\001\000\000\000\000\001\000\000\000\000\000\000\000\000��\000\000\000\000\000\000l�\001\000\000\000\000=\"\000\000\000\000\000\000\000�L"... dout = {dest = 0x7fff6acaf090, dest_size = 4096, used = 9, current = 2, too_short = false} #6 0x00000000004577b1 in send_tile_info (dest=0xafcc90, ptile=0x294b380, send_unknown=false, force=<value optimized out>) at maphand.c:439 ---Type <return> to continue, or q <return> to quit--- plrtile = (struct player_tile *) 0x294b380 psite = (struct vision_site *) 0xafcc90 pplayer = (struct player *) 0x8e1240 myiter = (const struct genlist_link *) 0x0 pconn = (struct connection *) 0x837c60 info = {x = 35, y = 60, continent = -1, known = TILE_KNOWN_SEEN, owner = 255, worked = 1299, terrain = 1, resource = 20, special = { false <repeats 11 times>}, bases = {vec = "\000\000\000"}, spec_sprite = "\000\000\000\000\000\000\0...@\000\000\000\000\000\000\000\000�\036\224\002\000\000\000\0000q2\002\000\000", nation_start = -1} pnation = <value optimized out> owner = <value optimized out> #7 0x000000000043c49e in city_map_update_worker (pcity=0x24bf630, ptile=0x294b380, city_x=<value optimized out>, city_y=<value optimized out>) at citytools.c:2286 No locals. #8 0x0000000000442c1e in apply_cmresult_to_city (pcity=0x24bf630, cmr=0x7fff6acb0210) at cityturn.c:240 pwork = <value optimized out> ptile = <value optimized out> x = 4 y = 3 xy_index_x_y = 20 ---Type <return> to continue, or q <return> to quit--- pcenter = (struct tile *) 0x2948140 __PRETTY_FUNCTION__ = "apply_cmresult_to_city" #9 0x000000000044306a in auto_arrange_workers (pcity=0x24bf630) at cityturn.c:349 cmp = {minimal_surplus = {1, 1, 0, -1000000000, 0, 0}, require_happy = false, allow_disorder = false, allow_specialists = true, factor = {10, 5, 0, 2, 0, 2}, happy_factor = 0} cmr = {found_a_valid = true, disorder = false, happy = false, surplus = {7, 3, 16, 1, 0, 8}, worker_positions_used = {{false, false, true, true, false}, {true, false, true, true, false}, {false, false, true, true, true}, {true, true, false, true, false}, {false, false, false, true, false}}, specialists = {0, 0, 0, 0, 4870267, 0, 8118848, 0, 0, 0, 12, 32767, 1791689376, 32767, 2, 0, 12, 0, 38532656, 0}} __PRETTY_FUNCTION__ = "auto_arrange_workers" #10 0x000000000043f003 in city_map_update_tile_direct (ptile=0x294e4a0, queued=false) at citytools.c:2313 pwork = (struct city *) 0x24bf630 #11 0x0000000000417981 in unit_move_consequences (punit=<value optimized out>, src_tile=0x2951680, dst_tile=0x294e4a0, passenger=<value optimized out>) at unittools.c:2703 fromcity = (struct city *) 0x0 tocity = (struct city *) 0xffffffffffffffe0 homecity_start_pos = (struct city *) 0x2325130 ---Type <return> to continue, or q <return> to quit--- homecity_end_pos = (struct city *) 0x2325130 homecity_id_start_pos = 680 homecity_id_end_pos = <value optimized out> pplayer_start_pos = (struct player *) 0x8e1e70 pplayer_end_pos = (struct player *) 0x8e1e70 type_start_pos = (struct unit_type *) 0x8b2980 type_end_pos = (struct unit_type *) 0x8b2980 refresh_homecity_start_pos = false refresh_homecity_end_pos = false saved_id = <value optimized out> #12 0x000000000041c1e7 in move_unit (punit=0x2348640, pdesttile=0x294e4a0, move_cost=3) at unittools.c:2806 old_vision = (struct vision *) 0x23444d0 new_vision = (struct vision *) 0x2348770 myiter = (const struct genlist_link *) 0x0 pcargo = (struct unit *) 0x2344a20 pplayer = (struct player *) 0x8e1e70 psrctile = (struct tile *) 0x2951680 pcity = <value optimized out> ptransporter = <value optimized out> old_vision = (struct vision *) 0x2344b50 new_vision = <value optimized out> saved_id = 4759 ---Type <return> to continue, or q <return> to quit--- unit_lives = <value optimized out> __PRETTY_FUNCTION__ = "move_unit" #13 0x000000000048bfef in unit_move_handling (punit=0x2348640, pdesttile=0x294e4a0, igzoc=false, move_diplomat_city=true) at unithand.c:1404 move_cost = -32 pplayer = <value optimized out> pcity = <value optimized out> __PRETTY_FUNCTION__ = "unit_move_handling" #14 0x000000000042a593 in ai_unit_move (punit=0x2348640, ptile=0x294e4a0) at aitools.c:1074 bodyguard = <value optimized out> sanity = 4759 pplayer = (struct player *) 0x8e1e70 is_ai = true __PRETTY_FUNCTION__ = "ai_unit_move" #15 0x000000000042a92b in ai_unit_execute_path (punit=0x2348640, path=0x23e4290) at aitools.c:223 ptile = (struct tile *) 0x294e4a0 id = 4759 is_ai = true i = 2 #16 0x000000000042b5eb in ai_follow_path (punit=0x2348640, path=0x23e4290, ---Type <return> to continue, or q <return> to quit--- ptile=<value optimized out>) at aitools.c:436 old_tile = (struct tile *) 0x2948140 activity = ACTIVITY_IDLE alive = true #17 0x000000000042531d in ai_amphibious_goto_constrained (ferry=0x2348640, passenger=0x2344a20, ptile=0x2948140, parameter=<value optimized out>) at aiferry.c:550 alive = <value optimized out> pplayer = <value optimized out> pfm = (struct pf_map *) 0x1d8bed0 path = <value optimized out> __PRETTY_FUNCTION__ = "ai_amphibious_goto_constrained" #18 0x0000000000425543 in aiferry_goto_amphibious (ferry=0x2348640, passenger=0x2344a20, ptile=0x2948140) at aiferry.c:619 parameter = {land = {start_tile = 0x2954860, moves_left_initially = 6, fuel_left_initially = 1, move_rate = 6, fuel = 1, owner = 0x8e1e70, uclass = 0x8d91d0, unit_flags = {vec = "\000\001\000\000\000\000\000"}, omniscience = true, turn_mode = TM_WORST_TIME, get_MC = 0x51ed30 <normal_move_unit>, unknown_MC = 6, get_TB = 0x51dee0 <no_intermediate_fights>, get_EC = 0x42b330 <prefer_short_stacks>, can_invade_tile = 0x4faa40 <player_can_invade_tile>, get_zoc = 0x505b00 <is_my_zoc>, is_pos_dangerous = 0, ---Type <return> to continue, or q <return> to quit--- get_moves_left_req = 0, get_costs = 0, data = 0x7fff6acb05c0}, sea = { start_tile = 0x2954860, moves_left_initially = 18, fuel_left_initially = 1, move_rate = 18, fuel = 1, owner = 0x8e1e70, uclass = 0x8d9220, unit_flags = {vec = "\000\000\000\000\b\000\000"}, omniscience = true, turn_mode = TM_WORST_TIME, get_MC = 0x51ec50 <sea_overlap_move>, unknown_MC = 6, get_TB = 0x51df40 <no_fights>, get_EC = 0x42b330 <prefer_short_stacks>, can_invade_tile = 0x4faa40 <player_can_invade_tile>, get_zoc = 0, is_pos_dangerous = 0, get_moves_left_req = 0, get_costs = 0, data = 0x7fff6acb05a0}, land_scale = 18, sea_scale = 6, combined = { start_tile = 0x2954860, moves_left_initially = 108, fuel_left_initially = 1, move_rate = 108, fuel = 1, owner = 0x8e1e70, uclass = 0x8d9220, unit_flags = {vec = "\000\000\000\000\000\000\000"}, omniscience = true, turn_mode = TM_WORST_TIME, get_MC = 0x51d940 <amphibious_move>, unknown_MC = 6, get_TB = 0x51d890 <amphibious_behaviour>, get_EC = 0x51d7d0 <amphibious_extra_cost>, can_invade_tile = 0x4faa40 <player_can_invade_tile>, get_zoc = 0, is_pos_dangerous = 0x51d730 <amphibious_is_pos_dangerous>, get_moves_left_req = 0, get_costs = 0, data = 0x7fff6acb05e0}} land_risk_cost = {base_value = 70, fearfulness = 910.22222222222217, enemy_zoc_cost = 1310720} sea_risk_cost = {base_value = 50, fearfulness = 303.40740740740739, ---Type <return> to continue, or q <return> to quit--- enemy_zoc_cost = 1310720} #19 0x0000000000425f07 in aiferry_gobyboat (pplayer=0x8e1e70, punit=0x2344a20, dest_tile=0x2948140) at aiferry.c:744 bodyguard = (struct unit *) 0x0 ferryboat = <value optimized out> __PRETTY_FUNCTION__ = "aiferry_gobyboat" #20 0x000000000042be8b in ai_gothere (pplayer=0x8e1e70, punit=0x2344a20, dest_tile=0x2948140) at aitools.c:335 __PRETTY_FUNCTION__ = "ai_gothere" #21 0x00000000004305f5 in ai_military_attack (pplayer=0x8e1e70, punit=0x2344a20) at aiunit.c:1769 dest_tile = (struct tile *) 0x2948140 id = 5204 ct = 10 pcity = <value optimized out> start_tile = (struct tile *) 0x2954860 __PRETTY_FUNCTION__ = "ai_military_attack" #22 0x0000000000430e8f in ai_manage_military (pplayer=0x8e1e70, punit=0x2344a20) at aiunit.c:2092 id = 5204 __PRETTY_FUNCTION__ = "ai_manage_military" #23 0x00000000004320d0 in ai_manage_unit (pplayer=0x8e1e70, punit=0x2344a20) at aiunit.c:2275 ---Type <return> to continue, or q <return> to quit--- bodyguard = <value optimized out> is_ferry = false __PRETTY_FUNCTION__ = "ai_manage_unit" #24 0x00000000004247d9 in ai_manage_ferryboat (pplayer=0x8e1e70, punit=0x2348640) at aiferry.c:1018 boss = (struct unit *) 0x2344a20 ptile = <value optimized out> pcity = <value optimized out> sanity = 4759 __PRETTY_FUNCTION__ = "ai_manage_ferryboat" #25 0x0000000000431f47 in ai_manage_unit (pplayer=0x8e1e70, punit=0x2348640) at aiunit.c:2256 bodyguard = (struct unit *) 0x0 is_ferry = true __PRETTY_FUNCTION__ = "ai_manage_unit" #26 0x00000000004330f7 in ai_manage_units (pplayer=0x8e1e70) at aiunit.c:2381 punit = (struct unit *) 0xffffffffffffffe0 punit_index = 90 punit_size = 192 #27 0x00000000004234e9 in ai_do_first_activities (pplayer=0x8e1e70) at aihand.c:436 No locals. #28 0x000000000040b095 in srv_main () at srv_main.c:649 ---Type <return> to continue, or q <return> to quit--- No locals. #29 0x0000000000404286 in main (argc=3, argv=0x7fff6acb11b8) at civserver.c:296 inx = 3 showhelp = false showvers = false option = <value optimized out> _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?14607> _______________________________________________ Message posté via/par Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev