Demonstrates segfault if libEGL.so
does not exist. Creating a symlink pointing to libEGL.so.1
resolves this. Issue appears to be that libcuda
dlopens libEGL.so
instead of libEGL.so.1
.
To compile:
g++ egl-segfault.cpp -o egl-segfault -lEGL -I/usr/local/cuda-8.0/include/ -lcuda