URL:
  <http://gna.org/bugs/?21043>

                 Summary: Segmentation fault in dai_manage_caravan
                 Project: Freeciv
            Submitted by: andreasr
            Submitted on: Wed 21 Aug 2013 04:02:39 PM GMT
                Category: freeciv-web
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 

    _______________________________________________________

Details:

I get a segmentation fault in tile.c, called from dai_manage_caravan in
aiunit.c. This is on the Freeciv-web server, running Freeciv server SVN
revision 23091. Based on the backtrace, the error looks like a bug in the AI
code.

Backtrace generated from coredump:

#0  tile_city (ptile=0x0) at tile.c:81
#1  0x0812185d in dai_manage_caravan (punit=0x91c5958, pplayer=0xa27b718,
ait=0x82f30c0 <ai_types>)
    at aiunit.c:2105
#2  dai_manage_unit (ait=ait@entry=0x82f30c0 <ai_types>,
pplayer=pplayer@entry=0xa27b718,
    punit=punit@entry=0x91c5958) at aiunit.c:2513
#3  0x08123771 in dai_manage_units (ait=ait@entry=0x82f30c0 <ai_types>,
pplayer=pplayer@entry=0xa27b718)
    at aiunit.c:2654
#4  0x0810e33d in dai_do_first_activities (ait=0x82f30c0 <ai_types>,
pplayer=pplayer@entry=0xa27b718)
    at aihand.c:725
#5  0x080df6a8 in cai_do_first_activities (pplayer=0xa27b718) at
classicai.c:359
#6  0x08052272 in ai_start_phase () at srv_main.c:793
#7  begin_phase (is_new_phase=true) at srv_main.c:945
#8  srv_running () at srv_main.c:2267
#9  srv_main () at srv_main.c:2791
#10 0x0804c132 in main (argc=17, argv=0xbfb04194) at civserver.c:458


Note that after I added the fix from bug #21019, the number of segmentation
faults has been greatly reduced. 




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


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

Reply via email to