Ways to crash server without natives?
#1

Which kinds of scripting errors can lead to a server crash?

By saying scripting errors I mean those not related to native functions (NOT like passing invalid arguments to natives, etc). Please post here if you know one.

If you wonder why I need this: it's for a plugin that can detect server crash (via exception/signal handlers) and report some useful info like stack trace to help in debugging the issue.

Thanks in advance.
Reply
#2

Well a simple way to crash the server, if this is what your asking, is off the top of my head doing this:

Код:
SetPlayerName(dummyid, "");
Setting a players name to blank WILL crash the server.

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

Doing it in another way would be an array out of bounds (but I think this is caught):

Код:
new dummyvar;
new dummyarray[12];
dummyvar = dummyarray[12];
Causing an array out of bounds exception WILL crash the server (or not execute any code done after this)

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

Otherwise, I think all scripting errors are caught, only SA-MP natives will crash the server.
Reply
#3

It seems that out-of-bounds errors are silently caught by AMX since I tried them several times with no luck
Reply
#4

Leaving a textdraw string empty.
Reply
#5

You could try to read memory outside of AMX memory section. That do crash server.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)