Forum

> > CS2D > Servers > Segmentation fault
Forums overviewCS2D overview Servers overviewLog in to reply

English Segmentation fault

16 replies
To the start Previous 1 Next To the start

old Segmentation fault

Inflexion
User Off Offline

Quote
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

old Re: Segmentation fault

GeoB99
Moderator Off Offline

Quote
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.

old Re: Segmentation fault

Flacko
User Off Offline

Quote
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.

old Re: Segmentation fault

Inflexion
User Off Offline

Quote
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

old Re: Segmentation fault

Evaldas
BANNED Off Offline

Quote
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.

old Re: Segmentation fault

GeoB99
Moderator Off Offline

Quote
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.
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.
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:
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.
1
iptables-save
Hope that helps somehow.

old Re: Segmentation fault

gotya2
GAME BANNED Off Offline

Quote
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.

old Re: Segmentation fault

Inflexion
User Off Offline

Quote
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

old Re: Segmentation fault

VADemon
User Off Offline

Quote
@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.

old Re: Segmentation fault

Inflexion
User Off Offline

Quote
@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.

old Re: Segmentation fault

Inflexion
User Off Offline

Quote
I can't link you the maps.lua gotya, you have to install the whole HC Admin Script and look in the modules folder.

old Re: Segmentation fault

Marcell
Super User Off Offline

Quote
maps.lua >
Spoiler >
To the start Previous 1 Next To the start
Log in to reply Servers overviewCS2D overviewForums overview