Complete.Org: Mailing Lists: Archives: freeciv-dev: September 1999:
[Freeciv-Dev] Re: Segmentation Fault at Player AI seletc (PR#138)
Home

[Freeciv-Dev] Re: Segmentation Fault at Player AI seletc (PR#138)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Development <freeciv-dev@xxxxxxxxxxx>
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Segmentation Fault at Player AI seletc (PR#138)
From: Peter Schaefer <schaefer@xxxxxx>
Date: Thu, 30 Sep 1999 12:36:49 +0200

Reinier Post wrote:
> 
> > Okay, here is what happened.
> >
> > I added two players, myself and then the ai.
> > I did an "ai Matt" to set my player to human.
> > Got a "Matt is now human controlled"
> > As sson as the above printed, I got a segmentation fault and then a core 
> > dump.
> 
> Reproducible with 1.8.3b on SuSE Linux 6.1.
> 
> --
> Reinier

Here is the stack trace:

1: Connection request from schaefer with client version 1.8.3
1: <schaefer@localhost> has joined the game.

> create Hammu
1: Hammu has been added as an AI-controlled player.
Created new AI player: Hammu.
> ai schaefer
schaefer is now under AI control.
schaefer is now easy.
> ai schaefer
schaefer is now under human control.

Program received signal SIGSEGV, Segmentation fault.
get_government_max_rate (type=136422884) at government.c:222
222       return governments[type].max_rate;
(gdb) insp type
$1 = 127
(gdb) where
#0  get_government_max_rate (type=136422884) at government.c:222
#1  0x8069394 in toggle_ai_player (caller=0x0, arg=0xbfffd22c "schaefer")
    at stdinhand.c:957
#2  0x806ac7b in handle_stdin_input (caller=0x0,
    str=0xbffff27c "ai schaefer\n") at stdinhand.c:1703
#3  0x80643f5 in sniff_packets () at sernet.c:189
#4  0x804f97d in main (argc=1, argv=0xbffff57c) at civserver.c:333
(gdb)
  

-- 
Peter Schäfer - mailto:schaefer@xxxxxx, schaefer@xxxxxx

[Prev in Thread] Current Thread [Next in Thread]