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
On an Linux i386 Openjdk-19 this code crashes the VM on invokeN0
On Linux armhf Openjdk-11 and Openjdk-19 even invokeI0 crashes.
public static void main(String[] args) {
final CallContext CC = new CallContext(Type.SINT32, Type.VOID);
final Library LIB = Library.getDefault();
long address = LIB.getSymbolAddress("getpid");
System.out.println("JFFI Test call getpid() via invokeI0: ");
int result = (int) Invoker.getInstance().invokeI0(
CC,
address);
System.out.println("JFFI Test -> getpid (invokeI0): " + result);
System.out.println("JFFI Test call getpid() via invokeN0: ");
result = (int) Invoker.getInstance().invokeN0(
CC,
address);
System.out.println("JFFI Test -> getpid (invokeN0): " + result);
System.out.println("JFFI Test call getpid() via invokeL0: ");
result = (int) Invoker.getInstance().invokeL0(
CC,
address);
System.out.println("JFFI Test -> getpid (invokeL0): " + result);
}
The text was updated successfully, but these errors were encountered:
On an Linux i386 Openjdk-19 this code crashes the VM on invokeN0
On Linux armhf Openjdk-11 and Openjdk-19 even invokeI0 crashes.
The text was updated successfully, but these errors were encountered: