[CF-Devel] Problems running 1.4.0 server on solaris 2.8

Thomas J. Boyda tboyda at ntelos.net
Tue Oct 22 01:46:59 CDT 2002


Hello,

I am trying to get the 1.4.0 server running on Solaris 2.8, but the server
keeps on crashing with a SIGSEGV. The server compiles cleanly.

Here is what I see when running crossfire -d:

     
     boyda at molecule
     
     $ crossfire -d
Reading bmaps from /usr/games/crossfire/share/crossfire/bmaps...done (got
3910/3911/3911)
Reading faces from /usr/games/crossfire/share/crossfire/faces...done
Reading animations from
/usr/games/crossfire/share/crossfire/animations...done. got (783)
Reading archetypes from /usr/games/crossfire/share/crossfire/archetypes...
 arch-pass 1...
Object Burning Tail of many lashings of Ruggilli seems to have too low
item power? 45 > 12
Unrecognized string: attack type 1
 Adding friendly object Evil Master, Bonehead.
Object amulet of lifesaving had no item power, using 4
Object strange ring had no item power, using 4
Object tooth charm had no item power, using 7
Object Chaos Sword had no item power, using 13
Object Darkblade had no item power, using 24
Object Demonbane had no item power, using 7
Object dagger of fortune had no item power, using 7
Object Frost Hammer had no item power, using 13
Object Firestar had no item power, using 50
Object Gram had no item power, using 11
Object Holy Avenger had no item power, using 45
Object Kobold Dagger had no item power, using 4
Object Lava Slasher had no item power, using 18
calc_item_power got 25 enchantments for Katana of Masamune
Object Katana of Masamune had no item power, using 50
Object Sting had no item power, using 4
calc_item_power got 24 enchantments for Belzebub's sword
Object Belzebub's sword had no item power, using 50
Object Bonecrusher had no item power, using 4
Object Defender had no item power, using 5
Object Dragonslayer had no item power, using 7
Object Excalibur had no item power, using 30
Object Firebrand had no item power, using 5
Object Frostbrand had no item power, using 5
Object Staff of the Magi had no item power, using 18
Object Mjoellnir had no item power, using 7
Object Mournblade had no item power, using 27
Object Skullcleaver had no item power, using 4
Object Stormbringer had no item power, using 30
 done
 Setting up archetable...done
 loading treasure...
 done
 arch-pass 2...
 done
 done
Reading attack messages from
/usr/games/crossfire/share/crossfire/attackmess...got 227 messages in 19
categories.
Reading clockdata from
/usr/games/crossfire/var/crossfire/clockdata...todtick=0
Welcome to CrossFire, v1.4.0
Copyright (C) 1994 Mark Wedel.
Copyright (C) 1992 Frank Tore Johansen.
Reading artifacts from
/usr/games/crossfire/share/crossfire/artifacts...Object NULL seems to have
too low item power? 5 > 1
Object NULL seems to have too low item power? 9 > 3

SIGSEGV received.
zsh: IOT instruction (core dumped)  crossfire -d

Here is the crossfire -o output:

     
     boyda at molecule
     
     $ crossfire -o
Reading bmaps from /usr/games/crossfire/share/crossfire/bmaps...done (got
3910/3911/3911)
Reading faces from /usr/games/crossfire/share/crossfire/faces...done
Reading animations from
/usr/games/crossfire/share/crossfire/animations...done. got (783)
Reading archetypes from /usr/games/crossfire/share/crossfire/archetypes...
 arch-pass 1...
Object Burning Tail of many lashings of Ruggilli seems to have too low
item power? 45 > 12
Unrecognized string: attack type 1
 Adding friendly object Evil Master, Bonehead.
Object amulet of lifesaving had no item power, using 4
Object strange ring had no item power, using 4
Object tooth charm had no item power, using 7
Object Chaos Sword had no item power, using 13
Object Darkblade had no item power, using 24
Object Demonbane had no item power, using 7
Object dagger of fortune had no item power, using 7
Object Frost Hammer had no item power, using 13
Object Firestar had no item power, using 50
Object Gram had no item power, using 11
Object Holy Avenger had no item power, using 45
Object Kobold Dagger had no item power, using 4
Object Lava Slasher had no item power, using 18
calc_item_power got 25 enchantments for Katana of Masamune
Object Katana of Masamune had no item power, using 50
Object Sting had no item power, using 4
calc_item_power got 24 enchantments for Belzebub's sword
Object Belzebub's sword had no item power, using 50
Object Bonecrusher had no item power, using 4
Object Defender had no item power, using 5
Object Dragonslayer had no item power, using 7
Object Excalibur had no item power, using 30
Object Firebrand had no item power, using 5
Object Frostbrand had no item power, using 5
Object Staff of the Magi had no item power, using 18
Object Mjoellnir had no item power, using 7
Object Mournblade had no item power, using 27
Object Skullcleaver had no item power, using 4
Object Stormbringer had no item power, using 30
 done
 Setting up archetable...done
 loading treasure...
 done
 arch-pass 2...
 done
 done
Reading attack messages from
/usr/games/crossfire/share/crossfire/attackmess...got 227 messages in 19
categories.
Reading clockdata from
/usr/games/crossfire/var/crossfire/clockdata...todtick=0
Welcome to CrossFire, v1.4.0
Copyright (C) 1994 Mark Wedel.
Copyright (C) 1992 Frank Tore Johansen.
Non-standard include files:
<stdlib.h>
<malloc.h>
<memory.h
<sys/timeb.h>
Secure:         <false>
Datadir:                /usr/games/crossfire/share/crossfire
Localdir:               /usr/games/crossfire/var/crossfire
Perm file:      <ETC>/forbid
Shutdown file:  <ETC>/shutdown
Save player:    <true>
Save mode:      0660
Playerdir:      <VAR>/players
Itemsdir:       <VAR>/unique-items
Use checksum:   <true>
Tmpdir:         /tmp
Map max timeout:        1000
Map reset:      <true>
Max objects:    25000
Use_calloc:     <true>
Use_swap_stats: <true>
Explore mode:   <false>
Shop listings:  <false>
Max_time:       120000
SunOS molecule 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-2

Here is the stack trace from the core file:

$ gdb /usr/games/crossfire/bin/crossfire core
GNU gdb 5.0
Copyright 2000 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 "sparc-sun-solaris2.8"...
Core was generated by `crossfire -d'.
Program terminated with signal 6, Abort.
Reading symbols from /lib/libdl.so.1...done.
Loaded symbols for /lib/libdl.so.1
Reading symbols from /lib/libcrypt_i.so.1...done.
Loaded symbols for /lib/libcrypt_i.so.1
Reading symbols from /lib/libm.so.1...done.
Loaded symbols for /lib/libm.so.1
Reading symbols from /lib/libsocket.so.1...done.
Loaded symbols for /lib/libsocket.so.1
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libc.so.1...done.
Loaded symbols for /lib/libc.so.1
Reading symbols from /lib/libgen.so.1...done.
Loaded symbols for /lib/libgen.so.1
Reading symbols from /lib/libmp.so.2...done.
Loaded symbols for /lib/libmp.so.2
Reading symbols from /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-2/lib/libc_psr.so.1
#0  0xff19c724 in _libc_kill () from /lib/libc.so.1
(gdb) where
#0  0xff19c724 in _libc_kill () from /lib/libc.so.1
#1  0xff135a84 in abort () from /lib/libc.so.1
#2  0x3d7b0 in fatal_signal (make_core=1, close_sockets=1) at init.c:700
#3  <signal handler called>
#4  0xff133344 in strlen () from /lib/libc.so.1
#5  0xff183098 in _doprnt () from /lib/libc.so.1
#6  0xff185270 in vsprintf () from /lib/libc.so.1
#7  0x80d64 in LOG (logLevel=llevDebug,
    format=0xbd030 "calc_item_power got %d enchantments for %s\n")
    at logger.c:56
#8  0x6f6f4 in calc_item_power (op=0x4021c8, flag=0) at item.c:209
#9  0x7706c in check_loaded_object (op=0x4021c8) at loader.l:146
#10 0x77ac8 in lex_load (op=0x4021c8, map_flags=0) at loader.l:278
#11 0x7f508 in load_object (fp=0x16b7d8, op=0x4021c8, bufstate=-4263048,
    map_flags=0) at loader.l:1041
#12 0x92c9c in init_artifacts () at treasure.c:1162
#13 0x3d2ec in init_beforeplay () at init.c:467
#14 0x3d088 in init (argc=2, argv=0xffbef934) at init.c:400
#15 0x41c14 in main (argc=2, argv=0xffbef934) at main.c:1149
(gdb)

     
     boyda at molecule
     
     $ gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls
Thread model: posix
gcc version 3.2

BTW, I did not have a problem with the 0.95.7 server on this same system.

Tom.
----
Thomas J. Boyda <
     
     tboyda at ntelos.net
     
     >
276-676-0104
Unix Guru		"Those who would give up essential liberty
JAPH			 to purchase a little temporary safety
			 deserve neither liberty nor safety."
			Benjamin Franklin, 1759


    
    


More information about the crossfire mailing list