How to cause an access violation on Android

Hi,

What technique is used by Utils.ForceCrash(ForcedCrashCategory.AccessViolation) to cause a crash on Android?

I have been trying to read random non-null memory locations from a Unity project, but none of these reads has caused a crash on Android. On Windows, suchs reads crash as expected.

I am looking for a way to simulate the case where a program reads beyond its allocated memory.

raise(SIGSEGV);
1 Like