y_inline queries - Invalid memory access & Invalid instruction
#1

Hey there,

In the last few days I've been dealing with crashdetect randomly spitting out errors on server start, most of the time the server starts just fine, but a few times it just spits out these errors. It appears that it has something to do with y_inline or a_mysql_yinline but I have no idea what it is.

Code:
[14:58:14] [debug] Run time error 5: "Invalid memory access"
[14:58:14] [debug] AMX backtrace:
[14:58:14] [debug] #0 00012144 in Alloc:Malloc_Allocate (size=2, bool:clear=true) at P:\Persoonlijk\Projects\Alternative Life RP\AL-RP Original\pawno\include\YSI_Coding\y_malloc/funcs.inc:704
[14:58:14] [debug] #1 00035f78 in bool:Callback_Get (callback_tag:name[]=@0067abe4, ret[E_CALLBACK_DATA:5]=@016c258c, expect[]=@00682630 "", bool:remote=false) at P:\Persoonlijk\Projects\Alternative Life RP\AL-RP Original\pawno\include\YSI_Coding\y_inline/impl.inc:408
[14:58:14] [debug] #2 0003c070 in mysql_tquery_inline (MySQL:handle=1, query[]=@0067ae50 "SELECT * FROM properties WHERE prLoadedAs IS NULL", callback_tag:inline_callback[]=@0067abe4, format[]=@0067af18 "") at P:\Persoonlijk\Projects\Alternative Life RP\AL-RP Original\pawno\include\a_mysql_yinline.inc:61
[14:58:14] [debug] #3 00077280 in LoadProperties () at P:\Persoonlijk\Projects\Alternative Life RP\AL-RP Original\gamemodes\alrp.pwn:2207
[14:58:14] [debug] #4 00068998 in ?? (... <2 arguments>) at P:\Persoonlijk\Projects\Alternative Life RP\AL-RP Original\gamemodes\alrp.pwn:1026
[14:58:14] [debug] #5 000688e8 in ?? (... <1 argument>) at P:\Persoonlijk\Projects\Alternative Life RP\AL-RP Original\gamemodes\alrp.pwn:1024
[14:58:14] [debug] #6 0003c684 in public __MysqlInlineProcessCallback (params_format[]=@0068262c "", cb_data[E_CALLBACK_DATA:5]=@00682618, cb_data_size=5) at P:\Persoonlijk\Projects\Alternative Life RP\AL-RP Original\pawno\include\a_mysql_yinline.inc:666
[14:58:14] [debug] Run time error 6: "Invalid instruction"
[14:58:14] [debug]  Unknown opcode 0x78 at address 0x00000000
[14:58:14] [debug] AMX backtrace:
[14:58:14] [debug] #0 0000006b in ?? (... <1 argument>) at <unknown file>:0
[14:58:14] [debug] #1 0003c684 in public __MysqlInlineProcessCallback (params_format[]=@0168262c "", cb_data[E_CALLBACK_DATA:5]=@01682618, cb_data_size=5) at P:\Persoonlijk\Projects\Alternative Life RP\AL-RP Original\pawno\include\a_mysql_yinline.inc:666
Here are the lines from my code that are mentioned above, the rest are publically available includes.
https://pastebin.com/9MBaJr2G

I have no idea what is causing this, and help would very much be appreciated. If any information is missing please say so.
Reply
#2

Bump, still need help.

EDIT: Things have become stranger, when restarting the server it continiously keeps giving the same errors upon restart, but if I restart BOTH my Apache and MySQL server, the issues seems to dissapear?
Reply
#3

The root problem is from here.

Alloc:Malloc_Allocate (size=2, bool:clear=true) at P:\Persoonlijk\Projects\Alternative Life RP\AL-RP Original\pawno\include\YSI_Coding\y_malloc/funcs.inc:704

Are you using Malloc in the callback of mysql query? Like in the function which gets executed once they threaded query is executed.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)