With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...
If you have any trouble with SG, this is the place to ask.

Moderator: Pardner

Doesn't lanuch dedicated server on Linux Debian

Postby Lululaglue_notlogged » Fri Jan 02, 2009 12:01 am

Hi all,

I can't launch a dedicated server on my Debian Etch, i have thie error :

Floating Point Exception


If i strace smokinguns_dedicated.x86, i have :

execve("/opt/games/smokin_guns/smokinguns_dedicated.x86", ["/opt/games/smokin_guns/smokingun"...], [/* 17 vars */]) = 0
uname({sys="Linux", node="goliath", ...}) = 0
brk(0) = 0x8270000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f9f000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=23951, ...}) = 0
mmap2(NULL, 23951, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f99000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20\f\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9592, ...}) = 0
mmap2(NULL, 12404, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f95000
mmap2(0xb7f97000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb7f97000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`3\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=145136, ...}) = 0
mmap2(NULL, 147584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f70000
mmap2(0xb7f93000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0xb7f93000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240O\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1241392, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f6f000
mmap2(NULL, 1247388, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e3e000
mmap2(0xb7f65000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x127) = 0xb7f65000
mmap2(0xb7f6c000, 10396, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f6c000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e3d000
--- SIGFPE (Floating point exception) @ 0 (0) ---
+++ killed by SIGFPE +++
Process 23292 detached


Thanks for your help :)
Lululaglue_notlogged
 



Postby Guest » Fri Jan 02, 2009 12:02 am

goliath:/opt/games/smokin_guns$ ldd /opt/games/smokin_guns/smokinguns_dedicated.x86
linux-gate.so.1 => (0xffffe000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7ef7000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7ed2000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7da0000)
/lib/ld-linux.so.2 (0xb7f04000)
Guest
 



Postby Tequila » Fri Jan 02, 2009 12:20 am

As said on IRC, you will have to compile the engine yourself after I commit the last updates ;)

For the next engine release, we will have to give static binaries too.
User avatar
Tequila
SG Team
 
Posts: 1100
Joined: Thu Nov 15, 2007 11:33 pm
Location: Montpellier, France



FreeBSD

Postby sparcdr » Fri Jan 02, 2009 9:36 am

Tested smokinguns_dedicated.x86 against FreeBSD 7.1 with linux_compat-f8 and sysctl variable compat.linux.osrelease set to 2.6.22 in /etc/sysctl.conf as well as persistant (sysctl -w compat.linux.osrelease=2.6.22). A portupgrade using latest cvsup'd ports would be wise if you're still using 7.0-RELEASE as a base. Move smokinguns_dedicated.x86 to smokinguns_dedicated.x86.real then make a file called smokinguns_dedicated.x86 with the following:

Code: Select all
#!/bin/sh
cd /usr/sg
./smokinguns_dedicated.x86.real +set com_hunkmegs 64 +set dedicated 2 +set net_ip x.x.x.x +set net_port 27960 +set sv_pure 1 +set sv_allowdownload 0 +set sv_pidfile "/usr/sg/sg.pid" +set fs_base "/usr/sg" +set set bot_nochat "1" +exec server.cfg


Code: Select all
chmod +x smokinguns_dedicated.x86


You will need to have the sv_pidfile set to a location where the user running the binary can write to. For some reason bots still chat even with bot_nochat set in default.cfg, q3config.cfg, server.cfg and smokinguns_dedicated.x86. The occurrence is not often though.

It should say sent heartbeat to gamespy/idsoftware and bots should start buying weapons.

Modify smokinguns/server.cfg to change the server name, amount of bots, and other settings.

A native version (Static preferred) will eventually come out for FreeBSD, but this works quite well right now.
sparcdr
SG Team
 
Posts: 334
Joined: Wed Jun 13, 2007 3:41 pm



Postby Tequila » Fri Jan 02, 2009 11:31 am

You can try the last source update, check this thread please:
Find the source here
User avatar
Tequila
SG Team
 
Posts: 1100
Joined: Thu Nov 15, 2007 11:33 pm
Location: Montpellier, France



Postby Tequila » Fri Jan 02, 2009 1:34 pm

Hi I just updated sources to have unix static build support for the dedicated server.
If you're lazy, you can just try the one I compiled for you:
http://www.smokinguns.fr/download/smoki ... static.bz2
8)
User avatar
Tequila
SG Team
 
Posts: 1100
Joined: Thu Nov 15, 2007 11:33 pm
Location: Montpellier, France



Postby lululaglue » Fri Jan 02, 2009 7:45 pm

hey thanks Tequila, this version work fine :D
lululaglue
Jeuxlinux Admin
 
Posts: 3
Joined: Thu Jan 01, 2009 11:55 pm
Location: France



Postby lutoma » Fri Jan 23, 2009 11:49 pm

urgh. i've the same problem, but the mirror of your file seems to bee down :?:
User avatar
lutoma
Drifter
 
Posts: 6
Joined: Tue Jan 06, 2009 10:01 pm



Postby /dev/random » Sat Jan 24, 2009 12:33 am

Same problem here, running Debian Etch. The static one works fine though.

Here's another (temporary) mirror.
User avatar
/dev/random
Smokin' Amigo!
 
Posts: 410
Joined: Thu Jan 22, 2009 1:58 pm



Postby Tequila » Sun Jan 25, 2009 10:30 pm

Hi,
My site can be a little overloaded with the numbers of Smokin'Guns downloads... but the file for the static dedicated server is still available.
Btw, Thanks dev/random to mirror it if it has help somebody ;)
User avatar
Tequila
SG Team
 
Posts: 1100
Joined: Thu Nov 15, 2007 11:33 pm
Location: Montpellier, France




Return to Doc's Office

Show Sidebar
Show Sidebar

User Control Panel

cron