SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 30/08/2018, 02:03 PM   #1
corne
Huge Clucker
 
corne's Avatar
 
Join Date: Jul 2010
Location: The Netherlands
Posts: 293
Reputation: 205
Default y_inline queries - Invalid memory access & Invalid instruction

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.
__________________
corne is offline   Reply With Quote
Old 01/09/2018, 10:11 AM   #2
corne
Huge Clucker
 
corne's Avatar
 
Join Date: Jul 2010
Location: The Netherlands
Posts: 293
Reputation: 205
Default Re: y_inline queries - Invalid memory access & Invalid instruction

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?
__________________
corne is offline   Reply With Quote
Old 14/09/2018, 04:53 PM   #3
ShihabSoft
Banned
 
Join Date: Jun 2016
Posts: 156
Reputation: 8
Default Re: y_inline queries - Invalid memory access & Invalid instruction

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.
ShihabSoft is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Invalid memory access. Dayrion Scripting Help 8 10/05/2018 08:53 AM
Invalid memory access MRM Scripting Help 0 30/01/2017 07:33 PM
Invalid memory access Julian12345 Server Support 8 04/04/2014 09:29 PM
Invalid memory access Littl3j0hNy Scripting Help 5 03/12/2011 03:51 PM
Invalid memory access wouter0100 Scripting Help 4 17/09/2011 11:28 PM


All times are GMT. The time now is 11:18 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.