English Segmentation fault

16 replies
Goto Page
To the start Previous 1 Next To the start
10.04.16 11:45:38 pm
Up
Inflexion
User
Offline Off
Hello, today I tried to nohup on a DebianVPS and after some good amount of time, the server crashed with a segmentation fault error, when I ran another different server it crashed with the same error, and I think it's an VPS problem, but i'm not sure what to do afterall.

Here is the logs that I found:
LOG >

After it does say Segmentation fault, it instantly crashed.

Thank you for reading this.
edited 1×, last 10.04.16 11:58:55 pm
weeb
11.04.16 03:49:34 am
Up
ead
User
Offline Off
It could be a DDoS attack?
I'm back
11.04.16 06:40:44 am
Up
Fraizeraust
Moderator
Offline Off
Segmentation fault is not an issue caused by DoS or (D)DoS attacks at all. It may occur for plenty of reasons:

• Permission rights of the dedicated server is set un-properly;
• Some libraries are missing, outdated or corrupted;
• CS2D tries to access some resources which apparently they aren't available.

If you're running Linux on your VPS machine, type ldd command on CounterStrike2D in the Terminal as the binary to check for further missing libs or outdated ones. You might want also to check the rights if they're set up correctly otherwise you must change them with chmod command.
11.04.16 07:13:58 am
Up
Flacko
User
Offline Off
That means the server process tried to access memory that doesn't belong to it, which usually happens because of an error while doing cool stuff with memory the wrong way, like dereferencing uninitialized pointers, reading from an invalid file handle, etc. AFAIK, Segmentation faults are always a fatal error (although wikipedia says different).

While it could be a resource issue, it is ultimately a programming error.
11.04.16 12:31:18 pm
Up
Inflexion
User
Offline Off
So, Before running the server again. I follow ZxC steps,

So, I verified the permissions, and they were already set to 777
For the libraries, I updated them but it still says Segmentation fault then it crashes I especially update ia32 libraries because they were suspicious.

Done, we fixed it by re-installing the system, downgrading to debian 7, and installing new libraries.

Anyways, Just something. I received few DDos attacks, now when I try to run the server it sends requests of added in serverlist but no one can connect to it..
edited 2×, last 11.04.16 11:13:39 pm
weeb
12.04.16 03:07:51 am
Up
Evaldas
BANNED
Offline Off
Kids get DoS attack and start crying about DDoSes hehehe. If you are dumb, or attack wasnt so easly blocked you need to contact your ISP. Back on topic, why not trying different os like Ubuntu.
Destroying children's dream's, since 2012..
12.04.16 03:49:25 pm
Up
Fraizeraust
Moderator
Offline Off
user Inflexion has written:
Anyways, Just something. I received few DDos attacks, now when I try to run the server it sends requests of added in serverlist but no one can connect to it..

Blocked ports or wrong iptables settings I presume? These two could be the root of your problem for this case if not something else. Maybe we can troubleshoot this issue firstly by listing all current ports available in your VPS so we can see if those who come from CS2D are opened or not.
Code:
1
netstat -pln

Where -l lists all the ports whereas -p displays the processes and -n shows the port numbers instead of its name. Basically it lists all the ports in few words. This can be done also in an alternative way by listing UPD ports based only.
Code:
1
netstat -au

You must check the port number which starts by default one of CS2D (I am sure you know what's it). If not, use this command below to open it:
Code:
1
iptables -I INPUT -p udp --dport PORTHERE -j ACCEPT

Afterwards, you must save your changes in order to be applied in the firewall system whenever you attempt to restart the VPS.
Code:
1
iptables-save

Hope that helps somehow.
12.04.16 04:14:58 pm
Up
Marcell
Super User
Offline Off
@user Fraizeraust: It's also means may he reached amount of max memory in the system.
12.04.16 11:09:16 pm
Up
gotya2
GAME BANNED
Offline Off
run cs2d with a debugger ( gdb for example ).
Paste me the line where the crash occurs (backtrace) and I can take a look at it.
12.04.16 11:53:31 pm
Up
Inflexion
User
Offline Off
It used to crash the server in like 30 mins, now it crashes it when map changes. Strange.
And it only happens when I change map using the HC Admin Script modules.
And there is no way CS2D can take a whole 4GB.
edited 2×, last 13.04.16 12:12:06 am
weeb
13.04.16 12:36:38 am
Up
VADemon
User
Offline Off
@user Inflexion: I was going to ask to disable Lua scripts as they can crash CS2D in rare cases. If you're sure that HC Admin Script is causing the issue, are ready to examine it further? I'd like to work on this.
13.04.16 12:41:15 am
Up
Inflexion
User
Offline Off
@user VADemon: The problem's cause is maps.lua, I deleted it and everything worked fine, but changing map while having the maps.lua in causes a Segmentation fault. but actually without the maps.lua people won't be able to vote because most of people do get bored of the same map everytime.
weeb
13.04.16 11:03:29 am
Up
gotya2
GAME BANNED
Offline Off
Then perhaps it's time to link us the maps.lua script
13.04.16 12:24:03 pm
Up
Inflexion
User
Offline Off
I can't link you the maps.lua gotya, you have to install the whole HC Admin Script and look in the modules folder.
weeb
13.04.16 01:04:26 pm
Up
Rainoth
Moderator
Offline Off
Or you could literally post the code for maps.lua.
13.04.16 04:59:36 pm
Up
Marcell
Super User
Offline Off
maps.lua >
Spoiler >
13.04.16 10:56:42 pm
Up
Inflexion
User
Offline Off
Done, I fixed it alone, Thank you all.
weeb
To the start Previous 1 Next To the start