core dumped on Ubuntu 18.04
Opened this issue · 1 comments
mioux commented
Hello
After compiling GLMaze and running it, I have a core dump
Here are the compilation logs (in french) :
I'm running Ubuntu 18.04
user@host:~$ git clone https://github.com/ultitech/GLMaze.git
Clonage dans 'GLMaze'...
remote: Counting objects: 1155, done.
remote: Total 1155 (delta 0), reused 0 (delta 0), pack-reused 1155
Réception d'objets: 100% (1155/1155), 2.40 MiB | 2.45 MiB/s, fait.
Résolution des deltas: 100% (746/746), fait.
user@host:~$ cd GLMaze/
user@host:~/GLMaze (master)$ sudo apt install cmake
[sudo] Mot de passe de srumeu :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
cmake-data libjsoncpp1 librhash0 libuv1
Paquets suggérés :
cmake-doc ninja-build
Les NOUVEAUX paquets suivants seront installés :
cmake cmake-data libjsoncpp1 librhash0 libuv1
0 mis à jour, 5 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 4 685 ko dans les archives.
Après cette opération, 24,7 Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] y
Réception de:1 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 cmake-data all 3.10.2-1ubuntu2 [1 331 kB]
Réception de:2 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 libjsoncpp1 amd64 1.7.4-3 [73,6 kB]
Réception de:3 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 librhash0 amd64 1.3.6-2 [78,1 kB]
.....
Traitement des actions différées (« triggers ») pour man-db (2.8.3-2) ...
Paramétrage de libjsoncpp1:amd64 (1.7.4-3) ...
Paramétrage de cmake (3.10.2-1ubuntu2) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.27-3ubuntu1) ...
user@host:~/GLMaze (master)$ sudo apt-get install libsdl2-dev libfreeimage-dev libglew-dev
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
libasound2-dev libcapnp-0.6.1 libdbus-1-dev libegl1-mesa-dev libfreeimage3
libgles2-mesa-dev libglew2.0 libglib2.0-dev libglib2.0-dev-bin
libibus-1.0-dev libjxr0 libmirclient-dev libmirclient9 libmircommon-dev
libmircommon7 libmircookie-dev libmircookie2 libmircore-dev libmircore1
libmirprotobuf3 libprotobuf-dev libpulse-dev libsndio-dev libudev-dev
libwayland-bin libwayland-dev libxcursor-dev libxi-dev libxinerama-dev
libxkbcommon-dev libxrandr-dev libxrender-dev libxss-dev libxv-dev
x11proto-randr-dev x11proto-scrnsaver-dev x11proto-xinerama-dev
Paquets suggérés :
libasound2-doc glew-utils libglib2.0-doc
Les NOUVEAUX paquets suivants seront installés :
libasound2-dev libcapnp-0.6.1 libdbus-1-dev libegl1-mesa-dev
libfreeimage-dev libfreeimage3 libgles2-mesa-dev libglew-dev libglew2.0
libglib2.0-dev libglib2.0-dev-bin libibus-1.0-dev libjxr0 libmirclient-dev
libmirclient9 libmircommon-dev libmircommon7 libmircookie-dev libmircookie2
libmircore-dev libmircore1 libmirprotobuf3 libprotobuf-dev libpulse-dev
libsdl2-dev libsndio-dev libudev-dev libwayland-bin libwayland-dev
libxcursor-dev libxi-dev libxinerama-dev libxkbcommon-dev libxrandr-dev
libxrender-dev libxss-dev libxv-dev x11proto-randr-dev
x11proto-scrnsaver-dev x11proto-xinerama-dev
0 mis à jour, 40 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 6 368 ko dans les archives.
Après cette opération, 40,1 Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] y
Réception de:1 http://fr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libasound2-dev amd64 1.1.3-5ubuntu0.1 [123 kB]
Réception de:2 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 libcapnp-0.6.1 amd64 0.6.1-1ubuntu1 [658 kB]
Réception de:3 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 libdbus-1-dev amd64 1.12.2-1ubuntu1 [165 kB]
...
Paramétrage de libgles2-mesa-dev:amd64 (18.0.5-0ubuntu0~18.04.1) ...
Paramétrage de libmirclient9:amd64 (0.31.1-0ubuntu1) ...
Paramétrage de libmircommon-dev:amd64 (0.31.1-0ubuntu1) ...
Paramétrage de libmirclient-dev:amd64 (0.31.1-0ubuntu1) ...
Paramétrage de libsdl2-dev:amd64 (2.0.8+dfsg1-1ubuntu1.18.04.1) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.27-3ubuntu1) ...
user@host:~/GLMaze (master)$ mkdir build
user@host:~/GLMaze (master)$ cd build/
user@host:~/GLMaze/build (master)$ cmake ..
-- Found Git: /usr/bin/git (found version "2.17.1")
-- The C compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found SDL2: /usr/lib/x86_64-linux-gnu/libSDL2main.a;/usr/lib/x86_64-linux-gnu/libSDL2.so;-lpthread
-- Found GLEW: /usr/include
-- Using Dynamic FreeImage Lib
-- Found FREEIMAGE: /usr/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/local/AD/srumeu/GLMaze/build
user@host:~/GLMaze/build (master)$ make
Scanning dependencies of target GLMaze
[ 7%] Building C object CMakeFiles/GLMaze.dir/src/MathLib.c.o
[ 15%] Building C object CMakeFiles/GLMaze.dir/src/camera.c.o
[ 23%] Building C object CMakeFiles/GLMaze.dir/src/config.c.o
[ 30%] Building C object CMakeFiles/GLMaze.dir/src/drawer.c.o
[ 38%] Building C object CMakeFiles/GLMaze.dir/src/file.c.o
[ 46%] Building C object CMakeFiles/GLMaze.dir/src/main.c.o
[ 53%] Building C object CMakeFiles/GLMaze.dir/src/maze.c.o
[ 61%] Building C object CMakeFiles/GLMaze.dir/src/mesh.c.o
[ 69%] Building C object CMakeFiles/GLMaze.dir/src/noise.c.o
[ 76%] Building C object CMakeFiles/GLMaze.dir/src/scene.c.o
[ 84%] Building C object CMakeFiles/GLMaze.dir/src/walker.c.o
[ 92%] Building C object CMakeFiles/GLMaze.dir/src/window.c.o
[100%] Linking C executable GLMaze/GLMaze
[100%] Built target GLMaze
user@host:~/GLMaze/build (master)$ ./GLMaze/GLMaze
Erreur de segmentation (core dumped)
user@host:~/GLMaze/build (master)$ ldd GLMaze/GLMaze
linux-vdso.so.1 (0x00007fffdfd00000)
libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f1c28670000)
libSDL2-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libSDL2-2.0.so.0 (0x00007f1c28340000)
libGLEW.so.2.0 => /usr/lib/x86_64-linux-gnu/libGLEW.so.2.0 (0x00007f1c280ab000)
libfreeimage.so.3 => /usr/lib/x86_64-linux-gnu/libfreeimage.so.3 (0x00007f1c27dfb000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f1c27a5d000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1c2766c000)
libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f1c2743b000)
libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f1c27185000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f1c26f66000)
libasound.so.2 => /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007f1c26c60000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f1c26a5c000)
libpulse.so.0 => /usr/lib/x86_64-linux-gnu/libpulse.so.0 (0x00007f1c2680c000)
libsndio.so.6.1 => /usr/lib/x86_64-linux-gnu/libsndio.so.6.1 (0x00007f1c265fc000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f1c262c3000)
libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f1c260b1000)
libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007f1c25ea7000)
libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007f1c25ca4000)
libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007f1c25a94000)
libXrandr.so.2 => /usr/lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007f1c25889000)
libXss.so.1 => /usr/lib/x86_64-linux-gnu/libXss.so.1 (0x00007f1c25685000)
libXxf86vm.so.1 => /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1 (0x00007f1c2547f000)
libwayland-egl.so.1 => /usr/lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x00007f1c2527d000)
libwayland-client.so.0 => /usr/lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007f1c2506e000)
libwayland-cursor.so.0 => /usr/lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007f1c24e66000)
libxkbcommon.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007f1c24c27000)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f1c24a1f000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f1c24691000)
libjxrglue.so.0 => /usr/lib/x86_64-linux-gnu/libjxrglue.so.0 (0x00007f1c24471000)
libjpeg.so.8 => /usr/lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f1c24209000)
libopenjp2.so.7 => /usr/lib/x86_64-linux-gnu/libopenjp2.so.7 (0x00007f1c23fb3000)
libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f1c23d81000)
libraw.so.16 => /usr/lib/x86_64-linux-gnu/libraw.so.16 (0x00007f1c23aae000)
libtiff.so.5 => /usr/lib/x86_64-linux-gnu/libtiff.so.5 (0x00007f1c23837000)
libwebpmux.so.3 => /usr/lib/x86_64-linux-gnu/libwebpmux.so.3 (0x00007f1c2362d000)
libwebp.so.6 => /usr/lib/x86_64-linux-gnu/libwebp.so.6 (0x00007f1c233c4000)
libIlmImf-2_2.so.22 => /usr/lib/x86_64-linux-gnu/libIlmImf-2_2.so.22 (0x00007f1c22f01000)
libHalf.so.12 => /usr/lib/x86_64-linux-gnu/libHalf.so.12 (0x00007f1c22cbe000)
libIex-2_2.so.12 => /usr/lib/x86_64-linux-gnu/libIex-2_2.so.12 (0x00007f1c22aa0000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f1c22883000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f1c2266b000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1c28b0c000)
libpulsecommon-11.1.so => /usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecommon-11.1.so (0x00007f1c223ed000)
libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007f1c221a0000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f1c21f8b000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f1c21d63000)
libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f1c21b59000)
libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f1c21953000)
libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f1c2174b000)
libjpegxr.so.0 => /usr/lib/x86_64-linux-gnu/libjpegxr.so.0 (0x00007f1c21517000)
liblcms2.so.2 => /usr/lib/x86_64-linux-gnu/liblcms2.so.2 (0x00007f1c212bf000)
libgomp.so.1 => /usr/lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f1c2108f000)
liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f1c20e69000)
libjbig.so.0 => /usr/lib/x86_64-linux-gnu/libjbig.so.0 (0x00007f1c20c5b000)
libIlmThread-2_2.so.12 => /usr/lib/x86_64-linux-gnu/libIlmThread-2_2.so.12 (0x00007f1c20a54000)
libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007f1c207d0000)
libwrap.so.0 => /lib/x86_64-linux-gnu/libwrap.so.0 (0x00007f1c205c6000)
libsndfile.so.1 => /usr/lib/x86_64-linux-gnu/libsndfile.so.1 (0x00007f1c2034d000)
libasyncns.so.0 => /usr/lib/x86_64-linux-gnu/libasyncns.so.0 (0x00007f1c20147000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f1c1ff43000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f1c1fd3d000)
liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f1c1fb21000)
libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f1c1f806000)
libnsl.so.1 => /lib/x86_64-linux-gnu/libnsl.so.1 (0x00007f1c1f5ec000)
libFLAC.so.8 => /usr/lib/x86_64-linux-gnu/libFLAC.so.8 (0x00007f1c1f375000)
libogg.so.0 => /usr/lib/x86_64-linux-gnu/libogg.so.0 (0x00007f1c1f16c000)
libvorbis.so.0 => /usr/lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f1c1ef41000)
libvorbisenc.so.2 => /usr/lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f1c1ec98000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f1c1ea7d000)
libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f1c1e868000)
davidgreiner commented
The issue is caused by our file loading implementation on Linux. GLMaze has to be executed in the root directory ./GLMaze
in order for all files to be loaded correctly. Let me know if this fixes your problem.