Skip to main content
3 of 5
deleted 86 characters in body
Serverfrog
  • 255
  • 2
  • 11

Java (OpenJDK 9), 311 bytes

import sun.misc.Unsafe;import java.lang.reflect.Constructor;class Main{public static void main(String[] args) throws Exception{Constructor<Unsafe> unsafeConstructor=Unsafe.class.getDeclaredConstructor();unsafeConstructor.setAccessible(true);Unsafe unsafe=unsafeConstructor.newInstance();unsafe.getAddress(0);}}

Try it online!

Ungolfed:

import sun.misc.Unsafe;

import java.lang.reflect.Constructor;

public class SegFault {

    public static void main(String[] args) throws Exception {
        Constructor<Unsafe> unsafeConstructor = Unsafe.class.getDeclaredConstructor();
        unsafeConstructor.setAccessible(true);
        Unsafe unsafe = unsafeConstructor.newInstance();
        System.out.println(unsafe.getAddress(0));
    }
}
Serverfrog
  • 255
  • 2
  • 11