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

                 Summary: beta civserver crashes at startup
                 Project: Freeciv
            Submitted by: kernigh
            Submitted on: Thursday 12/31/2009 at 17:54
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.2.0-beta1
         Discussion Lock: Any
        Operating System: *BSD
         Planned Release: 

    _______________________________________________________

Details:

I have compiled freeciv-2.2.0-beta1 for my OpenBSD/macppc machine. The
civserver always dumps core immediately after startup.

This is how to reproduce the crash:


$ cd ~/park/freeciv-2.2.0-beta1/work
$ ./ser
This is the server for Freeciv version 2.2.0-beta1 (beta version)
You can learn a lot about Freeciv at http://www.freeciv.org/

THIS IS A BETA VERSION
Freeciv 2.2.0 will be released in March, at http://www.freeciv.org/

2: Loading rulesets
2: AI*1 has been added as Easy level AI-controlled player.
Segmentation fault (core dumped) 
$ gdb server/freeciv-server freeciv-server.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-unknown-openbsd4.5"...
Core was generated by `freeciv-server'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libiconv.so.6.0...done.
Loaded symbols for /usr/local/lib/libiconv.so.6.0
Reading symbols from /usr/local/lib/libintl.so.4.0...done.
Loaded symbols for /usr/local/lib/libintl.so.4.0
Reading symbols from /usr/lib/libreadline.so.3.0...done.
Loaded symbols for /usr/lib/libreadline.so.3.0
Reading symbols from /usr/lib/libncurses.so.10.0...done.
Loaded symbols for /usr/lib/libncurses.so.10.0
Reading symbols from /usr/lib/libm.so.5.0...done.
Loaded symbols for /usr/lib/libm.so.5.0
Reading symbols from /usr/local/lib/libbz2.so.10.4...done.
Loaded symbols for /usr/local/lib/libbz2.so.10.4
Reading symbols from /usr/lib/libz.so.4.1...done.
Loaded symbols for /usr/lib/libz.so.4.1
Reading symbols from /usr/lib/libc.so.50.1...done.
Loaded symbols for /usr/lib/libc.so.50.1
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  0x018a50e4 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:412
412           if (NULL != background && '\0' != background[0]) {
(gdb) bt full
#0  0x018a50e4 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:412
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
#1  0x018a5118 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:407
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
#2  0x018a5118 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:407
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
#3  0x018a5118 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:407
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
#4  0x018a5118 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:407
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
#5  0x018a5118 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:407
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
#6  0x018a5118 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:407
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
#7  0x018a5118 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:407
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
#8  0x018a5118 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:407
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
#9  0x018a5118 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:407
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
#10 0x018a5118 in text_tag_initv (ptag=0xffff2cc0, type=4294913376, 
    start_offset=32, stop_offset=-1, args=0xffff2cb0)
    at ../../common/featured_text.c:407
        foreground = 0xffff2d60 "\001\231U°"
        background = 0x1 <Address 0x1 out of bounds>
Previous frame inner to this frame (corrupt stack?)
(gdb)


I compiled with sources in ~/park/freeciv-2.2.0-beta1 and objects in
~/park/freeciv-2.2.0-beta1/work. Invocation of configure was


$ ../configure --prefix=/home/kernigh/prefix CPPFLAGS=-I/usr/local/include
LDFLAGS=-L/usr/local/lib


(I assume that the prefix is not important because I never ran 'gmake
install'. /home/kernigh/prefix already contains an installation of
freeciv-2.1.10, so I am not wanting to 'gmake install' the beta.)

Compilation was by 'gmake'.

I can start the beta client (./civ) but it always says "Lost connection to
server!" if I try to start a new game.

My machine runs an old version of OpenBSD 4.5-current, has a PowerPC (G4)
7447A processor, and can run the civserver from freeciv-2.1.10.


$ uname -a
OpenBSD ghostborough.local 4.5 CUSTOM_KERNEL#1 macppc






    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  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