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

I had an explorer unit on some arctic.  The entire continent was
explored so the unit stopped exploring and control was returned to me.
As I often do I pressed 'x' again, which typically does nothing (except,
incorrectly , advance focus to the next unit).

Instead the server crashed.

Program terminated with signal 6, Aborted.
#0  0xb7f38410 in ?? ()
(gdb) bt
#0  0xb7f38410 in ?? ()
#1  0xbfbb67a8 in ?? ()
#2  0x00000006 in ?? ()
#3  0x0000754b in ?? ()
#4  0xb7d93811 in raise () from /lib/tls/i686/cmov/libc.so.6
#5  0xb7d94fb9 in abort () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7d8cfbf in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#7  0x0811a339 in handle_unit_change_activity (pplayer=0x82a8c30,
unit_id=666,
    activity=ACTIVITY_EXPLORE, activity_target=S_LAST) at unithand.c:561
#8  0x080e9896 in server_handle_packet (type=PACKET_UNIT_CHANGE_ACTIVITY,
    packet=0x8e53238, pplayer=0x82a8c30, pconn=0x823eb60) at hand_gen.c:253
#9  0x080c2866 in handle_packet_input (pconn=0x823eb60, packet=0x8e53238,
    type=72) at srv_main.c:1155
#10 0x080be78c in handle_incoming_client_packets (pconn=0x823eb60)
    at sernet.c:389
#11 0x080bf211 in sniff_packets () at sernet.c:732
#12 0x080c381b in main_loop () at srv_main.c:1716
#13 0x080c3ff2 in srv_loop () at srv_main.c:2007
#14 0x080c39f2 in srv_main () at srv_main.c:1813
#15 0x0804b2b2 in main (argc=8, argv=0xbfbb7ed4) at civserver.c:262
(gdb) select 7
(gdb) p more_to_explore
$1 = false
(gdb) p punit->activity
$2 = ACTIVITY_IDLE

Don't know why the activity was reset to idle nor why that is a bug.

This was made with the triemes-and-deep-ocean patch.  That shouldn't
affect anything other than line numbers.

-jason



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

Reply via email to