Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2005:
[Freeciv-Dev] (PR#14635) civserver segfault in city_can_be_built_here
Home

[Freeciv-Dev] (PR#14635) civserver segfault in city_can_be_built_here

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#14635) civserver segfault in city_can_be_built_here
From: "Christian Knoke" <chrisk@xxxxxxxxx>
Date: Sat, 19 Nov 2005 05:02:44 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=14635 >


SVN HEAD 19 NOV 2005 GTK2

Core was generated by `civserver -p 5555 -q 1 -e --saves ~/.freeciv/saves'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Eingabe-/Ausgabefehler

Reading symbols from /lib/libreadline.so.5...done.
Loaded symbols for /lib/libreadline.so.5
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/tls/libnss_files.so.2...done.
Loaded symbols for /lib/tls/libnss_files.so.2
#0  0x080af9a8 in city_can_be_built_here (ptile=0x88e9bb4, punit=0x0) at 
city.c:756
756       if (ptile->owner && ptile->owner != punit->owner) {
(gdb) bt full
#0  0x080af9a8 in city_can_be_built_here (ptile=0x88e9bb4, punit=0x0) at 
city.c:756
        citymindist = 136870928
#1  0x08064966 in hut_get_city (punit=0x88fa4f8) at unittools.c:2222
        pplayer = (struct player *) 0x8287c10
#2  0x08064b65 in unit_enter_hut (punit=0x88fa4f8) at unittools.c:2291
        pplayer = (struct player *) 0x8287c10
        ok = true
        hut_chance = 11
#3  0x080660ca in move_unit (punit=0x88fa4f8, pdesttile=0x88e9bb4, move_cost=1) 
at unittools.c:2853
        penemy = (struct player *) 0x88e9bb4
        i = 3
        new_information_for_enemy = 16
        pplayer = (struct player *) 0x8287c10
        psrctile = (struct tile *) 0x88e9b70
        pcity = (struct city *) 0x8287c10
        ptransporter = (struct unit *) 0x0
        old_vision = (struct vision *) 0x84c98b0
#4  0x080a3ae9 in handle_unit_move_request (punit=0x88fa4f8, 
pdesttile=0x88e9bb4, igzoc=false, 
    move_diplomat_city=false) at unithand.c:1150
        move_cost = 136870928
        pplayer = (struct player *) 0x8287c10
        pcity = (struct city *) 0x0
#5  0x0811a9f2 in ai_unit_attack (punit=0x88fa4f8, ptile=0x88e9bb4) at 
aitools.c:951
        bodyguard = (struct unit *) 0x0
        sanity = 120
        alive = 180
#6  0x081195ac in ai_unit_execute_path (punit=0x88fa4f8, path=0x8540d90) at 
aitools.c:191
        ptile = (struct tile *) 0x88e9bb4
        id = 120
        is_ai = true
        i = 1
#7  0x08119b39 in ai_follow_path (punit=0x88fa4f8, path=0x8287c10, 
ptile=0x8287c10) at aitools.c:380
        old_tile = (struct tile *) 0x0
        activity = ACTIVITY_IDLE
        alive = 255
#8  0x08119d5e in ai_unit_goto_constrained (punit=0x88fa4f8, ptile=0x88e9bb4, 
parameter=0xbffff470)
    at aitools.c:454
        alive = true
        map = (struct pf_map *) 0x84c9f88
        path = (struct pf_path *) 0x8540d90
---Type <return> to continue, or q <return> to quit---
#9  0x0811a3fb in ai_unit_goto (punit=0x88fa4f8, ptile=0x88e9bb4) at 
aitools.c:785
        parameter = {start_tile = 0x88e9b70, moves_left_initially = 3, 
fuel_left_initially = 1, move_rate = 3, 
  fuel = 1, owner = 0x8287c10, unit_flags = {vec = 
"8\000\000\000\000\000\000"}, omniscience = true, 
  turn_mode = TM_WORST_TIME, get_MC = 0x8124920 <igter_move_unit>, unknown_MC = 
6, 
  get_TB = 0x8124c20 <no_fights>, get_EC = 0x8119fe0 <prefer_short_stacks>, 
get_zoc = 0, is_pos_dangerous = 0, 
  get_costs = 0, data = 0xbffff440}
        risk_cost = {base_value = 24, fearfulness = 1820.4444444444443, 
ocean_cost = 0, 
  unsafe_terrain_cost = 3.6000000000000001, enemy_zoc_cost = 1310720}
#10 0x0811082d in ai_manage_explorer (punit=0x88fa4f8) at aiexplorer.c:345
        desirable = 136870928
        log_desirable = 9
        pos = {tile = 0x88bb1d4, turn = 0, moves_left = 1, fuel_left = 1, 
total_MC = 2, total_EC = 0, 
  dir_to_next_pos = 4294967295, dir_to_here = DIR8_SOUTH}
        pplayer = (struct player *) 0x8287c10
        init_moves = 3
        log_most_desirable = 11.345713185976818
        max_dist = 1
        best_tile = (struct tile *) 0x88e9bb4
        best_MC = 1
        map = (struct pf_map *) 0x1
        parameter = {start_tile = 0x88e9b70, moves_left_initially = 3, 
fuel_left_initially = 1, move_rate = 3, 
  fuel = 1, owner = 0x8287c10, unit_flags = {vec = 
"8\000\000\000\000\000\000"}, omniscience = false, 
  turn_mode = TM_WORST_TIME, get_MC = 0x8124920 <igter_move_unit>, unknown_MC = 
6, 
  get_TB = 0x8124bc0 <no_fights_or_unknown>, get_EC = 0, get_zoc = 0, 
  is_pos_dangerous = 0x8124e30 <is_pos_dangerous>, get_costs = 0, data = 
0xbffff5c0}
        logDF = -0.51082562376599072
        logBPS = 11.71015205448437
#11 0x0811f6fe in ai_manage_unit (pplayer=0x8287c10, punit=0x88fa4f8) at 
aiunit.c:2163
        id = 120
        bodyguard = (struct unit *) 0x78
#12 0x0811faf6 in ai_manage_units (pplayer=0x8287c10) at aiunit.c:2256
        punit = (struct unit *) 0x8287c10
        _ids = 0xbffff5fc
        _i = 1
        _size = 3
#13 0x081139f0 in ai_do_first_activities (pplayer=0x8287c10) at aihand.c:427
No locals.
#14 0x0805057b in ai_start_phase () at srv_main.c:449
        pplayer = (struct player *) 0x8287c10
        i = 2
---Type <return> to continue, or q <return> to quit---
#15 0x08050746 in begin_phase (is_new_phase=true) at srv_main.c:570
        pplayer = (struct player *) 0x8283ae8
        i = 4
#16 0x08052532 in main_loop () at srv_main.c:1557
        eot_timer = (struct timer *) 0x84cbb88
        save_counter = 1
        is_new_turn = true
#17 0x080526df in srv_main () at srv_main.c:1687
No locals.
#18 0x0804ab99 in main (argc=135607150, argv=0xbffff7a4) at civserver.c:242
        inx = 8
        showhelp = false
        showvers = false
        option = 0x5 <Address 0x5 out of bounds>
(gdb) quit


-- 
Christian Knoke            * * *            http://cknoke.de
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#14635) civserver segfault in city_can_be_built_here, Christian Knoke <=