Follow-up Comment #1, bug #23708 (project freeciv):

Another backtrace generated from a core. It seems that when server_quit() is
called, soem city tile is null?

Core was generated by `freeciv-web --debug=1 --port 6038 -q 20 --Announce none
-e -m -M http://localho'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  city_tile (pcity=pcity@entry=0x0) at city.c:1074
1074      return pcity->tile;
Traceback (most recent call last):
  File
"/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.19-gdb.py",
line 63, in <module>
    from libstdcxx.v6.printers import register_libstdcxx_printers
ImportError: No module named 'libstdcxx'
(gdb) bt
#0  city_tile (pcity=pcity@entry=0x0) at city.c:1074
#1  0x000000000059a515 in cities_trade_route_type
(pcity1=pcity1@entry=0x2194670,
    pcity2=pcity2@entry=0x0) at traderoutes.c:66
#2  0x000000000051f5bb in set_city_production (pcity=0x2194670) at
city.c:2612
#3  city_refresh_from_main_map (pcity=pcity@entry=0x2194670,
workers_map=workers_map@entry=0x0)
    at city.c:2785
#4  0x000000000045d209 in city_refresh (pcity=0x2194670) at cityturn.c:154
#5  0x000000000045d9dc in city_refresh_queue_processing () at cityturn.c:208
#6  0x000000000047546e in server_remove_player (pplayer=0x1a7db50) at
plrhand.c:1649
#7  0x000000000040cee5 in server_game_free () at srv_main.c:3056
#8  0x000000000040d038 in server_quit () at srv_main.c:1574
#9  0x00000000004a9c05 in server_sniff_all_input () at sernet.c:575
#10 0x000000000040d88d in srv_running () at srv_main.c:2574
#11 srv_main () at srv_main.c:3102
#12 0x0000000000405485 in main (argc=20, argv=0x7ffdf71fec08) at
civserver.c:459



(gdb) bt full
#0  city_tile (pcity=pcity@entry=0x0) at city.c:1074
No locals.
#1  0x000000000059a515 in cities_trade_route_type
(pcity1=pcity1@entry=0x2194670,
    pcity2=pcity2@entry=0x0) at traderoutes.c:66
        ds = 0x0
        plr1 = <optimized out>
        plr2 = <optimized out>
        __FUNCTION__ = "cities_trade_route_type"
#2  0x000000000051f5bb in set_city_production (pcity=0x2194670) at
city.c:2612
        type = <optimized out>
        settings = <optimized out>
        tcity = 0x0
        can_trade = <optimized out>
        proute_iter = 0x0
        proute = 0x22a1eb0
#3  city_refresh_from_main_map (pcity=pcity@entry=0x2194670,
workers_map=workers_map@entry=0x0)
    at city.c:2785
No locals.
#4  0x000000000045d209 in city_refresh (pcity=0x2194670) at cityturn.c:154
        retval = false
#5  0x000000000045d9dc in city_refresh_queue_processing () at cityturn.c:208
        pcity_iter = 0x0
......

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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