You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting these access violations randomly while multi-threading. I first thought it was due to the use of a newer yara.dll version, however even when moving back to 4.1.1 (which comes pre-compiled with the NativePack) this problem reoccures randomly.
System.AccessViolationException
HResult=0x80004003
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=<Cannot evaluate the exception source>
StackTrace:
<Cannot evaluate the exception stack trace>
The file:
is not always the same
does not exceeds 256 length
is not locked nor in use by any other process
does not contain special characters
is on a normal disk
type of file is also random
details:
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
at dnYara.Interop.Methods.yr_rules_scan_file(IntPtr, System.String, Int32, dnYara.Interop.YR_CALLBACK_FUNC, IntPtr, Int32)
--------------------------------
at dnYara.Scanner.ScanFile(System.String, dnYara.CompiledRules, dnYara.Interop.YR_SCAN_FLAGS)
fyi, I do the following checks to make sure it couldn't be something on my end (hopefully):
i check if the file exist
i check if the scanner isn't null (though it be odd if it would be I suppose..)
check if the rules contain any rules
have it all in a try/catch (though this does not get caught by it.., since HandleProcessCorruptedStateExceptions isn't supported by .net core)
Am I doing something wrong here or is there something seriously broken?
The text was updated successfully, but these errors were encountered:
Thanks for the notification, but I ended up building my own wrapper and the
latest version of libyara since I came across multiple issues which are now
solved ☺️
I'm getting these access violations randomly while multi-threading. I first thought it was due to the use of a newer yara.dll version, however even when moving back to 4.1.1 (which comes pre-compiled with the NativePack) this problem reoccures randomly.
The file:
details:
fyi, I do the following checks to make sure it couldn't be something on my end (hopefully):
Am I doing something wrong here or is there something seriously broken?
The text was updated successfully, but these errors were encountered: