Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2001:
[Freeciv-Dev] Re: Terrible bug (PR#748)
Home

[Freeciv-Dev] Re: Terrible bug (PR#748)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Thue <thue@xxxxxxx>
Cc: FreeCiv Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: Terrible bug (PR#748)
From: Leandro Noferini <leandro@xxxxxxxxxxxxxxxx>
Date: 19 Apr 2001 18:07:06 +0200

Ciao a tutti,

(We were writing about a segfault of freeciv from cvs in Debian
GNU/Linux - Woody version)

    >> Can you help me to understand what I should do?

    Thue> (you should of course have gdb installed) The following
    Thue> assumes you stand in the freeciv root directory.  Start gdb
    Thue> with the civclient binary: % gdb client/civclient start
    Thue> civclient (gdb) run It should the run (and crash) as
    Thue> usually. When it crashes you will be returned to the gdb
    Thue> prompt. Then write (gdb) backtrace Which should give you the
    Thue> legendary backtrace.

This is the result for client

(gdb) run
Starting program: /home/leandro/lavoro/freeciv/freeciv/client/civclient 

Program received signal SIGSEGV, Segmentation fault.
0x4026c7f0 in strcasecmp () from /lib/libc.so.6
(gdb) backtrace
#0  0x4026c7f0 in strcasecmp () from /lib/libc.so.6
#1  0x808dab4 in mystrcasecmp (
    str0=0x40372ab0 <Address 0x40372ab0 out of bounds>, 
    str1=0x40374cdc <Address 0x40374cdc out of bounds>) at support.c:97
#2  0x8056775 in compar_message_texts (i1=0x814d180, i2=0x814d184)
    at options.c:174
#3  0x40223314 in bsearch () from /lib/libc.so.6
#4  0x402232b7 in bsearch () from /lib/libc.so.6
#5  0x402232b7 in bsearch () from /lib/libc.so.6
#6  0x402232b7 in bsearch () from /lib/libc.so.6
#7  0x402232b7 in bsearch () from /lib/libc.so.6
#8  0x4022343e in qsort () from /lib/libc.so.6
#9  0x80567ee in init_messages_where () at options.c:198
#10 0x804b9e9 in main (argc=1, argv=0xbffffc74) at civclient.c:165

And this for the server

(gdb) run
Starting program: /home/leandro/lavoro/freeciv/freeciv/server/civserver 

Program received signal SIGSEGV, Segmentation fault.
0x40079c2e in vfprintf () from /lib/libc.so.6
(gdb) backtrace
#0  0x40079c2e in vfprintf () from /lib/libc.so.6
#1  0x40096b69 in vsnprintf () from /lib/libc.so.6
#2  0x804b102 in my_vsnprintf (str=0x80d2d00 "", n=128, 
    format=0x401a1037 <Address 0x401a1037 out of bounds>, ap=0xbffffbcc)
    at support.c:384
#3  0x804b1f0 in my_snprintf (str=0x80d2d00 "", n=128, 
    format=0x401a1037 <Address 0x401a1037 out of bounds>) at support.c:451
#4  0x804b23f in freeciv_name_version () at version.c:35
#5  0x8049878 in main (argc=1, argv=0xbffffc74) at civserver.c:119

And these are my libc

[leandro: ~]$ /lib/libc.so.6 
GNU C Library stable release version 2.2.2, by Roland McGrath et al.
Copyright (C) 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 2.95.3 20010315 (Debian release).
Compiled on a Linux 2.4.2 system on 2001-03-24.
Available extensions:
        GNU libio by Per Bothner
        crypt add-on version 2.1 by Michael Glad and others
        linuxthreads-0.9 by Xavier Leroy
        BIND-8.2.3-T5B
        libthread_db work sponsored by Alpha Processor Inc
        NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Report bugs using the `glibcbug' script to <bugs@xxxxxxx>.

-- 
Ciao
leandro
Email: leandro@xxxxxxxxxxxxxxxx
GPG Key fingerprint = 761A 69EA 813A CF14 FACD  1E79 AFF9 1B97 D88E 024C



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