LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games
User Name
Password
Linux - Games This forum is for all discussion relating to gaming in Linux.

Notices


Reply
  Search this Thread
Old 07-02-2004, 09:10 PM   #1
teken
LQ Newbie
 
Registered: Dec 2003
Location: Chesapeake,Va
Distribution: Slackware 9.1
Posts: 11

Rep: Reputation: 0
Sof2 linux server problem


I can't seem to make this server run,
I keep getting a segmentation fault.
-------------------------------------------------------------------------------------------------------------
linux:~ # cd /usr/local/games/sof2
linux:/usr/local/games/sof2 # ./sof2ded +exec server.cfg
SOF2MP V1.01 linux-i386 Jul 3 2002
Initialising zone memory .....
----- FS_Startup -----
Current search path:
/root/.sof2/base
/usr/local/games/sof2/base/MP
/usr/local/games/sof2/base/update101.pk3 (298 files)
/usr/local/games/sof2/base/therest.pk3 (7125 files)
/usr/local/games/sof2/base/skins.pk3 (4117 files)
/usr/local/games/sof2/base/musicandsound.pk3 (3055 files)
/usr/local/games/sof2/base/mp.pk3 (338 files)
/usr/local/games/sof2/base/models.pk3 (3643 files)
/usr/local/games/sof2/base
./sof2ded/base/MP
./sof2ded/base

----------------------
18576 files in pk3 files
execing sof2mp_default.cfg
execing sof2mp.cfg
execing autoexec.cfg
Hunk_Clear: reset the hunk ok
--- Common Initialization Complete ---
Opening IP socket: localhost:20100
Segmentation fault
linux:/usr/local/games/sof2 #

-------------------------------------------------------------
I am loged in at my root account while doing this.
Any IDeas that I could do?
 
Old 07-02-2004, 09:19 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Why are you running a game as a root?
 
Old 07-02-2004, 09:59 PM   #3
teken
LQ Newbie
 
Registered: Dec 2003
Location: Chesapeake,Va
Distribution: Slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
I'm logged in as root so that I could install my software and scripts without haveing to type a password repeatedly.
once the game works I'm gona change the setup so that I can play it in a normal user account.
 
Old 07-03-2004, 01:26 AM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
ok. Does it work as a normal user?

Other ideas:
-Is your loopback interface set up correctly? (that is, does ping localhost and ping 127.0.0.1 work)
-Try running program with strace and/or ltrace to see what happens before segfaults (also strace -e trace=file might be useful).
-Using fenris might also retrieve something out from the problem.
-Recompile the program with debugging information (-g) and run it under gdb to see where in the source crashes.

Last edited by ToniT; 07-03-2004 at 01:28 AM.
 
Old 07-03-2004, 08:49 AM   #5
teken
LQ Newbie
 
Registered: Dec 2003
Location: Chesapeake,Va
Distribution: Slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
This is what I get for the loop back I'd say it works...
----------------------------------------------------------------------
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.224 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.141 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.154 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.154 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.164 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.150 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=0.138 ms
64 bytes from 127.0.0.1: icmp_seq=8 ttl=64 time=0.155 ms
64 bytes from 127.0.0.1: icmp_seq=9 ttl=64 time=0.146 ms
64 bytes from 127.0.0.1: icmp_seq=10 ttl=64 time=0.164 ms
64 bytes from 127.0.0.1: icmp_seq=11 ttl=64 time=0.148 ms
64 bytes from 127.0.0.1: icmp_seq=12 ttl=64 time=0.143 ms
64 bytes from 127.0.0.1: icmp_seq=13 ttl=64 time=0.153 ms
64 bytes from 127.0.0.1: icmp_seq=14 ttl=64 time=0.133 ms
64 bytes from 127.0.0.1: icmp_seq=15 ttl=64 time=0.164 ms
64 bytes from 127.0.0.1: icmp_seq=16 ttl=64 time=0.153 ms
64 bytes from 127.0.0.1: icmp_seq=17 ttl=64 time=0.138 ms
64 bytes from 127.0.0.1: icmp_seq=18 ttl=64 time=0.161 ms
64 bytes from 127.0.0.1: icmp_seq=19 ttl=64 time=0.148 ms
64 bytes from 127.0.0.1: icmp_seq=20 ttl=64 time=0.160 ms
64 bytes from 127.0.0.1: icmp_seq=21 ttl=64 time=0.159 ms
64 bytes from 127.0.0.1: icmp_seq=22 ttl=64 time=0.142 ms
64 bytes from 127.0.0.1: icmp_seq=23 ttl=64 time=0.143 ms
64 bytes from 127.0.0.1: icmp_seq=24 ttl=64 time=0.164 ms
64 bytes from 127.0.0.1: icmp_seq=25 ttl=64 time=0.138 ms
64 bytes from 127.0.0.1: icmp_seq=26 ttl=64 time=0.178 ms
64 bytes from 127.0.0.1: icmp_seq=27 ttl=64 time=0.143 ms
64 bytes from 127.0.0.1: icmp_seq=28 ttl=64 time=0.145 ms

--- 127.0.0.1 ping statistics ---
28 packets transmitted, 28 received, 0% packet loss, time 27023ms
rtt min/avg/max/mdev = 0.133/0.153/0.224/0.022 ms

---------------------------------------------------------------------------

when I try to do trace, nothing appears to be happening...
the Os is suse 9.1 pro
 
Old 07-03-2004, 08:56 AM   #6
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
See that strace is installed and run
"strace ./sof2ded +exec server.cfg"
 
Old 07-03-2004, 02:34 PM   #7
teken
LQ Newbie
 
Registered: Dec 2003
Location: Chesapeake,Va
Distribution: Slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
I ran the report and posted it on my web account
*...lol its an old account...x.x;*
http://www.angelfire.com/dbz/dragonb...ta/Report.html

it says that it ended in a sigsegv
 
Old 07-03-2004, 02:54 PM   #8
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Well, that just crashes after reading some shared objects. There seems to be nothing wrong with the kernel interaction. ltrace might reveal something; it traces through the interaction with dynamic library calls.

I would compile the sources with -g to see what is actually wrong when system crashes. The datestamp older than two years indicates that there might be some library problem what could get fixed by just recompiling against newer libraries. With objdump -x you see what dependencies that binary has.
 
Old 07-03-2004, 02:58 PM   #9
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
BTW. if this program you are wondering is this
http://www.3dgamers.com/games/soldierfortune2/#filelist
, there is newer 1.02a version available (1.02 fully, with patch to 1.02a), try using it.
 
Old 07-03-2004, 11:52 PM   #10
teken
LQ Newbie
 
Registered: Dec 2003
Location: Chesapeake,Va
Distribution: Slackware 9.1
Posts: 11

Original Poster
Rep: Reputation: 0
this is what i get when I try the new version of server.. I've tryed copyin the game over from my windows.. still wants to be stubborn about it though..

linux:~ # '/usr/local/games/sof2/sof2ded'
SOF2MP V1.02 linux-i386 Sep 23 2002
Initialising zone memory .....
----- FS_Startup -----
Current search path:
/root/.sof2/base
/root/base/MP
/root/base
/usr/local/games/sof2/sof2ded/base/MP
/usr/local/games/sof2/sof2ded/base

----------------------
0 files in pk3 files

Running in restricted demo mode.

----- FS_Startup -----
Current search path:
/root/.sof2/demo
/root/demo/MP
/root/demo
/usr/local/games/sof2/sof2ded/demo/MP
/usr/local/games/sof2/sof2ded/demo

----------------------
0 files in pk3 files
Sys_Error: Couldn't load sof2mp_default.cfg

Last edited by teken; 07-04-2004 at 12:04 AM.
 
Old 07-04-2004, 04:11 AM   #11
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Are the files in correct case? (linux filesystems are case-sensitive).
"strace -e trace=file /usr/local/games/sof2/sof2ded" and you see what files it tries to access.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
SoF2 Linux Server and Port Forwarding adskiremote Linux - Games 0 07-30-2004 04:15 AM
Sof2 Demo Linux server AntiX Linux - Games 0 07-04-2004 11:38 PM
SoF2 cb9fl Linux - Games 1 12-07-2003 08:20 PM
no demosheild in wine 4 sof2 redhat8 Linux - Software 0 11-19-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Games

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration