Enabling GL_DEBUG_OUTPUT_SYNCHRONOUS does not fix the issue - the core dump still occurs on a call that generates an OpenGL error. If it's of any help, I'm doing
glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS);
KHRDebug.glDebugMessageCallback(new KHRDebugCallback(new KHRDebugCallback.Handler() {
@Override
public void handleMessage(int source, int type, int id, int severity, String message) {
System.err.println("It works!");
}
}));
glEnable(GL_UNIFORM_BUFFER); // Offending call