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

Hi,
I could reproduce the server crash now.
Here's the backtrace...

(gdb) run -p 5555
Starting program: /usr/local/bin/civserver -p 5555
This is the server for Freeciv version 2.1.0-beta3 (beta version)
You can learn a lot about Freeciv at http://www.freeciv.org/

THIS IS A BETA VERSION
Freeciv 2.1.0 will be released in
April, at http://www.freeciv.org/

2: Loading rulesets
2: Now accepting new client connections.

For introductory help, type 'help'.
>
2: Connection request from Andre from localhost
2: c1 has client version 2.1.0-beta3
2: Andre has connected from localhost.
>
1: Trying to send ruleset choices to unprivileged client.
>
2: Connection request from Erich from localhost
2: c2 has client version 2.1.0-beta3
2: Erich has connected from localhost.
>
Erich: '/set aifill 3'
2: AI1 has been added as easy level AI-controlled player.
>
Erich: '/set civilwarsize 25'
>
Erich: '/set onsetbarbs 4500'
Erich: '/set barbarians 0'
Erich: '/set citynames 3'
Erich: '/set cityfactor 20'
Erich: '/set unhappysize 6'
Erich: '/set techpenalty 0'
Erich: '/set techlevel 1'
Erich: '/set huts 90'
Erich: '/set specials 300'
Erich: '/set topology 0'
>
Erich: '/team "AI1" "Team 2"'
>
Starting game.
2: Genghis rules the Mongols.
2: Erich Honecker rules the Germans.
2: Tux rules the Antarcticans.
>
Erich: '/set savename debug'
>
Erich: '/set saveturns 1'
>
Program received signal SIGSEGV, Segmentation fault.
0x00002ae5ddd28d70 in strlen () from /lib64/libc.so.6
(gdb) bt full
#0  0x00002ae5ddd28d70 in strlen () from /lib64/libc.so.6
No symbol table info available.
#1  0x00002ae5ddcfa34f in vfprintf () from /lib64/libc.so.6
No symbol table info available.
#2  0x00002ae5ddd1b74a in vsnprintf () from /lib64/libc.so.6
No symbol table info available.
#3  0x00000000004074f5 in my_vsnprintf (
    str=0x101010101009194 <Address 0x101010101009194 out of bounds>,
    n=18374403900871503468, format=0x7fffcd6ba568 "lnk�\177", ap=0x0)
    at support.c:367
        r = <value optimized out>
        __PRETTY_FUNCTION__ = "my_vsnprintf"
#4  0x0000000000431f89 in vnotify_conn (dest=0x8b9ea0, ptile=0x0,
    event=E_TECH_LEARNED, format=0x30 <Address 0x30 out of bounds>,
    vargs=0xfffffffffffffffc) at plrhand.c:669
        genmsg = {
  message = "Learned Pottery.  Scientists do not know what to research
next.", '                                                           \0'
<repeats 13 times>, "\005", '\0' <repeats 23 times>, "\005\000\000
\000�237k�
\177", '\0' <repeats 14 times>, "\005", '\0' <repeats 23 times>, "\005
\000\000\0
00rE", '\0' <repeats 17 times>, "\005\000\000\000�203\000\001", '\0'
<repeats 16
times>, "\005\000\000\000�", '\0' <repeats 17 times>, "\005\000\000
\000�", '\0'
<repeats 17 times>, "\005\000\000\000�", '\0' <repeats 17 times>..., x =
-1, y                                                            = -1,
event = E_TECH_LEARNED, conn_id = -1}
---Type <return> to continue, or q <return> to quit---
        __PRETTY_FUNCTION__ = "vnotify_conn"
#5  0x0000000000432247 in notify_team (pplayer=0x84f588, ptile=0x0,
    event=E_TECH_LEARNED,
    format=0x4f51c8 "Learned %s.  Scientists do not know what to
research next.") at plrhand.c:768
        other_player = (struct player *) 0x852428
        PI_p_itr = 3
        args = {{gp_offset = 48, fp_offset = 48,
    overflow_arg_area = 0x7fffcd6ba630, reg_save_area = 0x7fffcd6ba540}}
#6  0x0000000000414fcc in found_new_tech (plr=0x84f588, tech_found=64,
    was_discovery=false, saving_bulbs=true) at techtools.c:379
        next_tech = <value optimized out>
        bonus_tech_hack = false
        was_first = true
        had_embassies = {0, 0, 0, 32767, -848582160, 32767, 7770208, 0,
0, 0,
  8713608, 0, 5, 0, 4859377, 0, 1, 0, 4860740, 0, 2034368, 1077692614,
0, 0,
  1, 0, 7949908, 0, 8713608, 0, 64, 0}
        pcity = (struct city *) 0x3
        research = (struct player_research *) 0x794e54
        __PRETTY_FUNCTION__ = "found_new_tech"
#7  0x0000000000415923 in give_random_free_tech (pplayer=0x84f588)
    at techtools.c:791
        tech = 64
---Type <return> to continue, or q <return> to quit---
#8  0x000000000041951d in move_unit (punit=0x1007ff0,
pdesttile=0x1182ec8,
    move_cost=3) at unittools.c:2197
        pplayer = (struct player *) 0x84f588
        psrctile = (struct tile *) 0x1181050
        pcity = <value optimized out>
        ptransporter = <value optimized out>
        old_vision = (struct vision *) 0x1235bb0
#9  0x0000000000452fb2 in handle_unit_move_request (punit=0x1007ff0,
    pdesttile=0x1182ec8, igzoc=<value optimized out>,
    move_diplomat_city=<value optimized out>) at unithand.c:1139
        move_cost = 48
        pplayer = (struct player *) 0x84f588
        pcity = <value optimized out>
        __PRETTY_FUNCTION__ = "handle_unit_move_request"
#10 0x00000000004bc96c in ai_unit_move (punit=0x1007ff0,
ptile=0x1182ec8)
    at aitools.c:1018
        bodyguard = <value optimized out>
        sanity = 116
        pplayer = <value optimized out>
        is_ai = false
        __PRETTY_FUNCTION__ = "ai_unit_move"
#11 0x00000000004bcbab in ai_unit_execute_path (punit=0x1007ff0,
path=0xbbf930)
    at aitools.c:194
---Type <return> to continue, or q <return> to quit---
        ptile = (struct tile *) 0x1182ec8
        id = 116
        is_ai = false
        i = 1
#12 0x00000000004bd784 in ai_follow_path (punit=0x1007ff0,
path=0xbbf930,
    ptile=<value optimized out>) at aitools.c:381
        old_tile = (struct tile *) 0x0
        activity = ACTIVITY_EXPLORE
        alive = <value optimized out>
#13 0x00000000004bda6f in ai_unit_goto_constrained (punit=0x1007ff0,
    ptile=0x1182ec8, parameter=0x7fffcd6bac60) at aitools.c:455
        alive = <value optimized out>
        map = (struct pf_map *) 0x1038780
        path = (struct pf_path *) 0xbbf930
#14 0x00000000004bdb77 in ai_unit_goto (punit=0x1007ff0,
ptile=0x1182ec8)
    at aitools.c:786
        parameter = {start_tile = 0x1181050, moves_left_initially = 3,
  fuel_left_initially = 1, move_rate = 6, fuel = 1, owner = 0x84f588,
  unit_flags = {vec = "\000\002\000\000\000\000\000"}, omniscience =
false,
  turn_mode = TM_WORST_TIME, get_MC = 0x4c7650 <normal_move_unit>,
  unknown_MC = 6, get_TB = 0x4c7410 <no_fights_or_unknown>, get_EC = 0,
  get_zoc = 0x4a73e0 <is_my_zoc>,
  is_pos_dangerous = 0x4c6b80 <is_pos_dangerous>, get_costs = 0,
---Type <return> to continue, or q <return> to quit---
  data = 0x407a37}
        risk_cost = {base_value = 3.1620201333839779e-322,
  fearfulness = 2.330347592166869e-310, ocean_cost =
1.5810100666919889e-321,
  unsafe_terrain_cost = 2.4463003346520354e-317,
  enemy_zoc_cost = 3.1620201333839779e-322}
#15 0x00000000004b3cf3 in ai_manage_explorer (punit=0x1007ff0)
    at aiexplorer.c:345
        _dr = <value optimized out>
        desirable = 7680
        log_desirable = <value optimized out>
        pos = {tile = 0x1181140, turn = 1, moves_left = 3, fuel_left =
1,
  total_MC = 6, total_EC = 0, dir_to_next_pos = 4294967295,
  dir_to_here = DIR8_EAST}
        pplayer = (struct player *) 0x84f588
        init_moves = 3
        log_most_desirable = 11.269859779219145
        max_dist = 3
        best_tile = (struct tile *) 0x1182ec8
        best_MC = 3
        map = (struct pf_map *) 0x1038780
        parameter = {start_tile = 0x1181050, moves_left_initially = 3,
  fuel_left_initially = 1, move_rate = 6, fuel = 1, owner = 0x84f588,
  unit_flags = {vec = "\000\002\000\000\000\000\000"}, omniscience =
false,
---Type <return> to continue, or q <return> to quit---
  turn_mode = TM_WORST_TIME, get_MC = 0x4c7650 <normal_move_unit>,
  unknown_MC = 6, get_TB = 0x4c7410 <no_fights_or_unknown>, get_EC = 0,
  get_zoc = 0x4a73e0 <is_my_zoc>,
  is_pos_dangerous = 0x4c6b80 <is_pos_dangerous>, get_costs = 0, data =
0x0}
        logDF = -0.51082562376599072
        logBPS = 11.71015205448437
        __PRETTY_FUNCTION__ = "ai_manage_explorer"
#16 0x00000000004b3fc7 in ai_manage_explorer (punit=dwarf2_read_address:
Corrupted DWARF expression.
) at aiexplorer.c:358
        desirable = 17880
        log_desirable = <value optimized out>
        pos = {tile = 0x1179a30, turn = 1, moves_left = 3, fuel_left =
1,
  total_MC = 9, total_EC = 0, dir_to_next_pos = 4294967295,
  dir_to_here = DIR8_NORTHEAST}
        pplayer = (struct player *) 0x84f588
        init_moves = 6
        log_most_desirable = 9.7503363730419537
        max_dist = 6
        best_tile = (struct tile *) 0x1181050
        best_MC = 3
        map = (struct pf_map *) 0x1038780
        parameter = {start_tile = 0x117f2c8, moves_left_initially = 6,
  fuel_left_initially = 1, move_rate = 6, fuel = 1, owner = 0x84f588,
  unit_flags = {vec = "\000\002\000\000\000\000\000"}, omniscience =
false,
---Type <return> to continue, or q <return> to quit---
  turn_mode = TM_WORST_TIME, get_MC = 0x4c7650 <normal_move_unit>,
  unknown_MC = 6, get_TB = 0x4c7410 <no_fights_or_unknown>, get_EC = 0,
  get_zoc = 0x4a73e0 <is_my_zoc>,
  is_pos_dangerous = 0x4c6b80 <is_pos_dangerous>, get_costs = 0,
  data = 0x465171}
        logDF = -0.51082562376599072
        logBPS = 11.71015205448437
        __PRETTY_FUNCTION__ = "ai_manage_explorer"
#17 0x000000000041bc45 in update_unit_activities (pplayer=0x84f588)
    at unittools.c:638
        punit = (struct unit *) 0x1007ff0
        _size = dwarf2_read_address: Corrupted DWARF expression.
(gdb)    


Tristan                                                

On Mon, 2007-02-26 at 04:48 -0800, Daniel Markstedt wrote:
> <URL: http://bugs.freeciv.org/Ticket/Display.html?id=36973 >
> 
> On 2/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > <URL: http://bugs.freeciv.org/Ticket/Display.html?id=36973 >
> >
> > Hi there,
> > I found a bug in the civserver which occured already in 2.1 Beta 2.
> > If I setup a server (tried on some differen systems) and some people
> > from the network connect with the civclient everything works, but the
> > server regularry crashes after some turns (often even in the first turn)
> > with a "Segmentation Fault".
> >
> > Yours
> >
> > Tristan Hoffmann
> >
> >
> 
> Hi Tristan,
> 
> Thanks for the report. Could you provide a backtrace of the crash to
> help us track down the bug?
> 
> See http://freeciv.wikia.com/wiki/Bug_Reporting
> 
> Regards,
> ~Daniel
> 
> 
> 

Attachment: signature.asc
Description: PGP signature

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

Reply via email to