celia:/home/free/freeciv-cvs>gdb server/civserver core GNU gdb 4.17.0.11 with Linux support Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... Core was generated by `./server/civserver -r /home/jing/tmp/civ/hard.civ'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libc.so.6...done. Reading symbols from /lib/ld-linux.so.2...done. Reading symbols from /lib/libnss_files.so.2...done. #0 0x808db4e in is_ground_unit (punit=0x8290600) at unit.c:468 468 return (unit_types[punit->type].move_type == LAND_MOVING); (gdb) where #0 0x808db4e in is_ground_unit (punit=0x8290600) at unit.c:468 #1 0x8059772 in goto_is_sane (pplayer=0x821f1f4, punit=0x8290600, x=43, y=38, omni=1) at gotohand.c:806 #2 0x809b81d in ai_military_gothere (pplayer=0x821f1f4, punit=0x8290600, dest_x=43, dest_y=38) at aiunit.c:762 #3 0x809d64a in ai_military_attack (pplayer=0x821f1f4, punit=0x8290600) at aiunit.c:1372 #4 0x809dd47 in ai_manage_military (pplayer=0x821f1f4, punit=0x8290600) at aiunit.c:1614 #5 0x809e000 in ai_manage_unit (pplayer=0x821f1f4, punit=0x8290600, iter=0xbffff9a0) at aiunit.c:1727 #6 0x809e063 in ai_manage_units (pplayer=0x821f1f4) at aiunit.c:1752 #7 0x8097a73 in ai_do_first_activities (pplayer=0x821f1f4) at aihand.c:113 #8 0x8052596 in ai_start_turn () at civserver.c:746 #9 0x8051d56 in main (argc=3, argv=0xbffffa74) at civserver.c:458 #10 0x40031cb3 in __libc_start_main (main=0x8050f80
, argc=3, argv=0xbffffa74, init=0x8048d30 <_init>, fini=0x809ef1c <_fini>, rtld_fini=0x4000a350 <_dl_fini>, stack_end=0xbffffa6c) at ../sysdeps/generic/libc-start.c:78 (gdb) insp punit $1 = (struct unit *) 0xc0bddc08 (gdb) insp *punit Cannot access memory at address 0xc0bddc08. (gdb) up #1 0x8059772 in goto_is_sane (pplayer=0x821f1f4, punit=0x8290600, x=43, y=38, omni=1) at gotohand.c:806 806 if (is_ground_unit(punit) && (gdb) insp punit $2 = (struct unit *) 0x8290600 (gdb) insp *punit $3 = {type = 136884280, id = 1074800136, owner = 4, x = 46, y = 35, veteran = 1, homecity = 132, moves_left = 3, hp = 20, unhappiness = 0, upkeep = 1, upkeep_food = 0, upkeep_gold = 0, foul = 0, fuel = 0, bribe_cost = -1, ai = {control = 0, ai_role = 4, ferryboat = 916, passenger = 0, bodyguard = 1222, charge = 0}, activity = ACTIVITY_IDLE, goto_dest_x = 43, goto_dest_y = 38, activity_count = 0, activity_target = 0, focus_status = FOCUS_AVAIL, ord_map = 0, ord_city = 0, moved = 0, paradropped = 0, connecting = 0} (gdb) insp *pplayer $4 = {player_no = 4, name = "Erik\000ame", '\000' , username = "Erik\000ame", '\000' , is_male = 1, government = 4, nation = 25, turn_done = 0, nturns_idle = 176, is_alive = 1, got_tech = 0, revolution = -131, capital = 1, embassy = 0, city_style = 0, units = {list = {nelements = 75, null_link = {next = 0x821f268, prev = 0x821f268, dataptr = 0x0}, head_link = 0x827b060, tail_link = 0x8243098}}, cities = {list = {nelements = 34, null_link = { next = 0x821f280, prev = 0x821f280, dataptr = 0x0}, head_link = 0x8276a78, tail_link = 0x8273070}}, score = {happy = 77, content = 80, unhappy = 63, taxmen = 0, scientists = 0, elvis = 12, wonders = 3, techs = 36, techout = 0, landarea = 290000, settledarea = 273000, population = 9600000, cities = 34, units = 74, pollution = 0, literacy = 180000, bnp = 529, mfg = 96, spaceship = 0}, economic = {gold = 449, tax = 70, science = 0, luxury = 30}, research = { researched = 244, researchpoints = 36, researching = 66, inventions = "\001\000\001\000\001\000\000\001\001\001\001\002\000\001\000\000\000\000\000\001\001\002\002\000\000\001\000\000\000\002\000\000\000\000\000\001\001\000\001\001\000\000\000\001\000\002\001\001\000\001\001\001\000\000\001\002\001\001\000\000\001\001\000\001\001\000\002\000\000\000\000\000\002\001\000\000\001\000\000\000\000\001\001\000\002\001\001\001\001", '\000' }, spaceship = {structurals = 0, components = 0, modules = 0, structure = '\000' , fuel = 0, propulsion = 0, habitation = 0, life_support = 0, solar_panels = 0, state = SSHIP_NONE, launch_year = 9999, population = 0, mass = 0, support_rate = 0, ---Type to continue, or q to quit--- energy_rate = 0, success_rate = 0, travel_time = 0}, future_tech = 0, ai = {control = 1, tech_goal = 66, prev_gold = 148, maxbuycost = 0, est_upkeep = 138, tech_want = {0, 0, 0, 3293, 0, 0, 539, 0, 0, 0, 0, 0, 225, 0, 187, 0, 0, 201, 2340, 0, 0, 0, 284, 2169, 0, 0, 0, 0, 268, 611, 0, 0, 0, 138, 802, 0, 0, 150, 0, 0, 1524, 115, 1053, 0, 2008, 799, 0, 0, 0, 0, 0, 0, 1309, 1646, 0, 1138, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5531, 0, 0, 0, 671, 801, 0, 0, 2822, 0, 0, 2082, 0, 3477, 1239, 0, 0, 380, 637, 0 }, tech_turns = {0, 22, 0, 7, 0, 2, 12, 0, 0, 0, 0, 1, 2, 0, 25, 8, 3, 23, 2, 0, 0, 1, 1, 2, 7, 0, 0, 5, 2, 1, 10, 0, 21, 5, 10, 0, 0, 2, 0, 0, 22, 19, 3, 0, 12, 1, 0, 0, 13, 0, 0, 0, 16, 19, 0, 1, 0, 0, 16, 18, 0, 0, 30, 0, 0, 13, 1, 15, 6, 4, 25, 24, 1, 0, 29, 32, 0, 5, 20, 6, 4, 0, 0, 3, 1, 0 }, handicap = 0, skill_level = 7, fuzzy = 0, expand = 100, warmth = 0, is_barbarian = 0}, is_connected = 0, conn = 0x0, addr = "---.---.---.---", '\000' , worklists = {{ is_valid = 0, name = "a worklist", '\000' , ids = { 284, 0 }} }}