db_free_result crashes the server
#1

If you use db_free_result twice on the same result, it will crash the server (sometimes it works, though).

I know it's the scripter's own stupidity to do so, but IMO it shouldn't crash the server.
Reply
#2

So this is what has been crashing my server? =/

I just started with SQL and got this problem, haha.
Reply
#3

Same with MySQL plugin. Sometimes it crashes, sometimes it doesn't.
pawn Code:
mysql_free_result()
Reply
#4

Confirmed.

Quote:
Originally Posted by armyoftwo
View Post
Same with MySQL plugin. Sometimes it crashes, sometimes it doesn't.
pawn Code:
mysql_free_result()
SQLite is natively included in SA-MP, MySQL is not.
Reply
#5

Quote:
Originally Posted by armyoftwo
View Post
Same with MySQL plugin. Sometimes it crashes, sometimes it doesn't.
pawn Code:
mysql_free_result()
No, it's not the same.
My server actually never crashed, or at least not because of that.
Reply
#6

...this isn't a bug report for the MySQL plugin.
Reply
#7

Why should this be a bug, you don't have to free the same result twice...
Reply
#8

...because the server crashes maybe and scripting mistakes are [generally speaking] inevitable?
Reply
#9

Server also crashes if you want to open file from non existant directory. I guess that is much more important issue than this, since you must be really *someword* to frre result more than one time.

And also server crashes if field's value is NULL.
Reply
#10

For me the server didn't crash directly at the function db_free_result, which obviously would've been easier for me (and I wouldn't have even reported this), but the weird thing was that the server called the next few callbacks properly before crashing.

I found that the bug was where it was after going through every single line and every single function from the point player connects to the point he/she spawns, even debugging the script didn't help, because like I said the moment the server crashed was jumping around.

Which is why I feel this, unlike those crashes Sergei reported, should be fixed because it's extremely sneaky one and I don't want anyone else to go through the same I did.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)