Simple tutorial SFML code crashes on Ubuntu 16.04 - c++

So I just installed manually SFML 2.4.2 library and wanted to compile example code from first tutorial which is:
#include <SFML/Graphics.hpp>
int main() {
sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
sf::CircleShape shape(100.f);
shape.setFillColor(sf::Color::Green);
while (window.isOpen()) {
sf::Event event;
while (window.pollEvent(event)) {
if (event.type == sf::Event::Closed)
window.close();
}
window.clear();
window.draw(shape);
window.display();
}
return 0;
}
Everything compiles with g++ 5.4.0 and clang++ 3.8.0 on Ubuntu 16.04, but when I'm trying to run the program, it shows a black window for 1 second and outputs this to the terminal:
*** Error in `./main': free(): invalid pointer: 0x000000000155cb08 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f2d572537e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x7fe0a)[0x7f2d5725be0a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f2d5725f98c]
./main[0x4015d0]
./main[0x401580]
./main[0x401492]
./main[0x4013d1]
./main[0x401368]
./main(_ZN2sf6StringD2Ev+0x15)[0x401325]
./main[0x4010a6]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f2d571fc830]
./main[0x400ed9]
======= Memory map: ========
00400000-00402000 r-xp 00000000 08:02 7080173 /home/octothorp/code/terrain_rendering/main
00601000-00602000 r--p 00001000 08:02 7080173 /home/octothorp/code/terrain_rendering/main
00602000-00603000 rw-p 00002000 08:02 7080173 /home/octothorp/code/terrain_rendering/main
01549000-0186b000 rw-p 00000000 00:00 0 [heap]
40144000-401e4000 rw-p 00000000 00:00 0
406bb000-406bd000 r-xs 00000000 08:02 262928 /tmp/.gljLFg1G (deleted)
4081a000-408ba000 rw-p 00000000 00:00 0
7f2d4c000000-7f2d4c021000 rw-p 00000000 00:00 0
7f2d4c021000-7f2d50000000 ---p 00000000 00:00 0
7f2d517fa000-7f2d518c3000 rw-p 00000000 00:00 0
7f2d518c3000-7f2d518c8000 r-xp 00000000 08:02 795718 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7f2d518c8000-7f2d51ac7000 ---p 00005000 08:02 795718 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7f2d51ac7000-7f2d51ac8000 r--p 00004000 08:02 795718 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7f2d51ac8000-7f2d51ac9000 rw-p 00005000 08:02 795718 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7f2d51ac9000-7f2d51ad2000 r-xp 00000000 08:02 795710 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f2d51ad2000-7f2d51cd1000 ---p 00009000 08:02 795710 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f2d51cd1000-7f2d51cd2000 r--p 00008000 08:02 795710 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f2d51cd2000-7f2d51cd3000 rw-p 00009000 08:02 795710 /usr/lib/x86_64-linux-gnu/libXcursor.so.1.0.2
7f2d51cf5000-7f2d51d75000 rw-s 1e3593000 00:06 591 /dev/nvidiactl
7f2d51d75000-7f2d51df5000 rw-s 1e3512000 00:06 591 /dev/nvidiactl
7f2d51df5000-7f2d51e75000 rw-s 1e348a000 00:06 591 /dev/nvidiactl
7f2d51e75000-7f2d51f75000 rw-s 1eb766000 00:06 591 /dev/nvidiactl
7f2d51f75000-7f2d51f88000 rw-s 1eb5f8000 00:06 591 /dev/nvidiactl
7f2d51f88000-7f2d51fa8000 rw-s c03c0000 00:06 592 /dev/nvidia0
7f2d51fa8000-7f2d51fe8000 rw-s 1eb6cb000 00:06 591 /dev/nvidiactl
7f2d51fe8000-7f2d52028000 rw-s 1eb574000 00:06 591 /dev/nvidiactl
7f2d52028000-7f2d521d9000 rw-p 00000000 00:00 0
7f2d521d9000-7f2d535d9000 r-xp 00000000 08:02 3030116 /usr/lib/nvidia-378/libnvidia-glcore.so.378.13
7f2d535d9000-7f2d535fa000 rwxp 01400000 08:02 3030116 /usr/lib/nvidia-378/libnvidia-glcore.so.378.13
7f2d535fa000-7f2d539cc000 r-xp 01421000 08:02 3030116 /usr/lib/nvidia-378/libnvidia-glcore.so.378.13
7f2d539cc000-7f2d53bcb000 ---p 017f3000 08:02 3030116 /usr/lib/nvidia-378/libnvidia-glcore.so.378.13
7f2d53bcb000-7f2d53fb7000 rw-p 017f2000 08:02 3030116 /usr/lib/nvidia-378/libnvidia-glcore.so.378.13
7f2d53fb7000-7f2d53fcf000 rw-p 00000000 00:00 0
7f2d53fcf000-7f2d53fd2000 r-xp 00000000 08:02 3030149 /usr/lib/nvidia-378/tls/libnvidia-tls.so.378.13
7f2d53fd2000-7f2d541d2000 ---p 00003000 08:02 3030149 /usr/lib/nvidia-378/tls/libnvidia-tls.so.378.13
7f2d541d2000-7f2d541d3000 rw-p 00003000 08:02 3030149 /usr/lib/nvidia-378/tls/libnvidia-tls.so.378.13
7f2d541d3000-7f2d5429d000 r-xp 00000000 08:02 3030139 /usr/lib/nvidia-378/libGLX_nvidia.so.378.13
7f2d5429d000-7f2d542d1000 rwxp 000ca000 08:02 3030139 /usr/lib/nvidia-378/libGLX_nvidia.so.378.13
7f2d542d1000-7f2d542e5000 r-xp 000fe000 08:02 3030139 /usr/lib/nvidia-378/libGLX_nvidia.so.378.13
7f2d542e5000-7f2d544e5000 ---p 00112000 08:02 3030139 /usr/lib/nvidia-378/libGLX_nvidia.so.378.13
7f2d544e5000-7f2d5450d000 rw-p 00112000 08:02 3030139 /usr/lib/nvidia-378/libGLX_nvidia.so.378.13
7f2d5450d000-7f2d54514000 rw-p 00000000 00:00 0
7f2d54514000-7f2d54519000 r-xp 00000000 08:02 795714 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f2d54519000-7f2d54718000 ---p 00005000 08:02 795714 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f2d54718000-7f2d54719000 r--p 00004000 08:02 795714 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f2d54719000-7f2d5471a000 rw-p 00005000 08:02 795714 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7f2d5471a000-7f2d5471c000 r-xp 00000000 08:02 795703 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f2d5471c000-7f2d5491c000 ---p 00002000 08:02 795703 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f2d5491c000-7f2d5491d000 r--p 00002000 08:02 795703 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f2d5491d000-7f2d5491e000 rw-p 00003000 08:02 795703 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7f2d5491e000-7f2d54927000 r-xp 00000000 08:02 795736 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f2d54927000-7f2d54b26000 ---p 00009000 08:02 795736 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f2d54b26000-7f2d54b27000 r--p 00008000 08:02 795736 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f2d54b27000-7f2d54b28000 rw-p 00009000 08:02 795736 /usr/lib/x86_64-linux-gnu/libXrender.so.1.3.0
7f2d54b28000-7f2d54b4c000 r-xp 00000000 08:02 2101871 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
7f2d54b4c000-7f2d54d4b000 ---p 00024000 08:02 2101871 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
7f2d54d4b000-7f2d54d4c000 r--p 00023000 08:02 2101871 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
7f2d54d4c000-7f2d54d4d000 rw-p 00024000 08:02 2101871 /lib/x86_64-linux-gnu/libpng12.so.0.54.0
7f2d54d4d000-7f2d54d66000 r-xp 00000000 08:02 2101920 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f2d54d66000-7f2d54f65000 ---p 00019000 08:02 2101920 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f2d54f65000-7f2d54f66000 r--p 00018000 08:02 2101920 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f2d54f66000-7f2d54f67000 rw-p 00019000 08:02 2101920 /lib/x86_64-linux-gnu/libz.so.1.2.8
7f2d54f67000-7f2d54f88000 r-xp 00000000 08:02 797052 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f2d54f88000-7f2d55187000 ---p 00021000 08:02 797052 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f2d55187000-7f2d55188000 r--p 00020000 08:02 797052 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f2d55188000-7f2d55189000 rw-p 00021000 08:02 797052 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7f2d55189000-7f2d5518d000 r-xp 00000000 08:02 2097793 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f2d5518d000-7f2d5538c000 ---p 00004000 08:02 2097793 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f2d5538c000-7f2d5538d000 r--p 00003000 08:02 2097793 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f2d5538d000-7f2d5538e000 rw-p 00004000 08:02 2097793 /lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f2d5538e000-7f2d553dc000 r-xp 00000000 08:02 3030118 /usr/lib/nvidia-378/libGLdispatch.so.0
7f2d553dc000-7f2d5540e000 r-xp 0004e000 08:02 3030118 /usr/lib/nvidia-378/libGLdispatch.so.0
7f2d5540e000-7f2d55448000 r-xp 00080000 08:02 3030118 /usr/lib/nvidia-378/libGLdispatch.so.0
7f2d55448000-7f2d55648000 ---p 000ba000 08:02 3030118 /usr/lib/nvidia-378/libGLdispatch.so.0
7f2d55648000-7f2d55657000 rw-p 000ba000 08:02 3030118 /usr/lib/nvidia-378/libGLdispatch.so.0
7f2d55657000-7f2d55677000 rw-p 00000000 00:00 0
7f2d55677000-7f2d55686000 r-xp 00000000 08:02 3030153 /usr/lib/nvidia-378/libGLX.so.0
7f2d55686000-7f2d55886000 ---p 0000f000 08:02 3030153 /usr/lib/nvidia-378/libGLX.so.0
7f2d55886000-7f2d55887000 rw-p 0000f000 08:02 3030153 /usr/lib/nvidia-378/libGLX.so.0
7f2d55887000-7f2d558a7000 rw-p 00000000 00:00 0
7f2d558a7000-7f2d558aa000 r-xp 00000000 08:02 2100368 /lib/x86_64-linux-gnu/libdl-2.23.so
7f2d558aa000-7f2d55aa9000 ---p 00003000 08:02 2100368 /lib/x86_64-linux-gnu/libdl-2.23.so
7f2d55aa9000-7f2d55aaa000 r--p 00002000 08:02 2100368 /lib/x86_64-linux-gnu/libdl-2.23.so
7f2d55aaa000-7f2d55aab000 rw-p 00003000 08:02 2100368 /lib/x86_64-linux-gnu/libdl-2.23.so
7f2d55aab000-7f2d55ab5000 r-xp 00000000 08:02 795734 /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
7f2d55ab5000-7f2d55cb4000 ---p 0000a000 08:02 795734 /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
7f2d55cb4000-7f2d55cb5000 r--p 00009000 08:02 795734 /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
7f2d55cb5000-7f2d55cb6000 rw-p 0000a000 08:02 795734 /usr/lib/x86_64-linux-gnu/libXrandr.so.2.2.0
7f2d55cb6000-7f2d55cbd000 r-xp 00000000 08:02 2100360 /lib/x86_64-linux-gnu/librt-2.23.so
7f2d55cbd000-7f2d55ebc000 ---p 00007000 08:02 2100360 /lib/x86_64-linux-gnu/librt-2.23.so
7f2d55ebc000-7f2d55ebd000 r--p 00006000 08:02 2100360 /lib/x86_64-linux-gnu/librt-2.23.so
7f2d55ebd000-7f2d55ebe000 rw-p 00007000 08:02 2100360 /lib/x86_64-linux-gnu/librt-2.23.so
7f2d55ebe000-7f2d55ed6000 r-xp 00000000 08:02 2100382 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f2d55ed6000-7f2d560d5000 ---p 00018000 08:02 2100382 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f2d560d5000-7f2d560d6000 r--p 00017000 08:02 2100382 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f2d560d6000-7f2d560d7000 rw-p 00018000 08:02 2100382 /lib/x86_64-linux-gnu/libpthread-2.23.so
7f2d560d7000-7f2d560db000 rw-p 00000000 00:00 0
7f2d560db000-7f2d56132000 r-xp 00000000 08:02 796440 /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2
7f2d56132000-7f2d56332000 ---p 00057000 08:02 796440 /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2
7f2d56332000-7f2d56333000 r--p 00057000 08:02 796440 /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2
7f2d56333000-7f2d56334000 rw-p 00058000 08:02 796440 /usr/lib/x86_64-linux-gnu/libjpeg.so.8.0.2
7f2d56334000-7f2d563d8000 r-xp 00000000 08:02 796120 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f2d563d8000-7f2d565d7000 ---p 000a4000 08:02 796120 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f2d565d7000-7f2d565dd000 r--p 000a3000 08:02 796120 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f2d565dd000-7f2d565de000 rw-p 000a9000 08:02 796120 /usr/lib/x86_64-linux-gnu/libfreetype.so.6.12.1
7f2d565de000-7f2d565ef000 r-xp 00000000 08:02 795716 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f2d565ef000-7f2d567ee000 ---p 00011000 08:02 795716 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f2d567ee000-7f2d567ef000 r--p 00010000 08:02 795716 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f2d567ef000-7f2d567f0000 rw-p 00011000 08:02 795716 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7f2d567f0000-7f2d56925000 r-xp 00000000 08:02 795699 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f2d56925000-7f2d56b25000 ---p 00135000 08:02 795699 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f2d56b25000-7f2d56b26000 r--p 00135000 08:02 795699 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f2d56b26000-7f2d56b2a000 rw-p 00136000 08:02 795699 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7f2d56b2a000-7f2d56b40000 r-xp 00000000 08:02 795623 /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7f2d56b40000-7f2d56d3f000 ---p 00016000 08:02 795623 /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7f2d56d3f000-7f2d56d40000 r--p 00015000 08:02 795623 /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7f2d56d40000-7f2d56d41000 rw-p 00016000 08:02 795623 /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7f2d56d41000-7f2d56d44000 rw-p 00000000 00:00 0
7f2d56d44000-7f2d56d4b000 r-xp 00000000 08:02 795695 /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7f2d56d4b000-7f2d56f4a000 ---p 00007000 08:02 795695 /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7f2d56f4a000-7f2d56f4b000 r--p 00006000 08:02 795695 /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7f2d56f4b000-7f2d56f4c000 rw-p 00007000 08:02 795695 /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7f2d56f4c000-7f2d56f7e000 r-xp 00000000 08:02 3030150 /usr/lib/nvidia-378/libGL.so.1.0.0
7f2d56f7e000-7f2d56fb0000 r-xp 00032000 08:02 3030150 /usr/lib/nvidia-378/libGL.so.1.0.0
7f2d56fb0000-7f2d56fda000 r-xp 00064000 08:02 3030150 /usr/lib/nvidia-378/libGL.so.1.0.0
7f2d56fda000-7f2d571da000 ---p 0008e000 08:02 3030150 /usr/lib/nvidia-378/libGL.so.1.0.0
7f2d571da000-7f2d571db000 rw-p 0008e000 08:02 3030150 /usr/lib/nvidia-378/libGL.so.1.0.0
7f2d571db000-7f2d571dc000 rw-p 00000000 00:00 0
7f2d571dc000-7f2d5739b000 r-xp 00000000 08:02 2100370 /lib/x86_64-linux-gnu/libc-2.23.so
7f2d5739b000-7f2d5759b000 ---p 001bf000 08:02 2100370 /lib/x86_64-linux-gnu/libc-2.23.so
7f2d5759b000-7f2d5759f000 r--p 001bf000 08:02 2100370 /lib/x86_64-linux-gnu/libc-2.23.so
7f2d5759f000-7f2d575a1000 rw-p 001c3000 08:02 2100370 /lib/x86_64-linux-gnu/libc-2.23.so
7f2d575a1000-7f2d575a5000 rw-p 00000000 00:00 0
7f2d575a5000-7f2d575bb000 r-xp 00000000 08:02 2101769 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f2d575bb000-7f2d577ba000 ---p 00016000 08:02 2101769 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f2d577ba000-7f2d577bb000 rw-p 00015000 08:02 2101769 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f2d577bb000-7f2d578c3000 r-xp 00000000 08:02 2100380 /lib/x86_64-linux-gnu/libm-2.23.so
7f2d578c3000-7f2d57ac2000 ---p 00108000 08:02 2100380 /lib/x86_64-linux-gnu/libm-2.23.so
7f2d57ac2000-7f2d57ac3000 r--p 00107000 08:02 2100380 /lib/x86_64-linux-gnu/libm-2.23.so
7f2d57ac3000-7f2d57ac4000 rw-p 00108000 08:02 2100380 /lib/x86_64-linux-gnu/libm-2.23.so
7f2d57ac4000-7f2d57c36000 r-xp 00000000 08:02 787980 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f2d57c36000-7f2d57e36000 ---p 00172000 08:02 787980 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f2d57e36000-7f2d57e40000 r--p 00172000 08:02 787980 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f2d57e40000-7f2d57e42000 rw-p 0017c000 08:02 787980 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f2d57e42000-7f2d57e46000 rw-p 00000000 00:00 0
7f2d57e46000-7f2d57e53000 r-xp 00000000 08:02 3015624 /usr/lib/libsfml-system.so.2.4.2
7f2d57e53000-7f2d58052000 ---p 0000d000 08:02 3015624 /usr/lib/libsfml-system.so.2.4.2
7f2d58052000-7f2d58053000 rw-p 0000c000 08:02 3015624 /usr/lib/libsfml-system.so.2.4.2
7f2d58053000-7f2d58075000 r-xp 00000000 08:02 3015627 /usr/lib/libsfml-window.so.2.4.2
7f2d58075000-7f2d58275000 ---p 00022000 08:02 3015627 /usr/lib/libsfml-window.so.2.4.2
7f2d58275000-7f2d58276000 rw-p 00022000 08:02 3015627 /usr/lib/libsfml-window.so.2.4.2
7f2d58276000-7f2d58277000 rw-p 00000000 00:00 0
7f2d58277000-7f2d582c4000 r-xp 00000000 08:02 3015633 /usr/lib/libsfml-graphics.so.2.4.2
7f2d582c4000-7f2d584c3000 ---p 0004d000 08:02 3015633 /usr/lib/libsfml-graphics.so.2.4.2
7f2d584c3000-7f2d584c5000 rw-p 0004c000 08:02 3015633 /usr/lib/libsfml-graphics.so.2.4.2
7f2d584c5000-7f2d584c6000 rw-p 00000000 00:00 0
7f2d584c6000-7f2d584d6000 r-xp 00000000 08:02 2100348 /lib/x86_64-linux-gnu/ld-2.23.so
7f2d584d6000-7f2d584d7000 r-xp 00010000 08:02 2100348 /lib/x86_64-linux-gnu/ld-2.23.so
7f2d584d7000-7f2d584ec000 r-xp 00011000 08:02 2100348 /lib/x86_64-linux-gnu/ld-2.23.so
7f2d584f2000-7f2d58512000 rw-s 1eb561000 00:06 591 /dev/nvidiactl
7f2d58512000-7f2d58532000 rw-s 1eb65b000 00:06 591 /dev/nvidiactl
7f2d58532000-7f2d58572000 rw-s a20b8000 00:06 591 /dev/nvidiactl
7f2d58572000-7f2d58592000 rw-s a214e000 00:06 591 /dev/nvidiactl
7f2d58592000-7f2d58697000 rw-s 0ade7000 00:06 591 /dev/nvidiactl
7f2d58697000-7f2d586a1000 rw-p 00000000 00:00 0
7f2d586a1000-7f2d586bf000 r-xp 00000000 08:02 2097534 /lib/x86_64-linux-gnu/libudev.so.1.6.4
7f2d586bf000-7f2d586c0000 r--p 0001d000 08:02 2097534 /lib/x86_64-linux-gnu/libudev.so.1.6.4
7f2d586c0000-7f2d586c1000 rw-p 0001e000 08:02 2097534 /lib/x86_64-linux-gnu/libudev.so.1.6.4
7f2d586c1000-7f2d586c7000 rw-p 00000000 00:00 0
7f2d586d1000-7f2d586d2000 rw-p 00000000 00:00 0
7f2d586d2000-7f2d586d4000 rw-s 00000000 08:02 262928 /tmp/.gljLFg1G (deleted)
7f2d586d4000-7f2d586d5000 rw-s 1eb5f7000 00:06 591 /dev/nvidiactl
7f2d586d5000-7f2d586d9000 rw-s 1eb5f3000 00:06 591 /dev/nvidiactl
7f2d586d9000-7f2d586da000 rw-s cfde6000 00:06 592 /dev/nvidia0
7f2d586da000-7f2d586e5000 rw-p 00000000 00:00 0
7f2d586e5000-7f2d586e6000 rw-s cfde6000 00:06 592 /dev/nvidia0
7f2d586e6000-7f2d586e7000 rw-s cfde6000 00:06 592 /dev/nvidia0
7f2d586e7000-7f2d586e8000 rw-s 343e7000 00:06 591 /dev/nvidiactl
7f2d586e8000-7f2d586e9000 rw-s fa060000 00:06 592 /dev/nvidia0
7f2d586e9000-7f2d586eb000 rw-p 00000000 00:00 0
7f2d586eb000-7f2d586ec000 r--p 00025000 08:02 2100348 /lib/x86_64-linux-gnu/ld-2.23.so
7f2d586ec000-7f2d586ed000 rw-p 00026000 08:02 2100348 /lib/x86_64-linux-gnu/ld-2.23.so
7f2d586ed000-7f2d586ee000 rw-p 00000000 00:00 0
7ffd483cb000-7ffd483ec000 rw-p 00000000 00:00 0 [stack]
7ffd483f8000-7ffd483fa000 r--p 00000000 00:00 0 [vvar]
7ffd483fa000-7ffd483fc000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)
I tried installing the newest nvidia drivers and restarting the system, no luck with this one. Do I lack some dependencies?
EDIT:
I tried debugging with GDB and this is the backtrace I got:
Program received signal SIGABRT, Aborted.
0x00007ffff6dc2428 in __GI_raise (sig=sig#entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
54 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0 0x00007ffff6dc2428 in __GI_raise (sig=sig#entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff6dc402a in __GI_abort () at abort.c:89
#2 0x00007ffff6e047ea in __libc_message (do_abort=do_abort#entry=2, fmt=fmt#entry=0x7ffff6f1d2e0 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3 0x00007ffff6e0ce0a in malloc_printerr (ar_ptr=<optimised out>, ptr=<optimised out>, str=0x7ffff6f1a0b2 "free(): invalid pointer", action=3) at malloc.c:5004
#4 _int_free (av=<optimised out>, p=<optimised out>, have_lock=0) at malloc.c:3865
#5 0x00007ffff6e1098c in __GI___libc_free (mem=<optimised out>) at malloc.c:2966
#6 0x0000000000401750 in __gnu_cxx::new_allocator<unsigned int>::deallocate(unsigned int*, unsigned long) ()
#7 0x000000000040171f in __gnu_cxx::__alloc_traits<std::allocator<unsigned int> >::deallocate(std::allocator<unsigned int>&, unsigned int*, unsigned long) ()
#8 0x00000000004016ae in std::__cxx11::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >::_M_destroy(unsigned long) ()
#9 0x0000000000401624 in std::__cxx11::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >::_M_dispose() ()
#10 0x00000000004015a3 in std::__cxx11::basic_string<unsigned int, std::char_traits<unsigned int>, std::allocator<unsigned int> >::~basic_string() ()
#11 0x000000000040156a in sf::String::~String() ()
#12 0x00007ffff7934f27 in (anonymous namespace)::ewmhSupported () at /usr/local/share/buildslave/debian-gcc-64/build/src/SFML/Window/Unix/WindowImplX11.cpp:253
#13 0x00007ffff7935da9 in sf::priv::WindowImplX11::WindowImplX11 (this=0x83c480, mode=..., title=..., style=7, settings=...)
at /usr/local/share/buildslave/debian-gcc-64/build/src/SFML/Window/Unix/WindowImplX11.cpp:451
#14 0x00007ffff792f229 in sf::priv::WindowImpl::create (mode=..., title=..., style=7, settings=...) at /usr/local/share/buildslave/debian-gcc-64/build/src/SFML/Window/WindowImpl.cpp:71
#15 0x00007ffff792e7b3 in sf::Window::create (this=0x7fffffffdc20, mode=..., title=..., style=7, settings=...) at /usr/local/share/buildslave/debian-gcc-64/build/src/SFML/Window/Window.cpp:124
#16 0x00007ffff7ba796b in sf::RenderWindow::RenderWindow (this=0x7fffffffdc20, mode=..., title=..., style=7, settings=...)
at /usr/local/share/buildslave/debian-gcc-64/build/src/SFML/Graphics/RenderWindow.cpp:45
#17 0x000000000040131e in main ()

So the answer should probably be: build SFML 2.4.2 yourself. But using my self-built SFML also produces errors while compiling simple SFML example code, this time during linking stage due to some known bug in Ubuntu. There's a simple fix though:
Download the SFML source code. Unpack it. Navigate to the root directory of the unzipped source code.
vim ./SFML/src/SFML/Graphics/CMakeLists.txt
Find the line on about line 149 -ish... yours may be different, since this is line 149 AFTER I made changes... which reads:
149 # ImageLoader.cpp must be compiled with the -fno-strict-aliasing
150 # when gcc is used; otherwise saving PNGs may crash in stb_image_write
151 if(SFML_COMPILER_GCC)
152 set_source_files_properties(${SRCROOT}/ImageLoader.cpp PROPERTIES COMPILE_FLAGS -fno-strict-aliasing)
153 endif()
Add the following lines BELOW
156 if(SFML_COMPILER_GCC AND BUILD_SHARED_LIBS)
157 message(WARNING "Applying workaround for https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1568899")
158 list(APPEND GRAPHICS_EXT_LIBS "-lgcc_s -lgcc")
159 endif()
Then cd to root dir of unpacked source
cmake .
make all
sudo make install
which I found on the SFML forums: http://en.sfml-dev.org/forums/index.php?topic=20638.0.
There's also SFML 2.3 if you don't care about getting the latest build in Ubuntu repositories which you can install with apt-get.

Related

Why am I getting an invalid pointer error when using MySQL C++ Connector tutorial code?

I'm trying to execute a very basic C++ program that interacts with MySQL. I implemented the very beginning of the tutorial for MySQL Connector/C++, but I keep getting a segfault when I try to execute that code. Here is the code that I'm trying to execute:
try
{
sql::mysql::MySQL_Driver *driver = NULL;
sql::Connection *conn = NULL;
driver = sql::mysql::get_mysql_driver_instance();
if (driver != NULL)
{
conn = driver->connect("127.0.0.1:3306", "root", "root");
cout << "Test" << endl;
}
delete conn;
conn = NULL;
}
When I execute this code, "Test" gets printed, but I get the following error:
*** Error in `./test': free(): invalid pointer: 0x00007f0a9a292158 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f0a999a87e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x8037a)[0x7f0a999b137a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f0a999b553c]
./test(_ZN3sql9SQLStringD1Ev+0x18)[0x401296]
/lib/x86_64-linux-gnu/libc.so.6(+0x39ff8)[0x7f0a9996aff8]
/lib/x86_64-linux-gnu/libc.so.6(+0x3a045)[0x7f0a9996b045]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf7)[0x7f0a99951837]
./test[0x400e79]
======= Memory map: ========
00400000-00402000 r-xp 00000000 08:01 6167619
/home/lichtsb1/local/src/ddsWork/mysqlTest/test
00601000-00602000 r--p 00001000 08:01 6167619
/home/lichtsb1/local/src/ddsWork/mysqlTest/test
00602000-00603000 rw-p 00002000 08:01 6167619
/home/lichtsb1/local/src/ddsWork/mysqlTest/test
02357000-023aa000 rw-p 00000000 00:00 0
[heap]
7f0a94000000-7f0a94021000 rw-p 00000000 00:00 0
7f0a94021000-7f0a98000000 ---p 00000000 00:00 0
7f0a989a8000-7f0a98ab0000 r-xp 00000000 08:01 43253857
/lib/x86_64-linux-gnu/libm-2.23.so
7f0a98ab0000-7f0a98caf000 ---p 00108000 08:01 43253857
/lib/x86_64-linux-gnu/libm-2.23.so
7f0a98caf000-7f0a98cb0000 r--p 00107000 08:01 43253857
/lib/x86_64-linux-gnu/libm-2.23.so
7f0a98cb0000-7f0a98cb1000 rw-p 00108000 08:01 43253857
/lib/x86_64-linux-gnu/libm-2.23.so
7f0a98cb1000-7f0a98cb4000 r-xp 00000000 08:01 43254080
/lib/x86_64-linux-gnu/libdl-2.23.so
7f0a98cb4000-7f0a98eb3000 ---p 00003000 08:01 43254080
/lib/x86_64-linux-gnu/libdl-2.23.so
7f0a98eb3000-7f0a98eb4000 r--p 00002000 08:01 43254080
/lib/x86_64-linux-gnu/libdl-2.23.so
7f0a98eb4000-7f0a98eb5000 rw-p 00003000 08:01 43254080
/lib/x86_64-linux-gnu/libdl-2.23.so
7f0a98eb5000-7f0a99074000 r-xp 00000000 08:01 7733609
/home/lichtsb1/local/src/ddsWork/mysqlTest/mysql-connector-c++-8.0.13-linux-glibc2.12-x86-64bit/lib64/libcrypto.so.1.0.0
7f0a99074000-7f0a99273000 ---p 001bf000 08:01 7733609
/home/lichtsb1/local/src/ddsWork/mysqlTest/mysql-connector-c++-8.0.13-linux-glibc2.12-x86-64bit/lib64/libcrypto.so.1.0.0
7f0a99273000-7f0a9929a000 rw-p 001be000 08:01 7733609
/home/lichtsb1/local/src/ddsWork/mysqlTest/mysql-connector-c++-8.0.13-linux-glibc2.12-x86-64bit/lib64/libcrypto.so.1.0.0
7f0a9929a000-7f0a9929d000 rw-p 00000000 00:00 0
7f0a9929d000-7f0a99302000 r-xp 00000000 08:01 7733606
/home/lichtsb1/local/src/ddsWork/mysqlTest/mysql-connector-c++-8.0.13-linux-glibc2.12-x86-64bit/lib64/libssl.so.1.0.0
7f0a99302000-7f0a99502000 ---p 00065000 08:01 7733606
/home/lichtsb1/local/src/ddsWork/mysqlTest/mysql-connector-c++-8.0.13-linux-glibc2.12-x86-64bit/lib64/libssl.so.1.0.0
7f0a99502000-7f0a9950c000 rw-p 00065000 08:01 7733606
/home/lichtsb1/local/src/ddsWork/mysqlTest/mysql-connector-c++-8.0.13-linux-glibc2.12-x86-64bit/lib64/libssl.so.1.0.0
7f0a9950c000-7f0a99513000 r-xp 00000000 08:01 43254289
/lib/x86_64-linux-gnu/librt-2.23.so
7f0a99513000-7f0a99712000 ---p 00007000 08:01 43254289
/lib/x86_64-linux-gnu/librt-2.23.so
7f0a99712000-7f0a99713000 r--p 00006000 08:01 43254289
/lib/x86_64-linux-gnu/librt-2.23.so
7f0a99713000-7f0a99714000 rw-p 00007000 08:01 43254289
/lib/x86_64-linux-gnu/librt-2.23.so
7f0a99714000-7f0a9972c000 r-xp 00000000 08:01 43253992
/lib/x86_64-linux-gnu/libpthread-2.23.so
7f0a9972c000-7f0a9992b000 ---p 00018000 08:01 43253992
/lib/x86_64-linux-gnu/libpthread-2.23.so
7f0a9992b000-7f0a9992c000 r--p 00017000 08:01 43253992
/lib/x86_64-linux-gnu/libpthread-2.23.so
7f0a9992c000-7f0a9992d000 rw-p 00018000 08:01 43253992
/lib/x86_64-linux-gnu/libpthread-2.23.so
7f0a9992d000-7f0a99931000 rw-p 00000000 00:00 0
7f0a99931000-7f0a99af1000 r-xp 00000000 08:01 43254051
/lib/x86_64-linux-gnu/libc-2.23.so
7f0a99af1000-7f0a99cf1000 ---p 001c0000 08:01 43254051
/lib/x86_64-linux-gnu/libc-2.23.so
7f0a99cf1000-7f0a99cf5000 r--p 001c0000 08:01 43254051
/lib/x86_64-linux-gnu/libc-2.23.so
7f0a99cf5000-7f0a99cf7000 rw-p 001c4000 08:01 43254051
/lib/x86_64-linux-gnu/libc-2.23.so
7f0a99cf7000-7f0a99cfb000 rw-p 00000000 00:00 0
7f0a99cfb000-7f0a99d11000 r-xp 00000000 08:01 43254905
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f0a99d11000-7f0a99f10000 ---p 00016000 08:01 43254905
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f0a99f10000-7f0a99f11000 rw-p 00015000 08:01 43254905
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f0a99f11000-7f0a9a083000 r-xp 00000000 08:01 20972156
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f0a9a083000-7f0a9a283000 ---p 00172000 08:01 20972156
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f0a9a283000-7f0a9a28d000 r--p 00172000 08:01 20972156
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f0a9a28d000-7f0a9a28f000 rw-p 0017c000 08:01 20972156
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21
7f0a9a28f000-7f0a9a293000 rw-p 00000000 00:00 0
7f0a9a293000-7f0a9a6ed000 r-xp 00000000 08:01 7733614
/home/lichtsb1/local/src/ddsWork/mysqlTest/mysql-connector-c++-8.0.13-linux-glibc2.12-x86-64bit/lib64/libmysqlcppconn.so.7.8.0.13
7f0a9a6ed000-7f0a9a8ed000 ---p 0045a000 08:01 7733614
/home/lichtsb1/local/src/ddsWork/mysqlTest/mysql-connector-c++-8.0.13-linux-glibc2.12-x86-64bit/lib64/libmysqlcppconn.so.7.8.0.13
7f0a9a8ed000-7f0a9a8f8000 r--p 0045a000 08:01 7733614
/home/lichtsb1/local/src/ddsWork/mysqlTest/mysql-connector-c++-8.0.13-linux-glibc2.12-x86-64bit/lib64/libmysqlcppconn.so.7.8.0.13
7f0a9a8f8000-7f0a9aab7000 rw-p 00465000 08:01 7733614
/home/lichtsb1/local/src/ddsWork/mysqlTest/mysql-connector-c++-8.0.13-linux-glibc2.12-x86-64bit/lib64/libmysqlcppconn.so.7.8.0.13
7f0a9aab7000-7f0a9aabd000 rw-p 00000000 00:00 0
7f0a9aabd000-7f0a9aae3000 r-xp 00000000 08:01 43253979
/lib/x86_64-linux-gnu/ld-2.23.so
7f0a9ac7b000-7f0a9acb7000 r--s 00000000 08:01 16523805
/var/cache/nscd/services
7f0a9acb7000-7f0a9acbe000 rw-p 00000000 00:00 0
7f0a9ace0000-7f0a9ace2000 rw-p 00000000 00:00 0
7f0a9ace2000-7f0a9ace3000 r--p 00025000 08:01 43253979
/lib/x86_64-linux-gnu/ld-2.23.so
7f0a9ace3000-7f0a9ace4000 rw-p 00026000 08:01 43253979
/lib/x86_64-linux-gnu/ld-2.23.so
7f0a9ace4000-7f0a9ace5000 rw-p 00000000 00:00 0
7ffe3b05c000-7ffe3b07e000 rw-p 00000000 00:00 0
[stack]
7ffe3b0dd000-7ffe3b0e0000 r--p 00000000 00:00 0
[vvar]
7ffe3b0e0000-7ffe3b0e2000 r-xp 00000000 00:00 0
[vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
[vsyscall]
Aborted (core dumped)
This is so basic - what am I doing wrong?
Thank you very much for any help.

how to trace buffer overflow detected-ns terminated

I was working on aqua-sim that is based on ns2 for my ubuntu and i'm getting a buffer overflow error and i can't figure out how to trace this kind of error.
i tried to debug using gdb but with no luck as i don't know how to trace the error, can someone please let me know where should i look based on the following error segment:
num_nodes is set 10
INITIALIZE THE LIST xListHead
Starting Simulation...
GOD: the old file name istest.data
GOD: the new file name isunderwater.data
*** buffer overflow detected ***: ns terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f57d8e347e5]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x7f57d8ed611c]
/lib/x86_64-linux-gnu/libc.so.6(+0x117120)[0x7f57d8ed4120]
/lib/x86_64-linux-gnu/libc.so.6(+0x116689)[0x7f57d8ed3689]
/lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0x80)[0x7f57d8e386b0]
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0xc90)[0x7f57d8e0ae00]
/lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x84)[0x7f57d8ed3714]
/lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f57d8ed366d]
ns[0x57ea03]
ns[0x57eb44]
ns[0x415367]
ns[0x4162e6]
ns[0x416d8c]
ns[0x5b3894]
ns[0x5b85d5]
ns[0x5bdf12]
ns[0x5c0372]
ns[0x5e7de9]
ns[0x5ec6c0]
ns[0x5e7e99]
ns[0x5ec6c0]
ns[0x613615]
ns[0x613803]
ns[0x5b8705]
ns[0x5bdf12]
ns[0x5c0372]
ns[0x5e7de9]
ns[0x5ec6c0]
ns[0x613615]
ns[0x613803]
ns[0x5b85d5]
ns[0x5bdf12]
ns[0x5c0372]
ns[0x5c1c37]
ns[0x603321]
ns[0x606936]
ns[0x405abe]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7f57d8ddd830]
ns[0x410f59]
======= Memory map: ========
00400000-00766000 r-xp 00000000 08:06 2491295 /home/me/Aqua-Sim/Aqua-Sim-1.0/ns-2.30/ns
00965000-00967000 r--p 00365000 08:06 2491295 /home/me/Aqua-Sim/Aqua-Sim-1.0/ns-2.30/ns
00967000-009f2000 rw-p 00367000 08:06 2491295 /home/me/Aqua-Sim/Aqua-Sim-1.0/ns-2.30/ns
009f2000-00a00000 rw-p 00000000 00:00 0
00c2e000-01085000 rw-p 00000000 00:00 0 [heap]
7f57d8ad0000-7f57d8dbd000 r--p 00000000 08:06 2627421 /usr/lib/locale/locale-archive
7f57d8dbd000-7f57d8f7d000 r-xp 00000000 08:06 1179887 /lib/x86_64-linux-gnu/libc-2.23.so
7f57d8f7d000-7f57d917d000 ---p 001c0000 08:06 1179887 /lib/x86_64-linux-gnu/libc-2.23.so
7f57d917d000-7f57d9181000 r--p 001c0000 08:06 1179887 /lib/x86_64-linux-gnu/libc-2.23.so
7f57d9181000-7f57d9183000 rw-p 001c4000 08:06 1179887 /lib/x86_64-linux-gnu/libc-2.23.so
7f57d9183000-7f57d9187000 rw-p 00000000 00:00 0
7f57d9187000-7f57d919d000 r-xp 00000000 08:06 1184430 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f57d919d000-7f57d939c000 ---p 00016000 08:06 1184430 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f57d939c000-7f57d939d000 rw-p 00015000 08:06 1184430 /lib/x86_64-linux-gnu/libgcc_s.so.1
7f57d939d000-7f57d9517000 r-xp 00000000 08:06 2621627 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24
7f57d9517000-7f57d9716000 ---p 0017a000 08:06 2621627 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24
7f57d9716000-7f57d9720000 r--p 00179000 08:06 2621627 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24
7f57d9720000-7f57d9722000 rw-p 00183000 08:06 2621627 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.24
7f57d9722000-7f57d9725000 rw-p 00000000 00:00 0
7f57d9725000-7f57d982d000 r-xp 00000000 08:06 1179880 /lib/x86_64-linux-gnu/libm-2.23.so
7f57d982d000-7f57d9a2c000 ---p 00108000 08:06 1179880 /lib/x86_64-linux-gnu/libm-2.23.so
7f57d9a2c000-7f57d9a2d000 r--p 00107000 08:06 1179880 /lib/x86_64-linux-gnu/libm-2.23.so
7f57d9a2d000-7f57d9a2e000 rw-p 00108000 08:06 1179880 /lib/x86_64-linux-gnu/libm-2.23.so
7f57d9a2e000-7f57d9a31000 r-xp 00000000 08:06 1179868 /lib/x86_64-linux-gnu/libdl-2.23.so
7f57d9a31000-7f57d9c30000 ---p 00003000 08:06 1179868 /lib/x86_64-linux-gnu/libdl-2.23.so
7f57d9c30000-7f57d9c31000 r--p 00002000 08:06 1179868 /lib/x86_64-linux-gnu/libdl-2.23.so
7f57d9c31000-7f57d9c32000 rw-p 00003000 08:06 1179868 /lib/x86_64-linux-gnu/libdl-2.23.so
7f57d9c32000-7f57d9c58000 r-xp 00000000 08:06 1179846 /lib/x86_64-linux-gnu/ld-2.23.so
7f57d9e37000-7f57d9e3d000 rw-p 00000000 00:00 0
7f57d9e54000-7f57d9e57000 rw-p 00000000 00:00 0
7f57d9e57000-7f57d9e58000 r--p 00025000 08:06 1179846 /lib/x86_64-linux-gnu/ld-2.23.so
7f57d9e58000-7f57d9e59000 rw-p 00026000 08:06 1179846 /lib/x86_64-linux-gnu/ld-2.23.so
7f57d9e59000-7f57d9e5a000 rw-p 00000000 00:00 0
7ffeddbfa000-7ffeddc1c000 rw-p 00000000 00:00 0 [stack]
7ffeddc4b000-7ffeddc4d000 r--p 00000000 00:00 0 [vvar]
7ffeddc4d000-7ffeddc4f000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Aborted (core dumped)
my gcc is 4.9,on ns-2.30, and ubuntu 16.04

MPI Job crash with stack smashing detected

I have a very small piece of MPI code in Fortran 90 that I found online to test my cluster with heterogeneous nodes. The code likes like this
program MPI
include "mpif.h"
integer :: myrank,size,ierr
integer :: resultlen
character (len=8) :: name
call MPI_Init(ierr)
call MPI_Comm_rank(MPI_COMM_WORLD,myrank,ierr)
call MPI_Comm_size(MPI_COMM_WORLD,size,ierr)
call mpi_get_processor_name(name, resultlen, ierr)
write(*,*) "Processor ",myrank," of ",size,"on ",name,": Hello World!"
call MPI_Finalize(ierr)
end program
It was successfully compiled with the default mpif90 from the mpich package on CentOS 7.
> which mpif90
/usr/lib64/mpich/bin/mpif90
> mpif90 hello_mpi.f90 -o hello_mpi.exe
This code ran perfectly fine on one node.
> mpirun -host node1 -np 2 ./hello_mpi.exe
Processor 0 of 2 on node1: Hello World!
Processor 1 of 2 on node1: Hello World!
>
But on the other node, it crashed every time. These two nodes are very similar in hardware (both AMD Opteron processors, 64-core vs 48-core, and memory size are different), but identical on the software side (both CentOS7 with exactly the same packages). Here is what I got when running the code on node2
> mpirun -host node2 -np 2 ./hello_mpi.exe
Processor 0 of 2 on node2: Hello World!
Processor 1 of 2 on node2: Hello World!
*** stack smashing detected ***: ./hello_mpi.exe terminated
======= Backtrace: =========
*** stack smashing detected ***: ./hello_mpi.exe terminated
/lib64/libc.so.6(__fortify_fail+0x37)[0x7fc61aee3597]
/lib64/libc.so.6(__fortify_fail+0x0)[0x7fc61aee3560]
./hello_mpi.exe[0x400e66]
./hello_mpi.exe[0x400bff]
======= Backtrace: =========
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7fc61adf6b15]
./hello_mpi.exe[0x400c31]
======= Memory map: ========
/lib64/libc.so.6(__fortify_fail+0x37)[0x7f394c8c3597]
00400000-00402000 r-xp 00000000 00:2e 493967 /home/user/tmp/hello_mpi.exe
00601000-00602000 r--p 00001000 00:2e 493967 /home/user/tmp/hello_mpi.exe
00602000-00603000 rw-p 00002000 00:2e 493967 /home/user/tmp/hello_mpi.exe
01e96000-01eb7000 rw-p 00000000 00:00 0 [heap]
7fc61a395000-7fc61a3a1000 r-xp 00000000 fd:00 201382493 /usr/lib64/libnss_files-2.17.so
7fc61a3a1000-7fc61a5a0000 ---p 0000c000 fd:00 201382493 /usr/lib64/libnss_files-2.17.so
7fc61a5a0000-7fc61a5a1000 r--p 0000b000 fd:00 201382493 /usr/lib64/libnss_files-2.17.so
7fc61a5a1000-7fc61a5a2000 rw-p 0000c000 fd:00 201382493 /usr/lib64/libnss_files-2.17.so
7fc61a5a2000-7fc61a5a8000 rw-p 00000000 00:00 0
7fc61add5000-7fc61af8c000 r-xp 00000000 fd:00 201382897 /usr/lib64/libc-2.17.so
7fc61af8c000-7fc61b18c000 ---p 001b7000 fd:00 201382897 /u/lib64/libc.so.6(__fortify_fail+0x0)[0x7f394c8c3560]
./hello_mpi.exe[0x400e66]
./hello_mpi.exe[0x400bff]
sr/lib64/libc-2.17.so
7fc61b18c000-7fc61b190000 r--p 001b7000 fd:00 201382897 /usr/lib64/libc-2.17.so
7fc61b190000-7fc61b192000 rw-p 001bb000 fd:00 201382897 /usr/lib64/libc-2.17.so
7fc61b192000-7fc61b197000 rw-p 00000000 00:00 0
7fc61b19d000-7fc61b1d8000 r-xp 00000000 fd:00 202328431 /usr/lib64/libquadmath.so.0.0.0
7fc61b1d8000-7fc61b3d7000 ---p 0003b000 fd:00 202328431 /usr/lib64/libquadmath.so.0.0.0
7fc61b3d7000-7fc61b3d8000 r--p 0003a000 fd:00 202328431 /usr/lib64/libquadmath.so.0.0.0
7fc61b3d8000-7fc61b3d9000 rw-p 0003b000 fd:00 202328431 /usr/lib64/libquadmath.so.0.0.0
7fc61b3dd000-7fc61b3f2000 r-xp 00000000 fd:00 201326729 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fc61b3f2000-7fc61b5f1000 ---p 00015000 fd:00 201326729 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fc61b5f1000-7fc61b5f2000 r--p 00014000 fd:00 201326729 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fc61b5f2000-7fc61b5f3000 rw-p 00015000 fd:00 201326729 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7fc61b5f5000-7fc61b6f6000 r-xp 00000000 fd:00 201382905 /usr/lib64/libm-2.17.so
7fc61b6f6000-7fc61b8f5000 ---p 00101000 fd:00 201382905 /usr/lib64/libm-2.17.so
7fc61b8f5000-7fc61b8f6000 r--p 00100000 fd:00 201382905 /usr/lib64/libm-2.17.so
7fc61b8f6000-7fc61b8f7000 rw-p 00101000 fd:00 201382905 /usr/lib64/libm-2.17.so
7fc61b8fd000-7fc61ba1c000 r-xp 00000000 fd:00 202328443 /usr/lib64/libgfortran.so.3.0.0
7fc61ba1c000-7fc61bc1c000 ---p 0011f000 fd:00 202328443 /usr/lib64/libgfortran.so.3.0.0
7fc61bc1c000-7fc61bc1d000 r--p 0011f000 fd:00 202328443 /usr/lib64/libgfortran.so.3.0.0
7fc61bc1d000-7fc61bc1f000 rw-p 00120000 fd:00 202328443 /usr/lib64/libgfortran.so.3.0.0
7fc61bc25000-7fc61bc3b000 r-xp 00000000 fd:00 201382505 /usr/lib64/libpthread-2.17.so
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f394c7d6b15]
./hello_mpi.exe[0x400c31]
======= Memory map: ========
7fc61bc3b000-7fc61be3b000 ---p 00016000 fd:00 201382505 /usr/lib64/libpthread-2.17.so
7fc61be3b000-7fc61be3c000 r--p 00016000 fd:00 201382505 /usr/lib64/libpthread-2.17.so
7fc61be3c000-7fc61be3d000 rw-p 00017000 fd:00 201382505 /usr/lib64/libpthread-2.17.so
7fc61be3d000-7fc61be41000 rw-p 00000000 00:00 0
7fc61be45000-7fc61be4c000 r-xp 00000000 fd:00 201382510 /usr/lib64/librt-2.17.so
7fc61be4c000-7fc61c04b000 ---p 00007000 fd:00 201382510 /usr/lib64/librt-2.17.so
7fc61c04b000-7fc61c04c000 r--p 00006000 fd:00 201382510 /usr/lib64/librt-2.17.so
7fc61c04c000-7fc61c04d000 rw-p 00007000 fd:00 201382510 /usr/lib64/librt-2.17.so
7fc61c04d000-7fc61c052000 r-xp 00000000 fd:00 136205960 /usr/lib64/mpich/lib/libmpl.so.1.0.0
7fc61c052000-7fc61c251000 ---p 00005000 fd:00 136205960 /usr/lib64/mpich/lib/libmpl.so.1.0.0
7fc61c251000-7fc61c252000 r--p 00004000 fd:00 1362059600400000-00402000 r-xp 00000000 00:2e 493967 /home/user/tmp/hello_mpi.exe
00601000-00602000 r--p 00001000 00:2e 493967 /home/user/tmp/hello_mpi.exe
00602000-00603000 rw-p 00002000 00:2e 493967 /home/user/tmp/hello_mpi.exe
01ca0000-01cc1000 rw-p 00000000 00:00 0 [heap]
7f394bd75000-7f394bd81000 r-xp 00000000 fd:00 201382493 /usr/lib64/libnss_files-2.17.so
7f394bd81000-7f394bf80000 ---p 0000c000 fd:00 201382493 /usr/lib64/libnss_files-2.17.so
7f394bf80000-7f394bf81000 r--p 0000b000 fd:00 201382493 /usr/lib64/libnss_files-2.17.so
7f394bf81000-7f394bf82000 rw-p 0000c000 fd:00 201382493 /usr/lib64/libnss_files-2.17.so
7f394bf82000-7f394bf88000 rw-p 00000000 00:00 0
7f394c7b5000-7f394c96c000 r-xp 00000000 fd:00 201382897 /usr/lib64/libc-2.17.so
7f394c96c000-7f394cb6c000 ---p 001b7000 fd:00 201382897 /u0 /usr/lib64/mpich/lib/libmpl.so.1.0.0
7fc61c252000-7fc61c253000 rw-p 00005000 fd:00 136205960 /usr/lib64/mpich/lib/libmpl.so.1.0.0
7fc61c255000-7fc61c256000 r-xp 00000000 fd:00 136205962 /usr/lib64/mpich/lib/libopa.so.1.0.0
7fc61c256000-7fc61c455000 ---p 00001000 fd:00 136205962 /usr/lib64/mpich/lib/libopa.so.1.0.0
7fc61c455000-7fc61c456000 r--p 00000000 fd:00 136205962 /usr/lib64/mpich/lib/libopa.so.1.0.0
7fc61c456000-7fc61c457000 rw-p 00001000 fd:00 136205962 /usr/lib64/mpich/lib/libopa.so.1.0.0
7fc61c45d000-7fc61c67e000 r-xp 00000000 fd:00 136205954 /usr/lib64/mpich/lib/libmpich.so.10.0.4
7fc61c67e000-7fc61c87d000 ---p 00221000 fd:00 136205954 /usr/lib64/mpich/lib/libmpich.so.10.0.4
7fc61c87d000-7fc61c88a000 r--p 00220000 fd:00 136205954 /usr/lib64/mpich/lib/libmpich.so.10.0.4
7fc61c88a000-7fc61c88f000 rw-p 0022d000 fd:00 136205954 /usr/lib64/mpich/lib/libmpich.so.10.0.4
7fc61c88f000-7fc61c8c8000 rw-p 00000000 00:00 0
7fc61c8cd000-7fc61c8cf000 r-xp 00000000 fd:00 136205958 /usr/lib64/mpich/lib/libmpichf90.so.10.0.4
7fc61c8cf000-7fc61cace000 ---p 00002000 fd:00 136205958 /usr/lib64/mpich/lib/libmpichf90.so.10.0.4
7fc61cace000-7fc61cacf000 r--p 00001000 fd:00 136205958 /usr/lib64/mpich/lib/libmpichf90.so.10.0.4
7fc61cacf000-7fc61cad0000 rw-p 00002000 fd:00 136205958 /usr/lib64/mpich/lib/libmpichf90.so.10.0.4
7fc61cad5000-7fc61caf6000 r-xp 00000000 fd:00 201382890 /usr/lib64/ld-2.17.so
7fc61cce1000-7fc61cce5000 rw-p 00000000 00:00 0
7fc61ccf5000-7fc61ccf6000 rw-p 00000000 00:00 0
7fc61ccf6000-7fc61ccf7000 r--p 00021000 fd:00 201382890 /usr/lib64/ld-2.17.so
7fc61ccf7000-7fc61ccf8000 rw-p 00022000 fd:00 201382890 /usr/lib64/ld-2.17.so
7fc61ccf8000-7fc61ccfa000 rw-p 00000000 00:00 0
7fc61ccfa000-7fc61ccfd000 rw-p 00000000 00:00sr/lib64/libc-2.17.so
7f394cb6c000-7f394cb70000 r--p 001b7000 fd:00 201382897 /usr/lib64/libc-2.17.so
7f394cb70000-7f394cb72000 rw-p 001bb000 fd:00 201382897 /usr/lib64/libc-2.17.so
7f394cb72000-7f394cb77000 rw-p 00000000 00:00 0
7f394cb7d000-7f394cbb8000 r-xp 00000000 fd:00 202328431 /usr/lib64/libquadmath.so.0.0.0
7f394cbb8000-7f394cdb7000 ---p 0003b000 fd:00 202328431 /usr/lib64/libquadmath.so.0.0.0
7f394cdb7000-7f394cdb8000 r--p 0003a000 fd:00 202328431 /usr/lib64/libquadmath.so.0.0.0
7f394cdb8000-7f394cdb9000 rw-p 0003b000 fd:00 202328431 /usr/lib64/libquadmath.so.0.0.0
7f394cdbd000-7f394cdd2000 r-xp 00000000 fd:00 201326729 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f394cdd2000-7f394cfd1000 ---p 00015000 fd:00 201326729 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f394cfd1000-7f394cfd2000 r--p 00014000 fd:00 201326729 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
0
7ffcdf655000-7ffcdf676000 rw-p 00000000 00:00 0 [stack]
7ffcdf70d000-7ffcdf70f000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
7f394cfd2000-7f394cfd3000 rw-p 00015000 fd:00 201326729 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
7f394cfd5000-7f394d0d6000 r-xp 00000000 fd:00 201382905 /usr/lib64/libm-2.17.so
7f394d0d6000-7f394d2d5000 ---p 00101000 fd:00 201382905 /usr/lib64/libm-2.17.so
7f394d2d5000-7f394d2d6000 r--p 00100000 fd:00 201382905 /usr/lib64/libm-2.17.so
7f394d2d6000-7f394d2d7000 rw-p 00101000 fd:00 201382905 /usr/lib64/libm-2.17.so
7f394d2dd000-7f394d3fc000 r-xp 00000000 fd:00 202328443 /usr/lib64/libgfortran.so.3.0.0
7f394d3fc000-7f394d5fc000 ---p 0011f000 fd:00 202328443 /usr/lib64/libgfortran.so.3.0.0
7f394d5fc000-7f394d5fd000 r--p 0011f000 fd:00 202328443 /usr/lib64/libgfortran.so.3.0.0
7f394d5fd000-7f394d5ff000 rw-p 00120000 fd:00 202328443 /usr/lib64/libgfortran.so.3.0.0
7f394d605000-7f394d61b000 r-xp 00000000 fd:00 201382505 /usr/lib64/libpthread-2.17.so
Program received signal SIGABRT: Process abort signal.
Backtrace for this error:
7f394d61b000-7f394d81b000 ---p 00016000 fd:00 201382505 /usr/lib64/libpthread-2.17.so
7f394d81b000-7f394d81c000 r--p 00016000 fd:00 201382505 /usr/lib64/libpthread-2.17.so
7f394d81c000-7f394d81d000 rw-p 00017000 fd:00 201382505 /usr/lib64/libpthread-2.17.so
7f394d81d000-7f394d821000 rw-p 00000000 00:00 0
7f394d825000-7f394d82c000 r-xp 00000000 fd:00 201382510 /usr/lib64/librt-2.17.so
7f394d82c000-7f394da2b000 ---p 00007000 fd:00 201382510 /usr/lib64/librt-2.17.so
7f394da2b000-7f394da2c000 r--p 00006000 fd:00 201382510 /usr/lib64/librt-2.17.so
7f394da2c000-7f394da2d000 rw-p 00007000 fd:00 201382510 /usr/lib64/librt-2.17.so
7f394da2d000-7f394da32000 r-xp 00000000 fd:00 136205960 /usr/lib64/mpich/lib/libmpl.so.1.0.0
7f394da32000-7f394dc31000 ---p 00005000 fd:00 136205960 /usr/lib64/mpich/lib/libmpl.so.1.0.0
7f394dc31000-7f394dc32000 r--p 00004000 fd:00 136205960 /usr/lib64/mpich/lib/libmpl.so.1.0.0
7f394dc32000-7f394dc33000 rw-p 00005000 fd:00 136205960 /usr/lib64/mpich/lib/libmpl.so.1.0.0
7f394dc35000-7f394dc36000 r-xp 00000000 fd:00 136205962 /usr/lib64/mpich/lib/libopa.so.1.0.0
7f394dc36000-7f394de35000 ---p 00001000 fd:00 136205962 /usr/lib64/mpich/lib/libopa.so.1.0.0
7f394de35000-7f394de36000 r--p 00000000 fd:00 136205962 /usr/lib64/mpich/lib/libopa.so.1.0.0
7f394de36000-7f394de37000 rw-p 00001000 fd:00 136205962 /usr/lib64/mpich/lib/libopa.so.1.0.0
7f394de3d000-7f394e05e000 r-xp 00000000 fd:00 136205954 /usr/lib64/mpich/lib/libmpich.so.10.0.4
7f394e05e000-7f394e25d000 ---p 00221000 fd:00 136205954 /usr/lib64/mpich/lib/libmpich.so.10.0.4
7f394e25d000-7f394e26a000 r--p 00220000 fd:00 136205954 /usr/lib64/mpich/lib/libmpich.so.10.0.4
7f394e26a000-7f394e26f000 rw-p 0022d000 fd:00 136205954 /usr/lib64/mpich/lib/libmpich.so.10.0.4
7f394e26f000-7f394e2a8000 rw-p 00000000 00:00 0
7f394e2ad000-7f394e2af000 r-xp 00000000 fd:00 136205958 /usr/lib64/mpich/lib/libmpichf90.so.10.0.4
7f394e2af000-7f394e4ae000 ---p 00002000 fd:00 136205958 /usr/lib64/mpich/lib/libmpichf90.so.10.0.4
7f394e4ae000-7f394e4af000 r--p 00001000 fd:00 136205958 /usr/lib64/mpich/lib/libmpichf90.so.10.0.4
7f394e4af000-7f394e4b0000 rw-p 00002000 fd:00 136205958 /usr/lib64/mpich/lib/libmpichf90.so.10.0.4
7f394e4b5000-7f394e4d6000 r-xp 00000000 fd:00 201382890 /usr/lib64/ld-2.17.so
7f394e6ce000-7f394e6d6000 rw-p 00000000 00:00 0
7f394e6d6000-7f394e6d7000 r--p 00021000 fd:00 201382890 /usr/lib64/ld-2.17.so
7f394e6d7000-7f394e6d8000 rw-p 00022000 fd:00 201382890 /usr/lib64/ld-2.17.so
7f394e6d8000-7f394e6da000 rw-p 00000000 00:00 0
7fffabb37000-7fffabb58000 rw-p 00000000 00:00 0 [stack]
7fffabbed000-7fffabbef000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
Program received signal SIGABRT: Process abort signal.
Backtrace for this error:
#0 0x7FC61B916467
#1 0x7FC61B916AAE
#2 0x7FC61AE0A66F
#3 0x7FC61AE0A5F7
#4 0x7FC61AE0BCE7
#0 0x7F394D2F6467
#1 0x#5 0x7FC61AE4A326
#6 0x7FC61AEE3596
#7 0x7FC61AEE355F
7F394D2F6AAE
#2 0x7F394C7EA66F
#3 0x7F394C7EA5F7
#4 0x7F394C7EBCE7
#5 0x7F394C82A326
#6 0x7F394C8C3596
#7 0x7F394C8C355F
#8 0x400E65 in mpi at hello_mpi.f90:16
#8 0x400E65 in mpi at hello_mpi.f90:16
===================================================================================
= BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
= EXIT CODE: 6
= CLEANING UP REMAINING PROCESSES
= YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Aborted (signal 6)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions
So my question is, what could be causing this problem? The interesting thing is a similar piece of MPI code in C (shown below, obtained from the internet) worked just fine on both nodes without the above problem.
#include <mpi.h>
#include <stdio.h>
int main(int argc, char** argv) {
// Initialize the MPI environment
MPI_Init(NULL, NULL);
// Get the number of processes
int world_size;
MPI_Comm_size(MPI_COMM_WORLD, &world_size);
// Get the rank of the process
int world_rank;
MPI_Comm_rank(MPI_COMM_WORLD, &world_rank);
// Get the name of the processor
char processor_name[MPI_MAX_PROCESSOR_NAME];
int name_len;
MPI_Get_processor_name(processor_name, &name_len);
// Print off a hello world message
printf("Hello world from processor %s, rank %d"
" out of %d processors\n",
processor_name, world_rank, world_size);
// Finalize the MPI environment.
MPI_Finalize();
}
Could this be hardware related? Or something else?
name is too short. The MPI specification states:
The argument name must represent storage that is at least
MPI_MAX_PROCESSOR_NAME characters long. MPI_GET_PROCESSOR_NAME may write up to this many characters into name.
If that does not fix the problem, then your MPI implementation might be broken.

libvlc-qt realloc error executing example program of libvlc-qt

i get the following errors when i try to execute the example of the library Qt-VLC
*** glibc detected *** /home/lalalal/Scrivania/SORGENTI/VLC-QT/build-demo-player-Desktop_Qt_5_1_1_GCC_32bit-Debug/src/demo-player: realloc(): invalid pointer: 0xb712ce9c ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x75ee2)[0xb6a6cee2]
/lib/i386-linux-gnu/libc.so.6(realloc+0x25d)[0xb6a7156d]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(_ZN9QListData7reallocEi+0x37)[0xb6d6de67]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(_ZN9QListData6appendEi+0x7c)[0xb6d6df4c]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(_ZN9QListData6appendEv+0x23)[0xb6d6dfd3]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(+0x6c2c8)[0xb6d292c8]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(+0x6a4fd)[0xb6d274fd]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(+0x6b0d8)[0xb6d280d8]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(_Z20qMessageFormatString9QtMsgTypeRK18QMessageLogContextRK7QString+0x6cc)[0xb6d288ec]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(+0x6ba72)[0xb6d28a72]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(+0x69227)[0xb6d26227]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(+0x69383)[0xb6d26383]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(_ZNK14QMessageLogger5fatalEPKcz+0x3f)[0xb6d2694f]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(_ZN9QMetaType22registerNormalizedTypeERK10QByteArrayPFvPvEPFS3_PKvES5_PFS3_S3_S7_Ei6QFlagsINS_8TypeFlagEEPK11QMetaObject+0x57f)[0xb6f1c52f]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(_ZN9QMetaType12registerTypeEPKcPFvPvEPFS2_PKvES4_PFS2_S2_S6_Ei6QFlagsINS_8TypeFlagEEPK11QMetaObject+0x67)[0xb6f1c5e7]
/home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5(_ZN9QMetaType12registerTypeEPKcPFvPvEPFS2_PKvE+0x57)[0xb6f1c6a7]
/usr/lib/i386-linux-gnu/libQtGui.so.4(+0x328a8e)[0xaff03a8e]
/usr/lib/i386-linux-gnu/libQtGui.so.4(+0x126f40)[0xafd01f40]
/lib/ld-linux.so.2(+0xeeab)[0xb77daeab]
/lib/ld-linux.so.2(+0xef94)[0xb77daf94]
/lib/ld-linux.so.2(+0x12fa6)[0xb77defa6]
/lib/ld-linux.so.2(+0xeccf)[0xb77daccf]
/lib/ld-linux.so.2(+0x127f4)[0xb77de7f4]
/lib/i386-linux-gnu/libdl.so.2(+0xbe9)[0xb5f0bbe9]
/lib/ld-linux.so.2(+0xeccf)[0xb77daccf]
/lib/i386-linux-gnu/libdl.so.2(+0x133a)[0xb5f0c33a]
/lib/i386-linux-gnu/libdl.so.2(dlopen+0x47)[0xb5f0bc97]
/usr/lib/libvlccore.so.5(+0xb11a0)[0xb5eb41a0]
/usr/lib/libvlccore.so.5(+0x92931)[0xb5e95931]
/usr/lib/libvlccore.so.5(+0x92c78)[0xb5e95c78]
/usr/lib/libvlccore.so.5(+0x92bd3)[0xb5e95bd3]
/usr/lib/libvlccore.so.5(+0x932e2)[0xb5e962e2]
/usr/lib/libvlccore.so.5(+0x9363a)[0xb5e9663a]
/usr/lib/libvlccore.so.5(libvlc_InternalInit+0x163)[0xb5e11a93]
/usr/lib/libvlc.so.5(libvlc_new+0x17b)[0xb69df0cb]
/home/lalalal/libvlc-qt-0.8.1/build/prefix/lib/libvlc-qt.so.0.8(_ZN11VlcInstanceC1ERK11QStringListP7QObject+0xe3)[0xb7796867]
/home/lalalal/Scrivania/SORGENTI/VLC-QT/build-demo-player-Desktop_Qt_5_1_1_GCC_32bit-Debug/src/demo-player[0x804b92d]
/home/lalalal/Scrivania/SORGENTI/VLC-QT/build-demo-player-Desktop_Qt_5_1_1_GCC_32bit-Debug/src/demo-player[0x804b692]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb6a104d3]
/home/lalalal/Scrivania/SORGENTI/VLC-QT/build-demo-player-Desktop_Qt_5_1_1_GCC_32bit-Debug/src/demo-player[0x804b571]
======= Memory map: ========
08048000-08050000 r-xp 00000000 08:06 13241347 /home/lalalal/Scrivania/SORGENTI/VLC-QT/build-demo-player-Desktop_Qt_5_1_1_GCC_32bit-Debug/src/demo-player
08050000-08051000 r--p 00007000 08:06 13241347 /home/lalalal/Scrivania/SORGENTI/VLC-QT/build-demo-player-Desktop_Qt_5_1_1_GCC_32bit-Debug/src/demo-player
08051000-08052000 rw-p 00008000 08:06 13241347 /home/lalalal/Scrivania/SORGENTI/VLC-QT/build-demo-player-Desktop_Qt_5_1_1_GCC_32bit-Debug/src/demo-player
0823b000-08551000 rw-p 00000000 00:00 0 [heap]
af866000-af8be000 r-xp 00000000 08:06 1706455 /usr/lib/i386-linux-gnu/libXt.so.6.0.0
af8be000-af8bf000 r--p 00057000 08:06 1706455 /usr/lib/i386-linux-gnu/libXt.so.6.0.0
af8bf000-af8c2000 rw-p 00058000 08:06 1706455 /usr/lib/i386-linux-gnu/libXt.so.6.0.0
af8c2000-af8d8000 r-xp 00000000 08:06 1708436 /usr/lib/i386-linux-gnu/libICE.so.6.3.0
af8d8000-af8d9000 r--p 00015000 08:06 1708436 /usr/lib/i386-linux-gnu/libICE.so.6.3.0
af8d9000-af8da000 rw-p 00016000 08:06 1708436 /usr/lib/i386-linux-gnu/libICE.so.6.3.0
af8da000-af8dc000 rw-p 00000000 00:00 0
af8dc000-af8e3000 r-xp 00000000 08:06 1708477 /usr/lib/i386-linux-gnu/libSM.so.6.0.1
af8e3000-af8e4000 r--p 00006000 08:06 1708477 /usr/lib/i386-linux-gnu/libSM.so.6.0.1
af8e4000-af8e5000 rw-p 00007000 08:06 1708477 /usr/lib/i386-linux-gnu/libSM.so.6.0.1
af8e5000-af8fc000 r-xp 00000000 08:06 1704115 /usr/lib/i386-linux-gnu/libaudio.so.2.4
af8fc000-af8fd000 r--p 00016000 08:06 1704115 /usr/lib/i386-linux-gnu/libaudio.so.2.4
af8fd000-af8fe000 rw-p 00017000 08:06 1704115 /usr/lib/i386-linux-gnu/libaudio.so.2.4
af8fe000-afbd2000 r-xp 00000000 08:06 1706325 /usr/lib/i386-linux-gnu/libQtCore.so.4.8.1
afbd2000-afbd9000 r--p 002d4000 08:06 1706325 /usr/lib/i386-linux-gnu/libQtCore.so.4.8.1
afbd9000-afbda000 rw-p 002db000 08:06 1706325 /usr/lib/i386-linux-gnu/libQtCore.so.4.8.1
afbda000-afbdb000 rw-p 00000000 00:00 0
afbdb000-b0685000 r-xp 00000000 08:06 1706294 /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1
b0685000-b06a7000 r--p 00aa9000 08:06 1706294 /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1
b06a7000-b06ab000 rw-p 00acb000 08:06 1706294 /usr/lib/i386-linux-gnu/libQtGui.so.4.8.1
b06ab000-b06ae000 rw-p 00000000 00:00 0
b06ae000-b08c7000 r-xp 00000000 08:06 1846428 /usr/lib/vlc/plugins/gui/libqt4_plugin.so
b08c7000-b08d3000 r--p 00219000 08:06 1846428 /usr/lib/vlc/plugins/gui/libqt4_plugin.so
b08d3000-b08d5000 rw-p 00225000 08:06 1846428 /usr/lib/vlc/plugins/gui/libqt4_plugin.so
b08d5000-b08d6000 rw-p 00000000 00:00 0
b08d6000-b09c3000 r-xp 00000000 08:06 1706052 /usr/lib/i386-linux-gnu/libasound.so.2.0.0
b09c3000-b09c7000 r--p 000ec000 08:06 1706052 /usr/lib/i386-linux-gnu/libasound.so.2.0.0
b09c7000-b09c8000 rw-p 000f0000 08:06 1706052 /usr/lib/i386-linux-gnu/libasound.so.2.0.0
b09e2000-b0a4f000 r--p 00000000 08:06 3163350 /usr/share/locale/it/LC_MESSAGES/vlc.mo
b0a4f000-b0bb5000 r-xp 00000000 08:06 1709061 /usr/lib/i386-linux-gnu/libvorbisenc.so.2.0.8
b0bb5000-b0bc6000 r--p 00165000 08:06 1709061 /usr/lib/i386-linux-gnu/libvorbisenc.so.2.0.8
b0bc6000-b0bc7000 rw-p 00176000 08:06 1709061 /usr/lib/i386-linux-gnu/libvorbisenc.so.2.0.8
b0bc7000-b0c13000 r-xp 00000000 08:06 1708428 /usr/lib/i386-linux-gnu/libFLAC.so.8.2.0
b0c13000-b0c14000 r--p 0004b000 08:06 1708428 /usr/lib/i386-linux-gnu/libFLAC.so.8.2.0
b0c14000-b0c15000 rw-p 0004c000 08:06 1708428 /usr/lib/i386-linux-gnu/libFLAC.so.8.2.0
b0c15000-b0c81000 r-xp 00000000 08:06 1709004 /usr/lib/i386-linux-gnu/libsndfile.so.1.0.25
b0c81000-b0c82000 r--p 0006c000 08:06 1709004 /usr/lib/i386-linux-gnu/libsndfile.so.1.0.25
b0c82000-b0c83000 rw-p 0006d000 08:06 1709004 /usr/lib/i386-linux-gnu/libsndfile.so.1.0.25
b0c83000-b0c87000 rw-p 00000000 00:00 0
b0c87000-b0c8f000 r-xp 00000000 08:06 9700269 /lib/i386-linux-gnu/libwrap.so.0.7.6
b0c8f000-b0c90000 r--p 00007000 08:06 9700269 /lib/i386-linux-gnu/libwrap.so.0.7.6
b0c90000-b0c91000 rw-p 00008000 08:06 9700269 /lib/i386-linux-gnu/libwrap.so.0.7.6
b0c91000-b0cf4000 r-xp 00000000 08:06 1706259 /usr/lib/i386-linux-gnu/libpulsecommon-1.1.so
b0cf4000-b0cf5000 r--p 00062000 08:06 1706259 /usr/lib/i386-linux-gnu/libpulsecommon-1.1.so
b0cf5000-b0cf6000 rw-p 00063000 08:06 1706259 /usr/lib/i386-linux-gnu/libpulsecommon-1.1.so
b0cf6000-b0d42000 r-xp 00000000 08:06 1706258 /usr/lib/i386-linux-gnu/libpulse.so.0.13.5
b0d42000-b0d43000 r--p 0004b000 08:06 1706258 /usr/lib/i386-linux-gnu/libpulse.so.0.13.5
b0d43000-b0d44000 rw-p 0004c000 08:06 1706258 /usr/lib/i386-linux-gnu/libpulse.so.0.13.5
b0d57000-b0d5c000 r-xp 00000000 08:06 1846120 /usr/lib/vlc/plugins/audio_output/libalsa_plugin.so
b0d5c000-b0d5d000 r--p 00004000 08:06 1846120 /usr/lib/vlc/plugins/audio_output/libalsa_plugin.so
b0d5d000-b0d5e000 rw-p 00005000 08:06 1846120 /usr/lib/vlc/plugins/audio_output/libalsa_plugin.so
b0d5e000-b0db5000 r--p 00000000 08:06 2493685 /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
b0db5000-b0dca000 r-xp 00000000 08:06 1707707 /usr/lib/i386-linux-gnu/gvfs/libgvfscommon.so
b0dca000-b0dcb000 r--p 00014000 08:06 1707707 /usr/lib/i386-linux-gnu/gvfs/libgvfscommon.so
b0dcb000-b0dcc000 rw-p 00015000 08:06 1707707 /usr/lib/i386-linux-gnu/gvfs/libgvfscommon.so
b0dcc000-b0df5000 r-xp 00000000 08:06 1704395 /usr/lib/i386-linux-gnu/gio/modules/libgvfsdbus.so
b0df5000-b0df6000 r--p 00028000 08:06 1704395 /usr/lib/i386-linux-gnu/gio/modules/libgvfsdbus.so
b0df6000-b0df7000 rw-p 00029000 08:06 1704395 /usr/lib/i386-linux-gnu/gio/modules/libgvfsdbus.so
b0df7000-b0e3b000 r-xp 00000000 08:06 1708824 /usr/lib/i386-linux-gnu/libibus-1.0.so.0.401.0
b0e3b000-b0e3c000 r--p 00043000 08:06 1708824 /usr/lib/i386-linux-gnu/libibus-1.0.so.0.401.0
b0e3c000-b0e3d000 rw-p 00044000 08:06 1708824 /usr/lib/i386-linux-gnu/libibus-1.0.so.0.401.0
b0e42000-b0e47000 r-xp 00000000 08:06 1708544 /usr/lib/i386-linux-gnu/libasyncns.so.0.3.1
b0e47000-b0e48000 r--p 00004000 08:06 1708544 /usr/lib/i386-linux-gnu/libasyncns.so.0.3.1
b0e48000-b0e49000 rw-p 00005000 08:06 1708544 /usr/lib/i386-linux-gnu/libasyncns.so.0.3.1
b0e49000-b0e4f000 r-xp 00000000 08:06 1708843 /usr/lib/i386-linux-gnu/libjson.so.0.0.1
b0e4f000-b0e50000 r--p 00005000 08:06 1708843 /usr/lib/i386-linux-gnu/libjson.so.0.0.1
b0e50000-b0e51000 rw-p 00006000 08:06 1708843 /usr/lib/i386-linux-gnu/libjson.so.0.0.1
b0e51000-b0e55000 r-xp 00000000 08:06 9700267 /lib/i386-linux-gnu/libuuid.so.1.3.0
b0e55000-b0e56000 r--p 00003000 08:06 9700267 /lib/i386-linux-gnu/libuuid.so.1.3.0
b0e56000-b0e57000 rw-p 00004000 08:06 9700267 /lib/i386-linux-gnu/libuuid.so.1.3.0
b0e57000-b0ea9000 r--p 00000000 08:06 2493656 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
b0ea9000-b0f00000 r--p 00000000 08:06 2493685 /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf
b0f00000-b0f21000 rw-p 00000000 00:00 0
b0f21000-b1000000 ---p 00000000 00:00 0
b1004000-b1012000 r-xp 00000000 08:06 9699549 /lib/i386-linux-gnu/libudev.so.0.13.0
b1012000-b1013000 r--p 0000e000 08:06 9699549 /lib/i386-linux-gnu/libudev.so.0.13.0
b1013000-b1014000 rw-p 0000f000 08:06 9699549 /lib/i386-linux-gnu/libudev.so.0.13.0
b1014000-b101a000 r-xp 00000000 08:06 1709577 /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
b101a000-b101b000 r--p 00005000 08:06 1709577 /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
b101b000-b101c000 rw-p 00006000 08:06 1709577 /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so
b101c000-b101e000 r-xp 00000000 08:06 1709783 /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b101e000-b101f000 r--p 00001000 08:06 1709783 /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b101f000-b1020000 rw-p 00002000 08:06 1709783 /usr/lib/i386-linux-gnu/pango/1.6.0/modules/pango-basic-fc.so
b1020000-b1021000 r--s 00000000 08:06 2362260 /var/cache/fontconfig/c05880de57d1f5e948fdfacc138775d9-le32d4.cache-3
b1021000-b1027000 r--s 00000000 08:06 2362255 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le32d4.cache-3
b1027000-b1029000 r--s 00000000 08:06 2362256 /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-le32d4.cache-3
b1029000-b102c000 r--s 00000000 08:06 2362242 /var/cache/fontconfig/2cd17615ca594fa2959ae173292e504c-le32d4.cache-3
b102c000-b102d000 r--s 00000000 08:06 2362267 /var/cache/fontconfig/e7071f4a29fa870f4323321c154eba04-le32d4.cache-3
b102d000-b102e000 r--s 00000000 08:06 2362240 /var/cache/fontconfig/0d8c3b2ac0904cb8a57a757ad11a4a08-le32d4.cache-3
b102e000-b1032000 r--s 00000000 08:06 2362257 /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-le32d4.cache-3
b1032000-b103d000 r--s 00000000 08:06 2362239 /var/cache/fontconfig/04aabc0a78ac019cf9454389977116d2-le32d4.cache-3
b103d000-b103e000 ---p 00000000 00:00 0
b103e000-b183e000 rw-p 00000000 00:00 0 [stack:2373]
b183e000-b1858000 r-xp 00000000 08:06 1706000 /usr/lib/i386-linux-gnu/libdbusmenu-glib.so.4.0.13
b1858000-b1859000 r--p 00019000 08:06 1706000 /usr/lib/i386-linux-gnu/libdbusmenu-glib.so.4.0.13
b1859000-b185a000 rw-p 0001a000 08:06 1706000 /usr/lib/i386-linux-gnu/libdbusmenu-glib.so.4.0.13
b185a000-b186b000 r-xp 00000000 08:06 1705996 /usr/lib/i386-linux-gnu/libdbusmenu-gtk.so.4.0.13
b186b000-b186c000 r--p 00010000 08:06 1705996 /usr/lib/i386-linux-gnu/libdbusmenu-gtk.so.4.0.13
b186c000-b186d000 rw-p 00011000 08:06 1705996 /usr/lib/i386-linux-gnu/libdbusmenu-gtk.so.4.0.13
b1870000-b1877000 r--s 00000000 08:06 2367397 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-le32d4.cache-3
b1877000-b187a000 r--s 00000000 08:06 2362245 /var/cache/fontconfig/385c0604a188198f04d133e54aba7fe7-le32d4.cache-3
b187a000-b1887000 r--s 00000000 08:06 2362263 /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-le32d4.cache-3
b1887000-b188a000 r-xp 00000000 08:06 9700187 /lib/i386-linux-gnu/libgpg-error.so.0.8.0
b188a000-b188b000 r--p 00002000 08:06 9700187 /lib/i386-linux-gnu/libgpg-error.so.0.8.0
b188b000-b188c000 rw-p 00003000 08:06 9700187 /lib/i386-linux-gnu/libgpg-error.so.0.8.0
b188c000-b189c000 r-xp 00000000 08:06 1708915 /usr/lib/i386-linux-gnu/libp11-kit.so.0.0.0
b189c000-b189d000 r--p 0000f000 08:06 1708915 /usr/lib/i386-linux-gnu/libp11-kit.so.0.0.0
b189d000-b189e000 rw-p 00010000 08:06 1708915 /usr/lib/i386-linux-gnu/libp11-kit.so.0.0.0
b189e000-b1920000 r-xp 00000000 08:06 9699547 /lib/i386-linux-gnu/libgcrypt.so.11.7.0
b1920000-b1921000 r--p 00081000 08:06 9699547 /lib/i386-linux-gnu/libgcrypt.so.11.7.0
b1921000-b1923000 rw-p 00082000 08:06 9699547 /lib/i386-linux-gnu/libgcrypt.so.11.7.0
b1923000-b1933000 r-xp 00000000 08:06 1709032 /usr/lib/i386-linux-gnu/libtasn1.so.3.1.12
b1933000-b1934000 r--p 0000f000 08:06 1709032 /usr/lib/i386-linux-gnu/libtasn1.so.3.1.12
b1934000-b1935000 rw-p 00010000 08:06 1709032 /usr/lib/i386-linux-gnu/libtasn1.so.3.1.12
b1935000-b19f4000 r-xp 00000000 08:06 1717620 /usr/lib/i386-linux-gnu/libgnutls.so.26.21.8
b19f4000-b19f8000 r--p 000bf000 08:06 1717620 /usr/lib/i386-linux-gnu/libgnutls.so.26.21.8
b19f8000-b19f9000 rw-p 000c3000 08:06 1717620 /usr/lib/i386-linux-gnu/libgnutls.so.26.21.8
b19f9000-b1a1d000 r-xp 00000000 08:06 1704117 /usr/lib/i386-linux-gnu/libdbus-glib-1.so.2.2.2
b1a1d000-b1a1e000 r--p 00023000 08:06 1704117 /usr/lib/i386-linux-gnu/libdbus-glib-1.so.2.2.2
b1a1e000-b1a1f000 rw-p 00024000 08:06 1704117 /usr/lib/i386-linux-gnu/libdbus-glib-1.so.2.2.2
b1a1f000-b1b66000 r-xp 00000000 08:06 1706050 /usr/lib/i386-linux-gnu/libxml2.so.2.7.8
b1b66000-b1b6a000 r--p 00147000 08:06 1706050 /usr/lib/i386-linux-gnu/libxml2.so.2.7.8
b1b6a000-b1b6b000 rw-p 0014b000 08:06 1706050 /usr/lib/i386-linux-gnu/libxml2.so.2.7.8
b1b6b000-b1b6c000 rw-p 00000000 00:00 0
b1b6c000-b1b98000 r-xp 00000000 08:06 1708695 /usr/lib/i386-linux-gnu/libgconf-2.so.4.1.5
b1b98000-b1b99000 r--p 0002b000 08:06 1708695 /usr/lib/i386-linux-gnu/libgconf-2.so.4.1.5
b1b99000-b1b9a000 rw-p 0002c000 08:06 1708695 /usr/lib/i386-linux-gnu/libgconf-2.so.4.1.5
b1b9a000-b1bfc000 r-xp 00000000 08:06 1724530 /usr/lib/i386-linux-gnu/libgnomevfs-2.so.0.2400.4
b1bfc000-b1bfe000 r--p 00061000 08:06 1724530 /usr/lib/i386-linux-gnu/libgnomevfs-2.so.0.2400.4
b1bfe000-b1c00000 rw-p 00063000 08:06 1724530 /usr/lib/i386-linux-gnu/libgnomevfs-2.so.0.2400.4
b1c00000-b1c21000 rw-p 00000000 00:00 0
b1c21000-b1d00000 ---p 00000000 00:00 0
b1d01000-b1d02000 r--s 00000000 08:06 2361926 /var/cache/fontconfig/4794a0821666d79190d59a36cb4f44b5-le32d4.cache-3
b1d02000-b1d05000 r--s 00000000 08:06 2362254 /var/cache/fontconfig/8801497958630a81b71ace7c5f9b32a8-le32d4.cache-3
b1d05000-b1d15000 r-xp 00000000 08:06 1708554 /usr/lib/i386-linux-gnu/libavahi-client.so.3.2.9
b1d15000-b1d16000 r--p 0000f000 08:06 1708554 /usr/lib/i386-linux-gnu/libavahi-client.so.3.2.9
b1d16000-b1d17000 rw-p 00010000 08:06 1708554 /usr/lib/i386-linux-gnu/libavahi-client.so.3.2.9
b1d17000-b1d23000 r-xp 00000000 08:06 1708556 /usr/lib/i386-linux-gnu/libavahi-common.so.3.5.3
b1d23000-b1d24000 r--p 0000b000 08:06 1708556 /usr/lib/i386-linux-gnu/libavahi-common.so.3.5.3
b1d24000-b1d25000 rw-p 0000c000 08:06 1708556 /usr/lib/i386-linux-gnu/libavahi-common.so.3.5.3
b1d25000-b1d4e000 r-xp 00000000 08:06 1709059 /usr/lib/i386-linux-gnu/libvorbis.so.0.4.5
b1d4e000-b1d4f000 r--p 00028000 08:06 1709059 /usr/lib/i386-linux-gnu/libvorbis.so.0.4.5
b1d4f000-b1d50000 rw-p 00029000 08:06 1709059 /usr/lib/i386-linux-gnu/libvorbis.so.0.4.5
b1d50000-b1d58000 r-xp 00000000 08:06 1708866 /usr/lib/i386-linux-gnu/libltdl.so.7.3.0
b1d58000-b1d59000 r--p 00008000 08:06 1708866 /usr/lib/i386-linux-gnu/libltdl.so.7.3.0
b1d59000-b1d5a000 rw-p 00009000 08:06 1708866 /usr/lib/i386-linux-gnu/libltdl.so.7.3.0
b1d5a000-b1d6b000 r-xp 00000000 08:06 1709034 /usr/lib/i386-linux-gnu/libtdb.so.1.2.9
b1d6b000-b1d6c000 r--p 00010000 08:06 1709034 /usr/lib/i386-linux-gnu/libtdb.so.1.2.9
b1d6c000-b1d6d000 rw-p 00011000 08:06 1709034 /usr/lib/i386-linux-gnu/libtdb.so.1.2.9
b1d6d000-b1d7c000 r-xp 00000000 08:06 1708592 /usr/lib/i386-linux-gnu/libcanberra.so.0.2.5
b1d7c000-b1d7d000 r--p 0000e000 08:06 1708592 /usr/lib/i386-linux-gnu/libcanberra.so.0.2.5
b1d7d000-b1d7e000 rw-p 0000f000 08:06 1708592 /usr/lib/i386-linux-gnu/libcanberra.so.0.2.5
b1d7e000-b1d82000 r-xp 00000000 08:06 1708588 /usr/lib/i386-linux-gnu/libcanberra-gtk.so.0.1.8
b1d82000-b1d83000 r--p 00003000 08:06 1708588 /usr/lib/i386-linux-gnu/libcanberra-gtk.so.0.1.8
b1d83000-b1d84000 rw-p 00004000 08:06 1708588 /usr/lib/i386-linux-gnu/libcanberra-gtk.so.0.1.8
b1d85000-b1d89000 r--s 00000000 08:06 2362243 /var/cache/fontconfig/3047814df9a2f067bd2d96a2b9c36e5a-le32d4.cache-3
b1d89000-b1d8a000 r--s 00000000 08:06 2362248 /var/cache/fontconfig/56cf4f4769d0f4abc89a4895d7bd3ae1-le32d4.cache-3
b1d8a000-b1d8b000 r--s 00000000 08:06 2362259 /var/cache/fontconfig/b9d506c9ac06c20b433354fa67a72993-le32d4.cache-3
b1d8b000-b1d8f000 r--s 00000000 08:06 2362258 /var/cache/fontconfig/b47c4e1ecd0709278f4910c18777a504-le32d4.cache-3
b1d8f000-b1d91000 r--s 00000000 08:06 2362392 /var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le32d4.cache-3
b1d91000-b1d94000 r--s 00000000 08:06 2362351 /var/cache/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-le32d4.cache-3
b1d94000-b1d99000 r-xp 00000000 08:06 1709586 /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/menuproxies/libappmenu.so
b1d99000-b1d9a000 r--p 00004000 08:06 1709586 /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/menuproxies/libappmenu.so
b1d9a000-b1d9b000 rw-p 00005000 08:06 1709586 /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/menuproxies/libappmenu.so
b1d9b000-b1d9e000 r--p 00000000 08:06 4332053 /usr/share/locale-langpack/it/LC_MESSAGES/atk10.mo
b1d9e000-b1dd3000 r-xp 00000000 08:06 1709570 /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/engines/libmurrine.so
b1dd3000-b1dd4000 r--p 00034000 08:06 1709570 /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/engines/libmurrine.so
b1dd4000-b1dd5000 rw-p 00035000 08:06 1709570 /usr/lib/i386-linux-gnu/gtk-2.0/2.10.0/engines/libmurrine.so
...other libraries...
b7126000-b7127000 ---p 00469000 08:06 529988 /home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5.1.1
b7127000-b712c000 r--p 00469000 08:06 529988 /home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5.1.1
b712c000-b713f000 rw-p 0046e000 08:06 529988 /home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5.1.1
b713f000-b7140000 rw-p 00000000 00:00 0
b7140000-b773f000 r-xp 00000000 08:06 530036 /home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Widgets.so.5.1.1
b773f000-b7754000 r--p 005fe000 08:06 530036 /home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Widgets.so.5.1.1
b7754000-b776c000 rw-p 00613000 08:06 530036 /home/lalalal/Qt5.1.1/5.1.1/gcc/lib/libQt5Widgets.so.5.1.1
b776c000-b7784000 r-xp 00000000 08:06 13241321 /home/lalalal/libvlc-qt-0.8.1/build/prefix/lib/libvlc-qt-widgets.so.0.8.1
b7784000-b7785000 r--p 00018000 08:06 13241321 /home/lalalal/libvlc-qt-0.8.1/build/prefix/lib/libvlc-qt-widgets.so.0.8.1
b7785000-b7786000 rw-p 00019000 08:06 13241321 /home/lalalal/libvlc-qt-0.8.1/build/prefix/lib/libvlc-qt-widgets.so.0.8.1
b7786000-b7787000 rw-p 00000000 00:00 0
b7787000-b77c7000 r-xp 00000000 08:06 13241237 /home/lalalal/libvlc-qt-0.8.1/build/prefix/lib/libvlc-qt.so.0.8.1
b77c7000-b77c8000 r--p 0003f000 08:06 13241237 /home/lalalal/libvlc-qt-0.8.1/build/prefix/lib/libvlc-qt.so.0.8.1
b77c8000-b77c9000 rw-p 00040000 08:06 13241237 /home/lalalal/libvlc-qt-0.8.1/build/prefix/lib/libvlc-qt.so.0.8.1
b77c9000-b77cb000 rw-p 00000000 00:00 0
b77cb000-b77cc000 r-xp 00000000 00:00 0 [vdso]
b77cc000-b77ec000 r-xp 00000000 08:06 9699459 /lib/i386-linux-gnu/ld-2.15.so
b77ec000-b77ed000 r--p 0001f000 08:06 9699459 /lib/i386-linux-gnu/ld-2.15.so
b77ed000-b77ee000 rw-p 00020000 08:06 9699459 /lib/i386-linux-gnu/ld-2.15.so
bfba6000-bfbc7000 rw-p 00000000 00:00 0 [stack]
if i get the backtrace, this is the result:
~"#0 0xb7fdd424 in __kernel_vsyscall ()\n"
>~"#1 0xb72371df in __GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64\n"
>~"#2 0xb723a825 in __GI_abort () at abort.c:91\n"
>~"#3 0xb727439a in __libc_message (do_abort=2, fmt=0xb736eaa8 \"*** glibc detected *** %s: %s: 0x%s ***\\n\") at ../sysdeps/unix/sysv/linux/libc_fatal.c:201\n"
>~"#4 0xb727eee2 in malloc_printerr (action=, str=, ptr=0xb793ee9c) at malloc.c:5018\n"
>~"#5 0xb728356d in __GI___libc_realloc (oldmem=0xb793ee9c, bytes=32) at malloc.c:3021\n"
>~"#6 0xb757fe67 in QListData::realloc(int) () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#7 0xb757ff4c in QListData::append(int) () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#8 0xb757ffd3 in QListData::append() () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#9 0xb753b2c8 in ?? () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#10 0xb75394fd in ?? () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#11 0xb753a0d8 in ?? () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#12 0xb753a8ec in qMessageFormatString(QtMsgType, QMessageLogContext const&, QString const&) () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#13 0xb753aa72 in ?? () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#14 0xb7538227 in ?? () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#15 0xb7538383 in ?? () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#16 0xb753894f in QMessageLogger::fatal(char const*, ...) const () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#17 0xb772e52f in QMetaType::registerNormalizedType(QByteArray const&, void (*)(void*), void* (*)(void const*), void (*)(void*), void* (*)(void*, void const*), int, QFlags, QMetaObject const*) () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#18 0xb772e5e7 in QMetaType::registerType(char const*, void (*)(void*), void* (*)(void const*), void (*)(void*), void* (*)(void*, void const*), int, QFlags, QMetaObject const*) () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#19 0xb772e6a7 in QMetaType::registerType(char const*, void (*)(void*), void* (*)(void const*)) () from /home/bertero/Qt5.1.1/5.1.1/gcc/lib/libQt5Core.so.5\n"
>~"#20 0xb071fa8e in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4\n"
>~"#21 0xb051df40 in ?? () from /usr/lib/i386-linux-gnu/libQtGui.so.4\n"
>~"#22 0xb7feceab in call_init (env=0xbffff75c, argv=0xbffff754, argc=1, l=) at dl-init.c:85\n"
>~"#23 call_init (l=, argc=1, argv=0xbffff754, env=0xbffff75c) at dl-init.c:35\n"
>~"#24 0xb7fecf94 in _dl_init (main_map=, argc=1, argv=0xbffff754, env=0xbffff75c) at dl-init.c:134\n"
>~"#25 0xb7ff0fa6 in dl_open_worker (a=0xbfffee20) at dl-open.c:549\n"
>~"#26 0xb7fecccf in _dl_catch_error (objname=0xbfffee44, errstring=0xbfffee48, mallocedp=0xbfffee4f, operate=0xb7ff0c40 , args=0xbfffee20) at dl-error.c:178\n"
>~"#27 0xb7ff07f4 in _dl_open (file=0x834ab78 \"/usr/lib/vlc/plugins/gui/libqt4_plugin.so\", mode=-2147483647, caller_dlopen=0xb66c61a0, nsid=-2, argc=1, argv=0xbffff754, env=0xbffff75c) at dl-open.c:639\n"
>~"#28 0xb671dbe9 in dlopen_doit (a=0xbfffeff0) at dlopen.c:67\n"
>~"#29 0xb7fecccf in _dl_catch_error (objname=0x8053454, errstring=0x8053458, mallocedp=0x8053450, operate=0xb671db50 , args=0xbfffeff0) at dl-error.c:178\n"
>~"#30 0xb671e33a in _dlerror_run (operate=0xb671db50 , args=0xbfffeff0) at dlerror.c:164\n"
>~"#31 0xb671dc97 in __dlopen (file=0x834ab78 \"/usr/lib/vlc/plugins/gui/libqt4_plugin.so\", mode=1) at dlopen.c:88\n"
>~"#32 0xb66c61a0 in ?? () from /usr/lib/libvlccore.so.5\n"
>~"#33 0xb66a7931 in ?? () from /usr/lib/libvlccore.so.5\n"
>~"#34 0xb66a7c78 in ?? () from /usr/lib/libvlccore.so.5\n"
>~"#35 0xb66a7bd3 in ?? () from /usr/lib/libvlccore.so.5\n"
>~"#36 0xb66a82e2 in ?? () from /usr/lib/libvlccore.so.5\n"
>~"#37 0xb66a863a in ?? () from /usr/lib/libvlccore.so.5\n"
>~"#38 0xb6623a93 in libvlc_InternalInit () from /usr/lib/libvlccore.so.5\n"
>~"#39 0xb71f10cb in libvlc_new () from /usr/lib/libvlc.so.5\n"
>~"#40 0xb7fa8867 in VlcInstance::VlcInstance(QStringList const&, QObject*) () from /home/bertero/libvlc-qt-0.8.1/build/prefix/lib/libvlc-qt.so.0.8\n"
>~"#41 0x0804b92d in DemoPlayer::DemoPlayer (this=0xbffff67c, parent=0x0) at ../../demo-player/src/DemoPlayer.cpp:35\n"
>~"#42 0x0804b692 in main (argc=1, argv=0xbffff754) at ../../demo-player/src/main.cpp:34\n"
how can i solve this issue?
I had the same SIGABRT trying to run a program with Qt.
Turns out the problem was because I had linked my program to qt5, but libvlc tried to load the qt4 plugin which I believe is why the crashes occurred.
(See the line containing /usr/lib/vlc/plugins/gui/libqt4_plugin.so in the stacktrace)
The way I solved it was by "disabling" that plugin for libvlc, which can be done for example by renaming the file to a different file ending.

After I execute a certain function, attempting to read files always causes errors

This probably has nothing to do with the problem, but here's the context: I have been following a tutorial on OpenGL and decided to try creating my own bone system before looking up a potentially better implementation.
Here's the problem: I have created a simple text-based format for my skeleton file. I also load an OBJ file, two GLSL shaders, and a texture in PNG format. (In case it matters, I load the texture using STB Image from nothings.org). All of my file loading has been successful before. Loading the skeleton file is successful, but after I load the skeleton file, all subsequent attempts to load files fail, producing various errors, depending on the placement of the function call. In the position I prefer to have it, it produces a SIGABRT.
Here is my code to initialize a skeleton, plus includes:
#include <stdio.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <cstring>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "model_stuff.hpp"
#include "skeleton_stuff.hpp"
void Skeleton::init(const char *sklfile) {
std::ifstream in(sklfile, std::ios::in);
if (!in) { std::cerr << "Cannot open " << sklfile << std::endl; exit(1); }
std::string line;
getline(in, line);
if(line.substr(0,2) == "i ") {
std::istringstream s(line.substr(2));
s >> this->numBinds;
this->boneBinds = new BoneBind[numBinds];
} else {
std::cerr << "Error: Missing information line for " << sklfile << std::endl; exit(1);
}
while (getline(in, line)) {
if(line.substr(0,2) == "b ") {
std::istringstream s(line.substr(2));
std::string name;
s >> name;
glm::vec4 pos;
s >> pos.x; s >> pos.y; s >> pos.z; pos.w = 1.0f;
} else if(line.substr(0,2) == "v ") {
std::istringstream s(line.substr(2));
int v;
s >> v;
std::vector<Bone*> bones;
while(!s.eof()) {
std::string str;
s >> str;
bones.push_back(this->boneNamed(str));
}
float boneweight = 1.0f;
if(bones.size() > 0) {
boneweight = 0.5f;
}
boneBinds[v].boneweight = bones.size();
boneBinds[v].childbone = bones[0];
if(boneweight != 1.0f) {
boneBinds[v].superbone = bones[1];
} else {
boneBinds[v].superbone = bones[0];
}
}
}
}
Here is the output from gdb:
(gdb) run
Starting program: /home/pitzik4/Dropbox/Pitzik4/cppWorkspaces/glTestWorkspace/Triangle2/bin/model
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
*** glibc detected *** /home/pitzik4/Dropbox/Pitzik4/cppWorkspaces/glTestWorkspace/Triangle2/bin/model: free(): invalid next size (normal): 0x0000000000d630c0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7e626)[0x7ffff6b7a626]
/usr/lib/x86_64-linux-gnu/dri/libdricore.so(_mesa_symbol_table_dtor+0x55)[0x7ffff4537bb5]
/usr/lib/x86_64-linux-gnu/dri/libglsl.so(_ZN17glsl_symbol_tableD1Ev+0xd)[0x7ffff41024dd]
/usr/lib/x86_64-linux-gnu/dri/libglsl.so(_Z22cross_validate_globalsP17gl_shader_programPP9gl_shaderjb+0x116)[0x7ffff4112306]
/usr/lib/x86_64-linux-gnu/dri/libglsl.so(_Z12link_shadersP10gl_contextP17gl_shader_program+0x260)[0x7ffff4113e40]
/usr/lib/x86_64-linux-gnu/dri/libdricore.so(_mesa_glsl_link_shader+0xfb)[0x7ffff459e21b]
/usr/lib/x86_64-linux-gnu/dri/libdricore.so(_mesa_get_fixed_func_fragment_program+0xa59)[0x7ffff4592c39]
/usr/lib/x86_64-linux-gnu/dri/libdricore.so(_mesa_update_state_locked+0x872)[0x7ffff44978e2]
/usr/lib/x86_64-linux-gnu/dri/libdricore.so(_mesa_update_state+0x11)[0x7ffff4497d51]
/usr/lib/x86_64-linux-gnu/dri/libdricore.so(+0xcfc48)[0x7ffff44a9c48]
/usr/lib/x86_64-linux-gnu/dri/libdricore.so(_mesa_TexImage2D+0x54)[0x7ffff44aa364]
/home/pitzik4/Dropbox/Pitzik4/cppWorkspaces/glTestWorkspace/Triangle2/bin/model[0x418b1d]
/home/pitzik4/Dropbox/Pitzik4/cppWorkspaces/glTestWorkspace/Triangle2/bin/model[0x419a28]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7ffff6b1d76d]
/home/pitzik4/Dropbox/Pitzik4/cppWorkspaces/glTestWorkspace/Triangle2/bin/model[0x403339]
======= Memory map: ========
00400000-00423000 r-xp 00000000 08:05 4456901 /home/pitzik4/Dropbox/Pitzik4/cppWorkspaces/glTestWorkspace/Triangle2/bin/model
00622000-00623000 r--p 00022000 08:05 4456901 /home/pitzik4/Dropbox/Pitzik4/cppWorkspaces/glTestWorkspace/Triangle2/bin/model
00623000-00624000 rw-p 00023000 08:05 4456901 /home/pitzik4/Dropbox/Pitzik4/cppWorkspaces/glTestWorkspace/Triangle2/bin/model
00624000-00d7e000 rw-p 00000000 00:00 0 [heap]
7ffff2efb000-7ffff3841000 rw-p 00000000 00:00 0
7ffff3841000-7ffff3857000 r-xp 00000000 08:05 1576592 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7ffff3857000-7ffff3a56000 ---p 00016000 08:05 1576592 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7ffff3a56000-7ffff3a57000 r--p 00015000 08:05 1576592 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7ffff3a57000-7ffff3a58000 rw-p 00016000 08:05 1576592 /lib/x86_64-linux-gnu/libz.so.1.2.3.4
7ffff3a58000-7ffff3a60000 r-xp 00000000 08:05 5120173 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.0
7ffff3a60000-7ffff3c5f000 ---p 00008000 08:05 5120173 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.0
7ffff3c5f000-7ffff3c60000 r--p 00007000 08:05 5120173 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.0
7ffff3c60000-7ffff3c61000 rw-p 00008000 08:05 5120173 /usr/lib/x86_64-linux-gnu/libpciaccess.so.0.11.0
7ffff3c61000-7ffff3c7d000 r-xp 00000000 08:05 5119862 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7ffff3c7d000-7ffff3e7c000 ---p 0001c000 08:05 5119862 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7ffff3e7c000-7ffff3e7d000 r--p 0001b000 08:05 5119862 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7ffff3e7d000-7ffff3e7e000 rw-p 0001c000 08:05 5119862 /usr/lib/x86_64-linux-gnu/libdrm_intel.so.1.0.0
7ffff3e7e000-7ffff3ea5000 r-xp 00000000 08:05 1576499 /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7ffff3ea5000-7ffff40a5000 ---p 00027000 08:05 1576499 /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7ffff40a5000-7ffff40a7000 r--p 00027000 08:05 1576499 /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7ffff40a7000-7ffff40a8000 rw-p 00029000 08:05 1576499 /lib/x86_64-linux-gnu/libexpat.so.1.5.2
7ffff40a8000-7ffff41ce000 r-xp 00000000 08:05 1569 /usr/lib/x86_64-linux-gnu/dri/libglsl.so
7ffff41ce000-7ffff43cd000 ---p 00126000 08:05 1569 /usr/lib/x86_64-linux-gnu/dri/libglsl.so
7ffff43cd000-7ffff43d6000 r--p 00125000 08:05 1569 /usr/lib/x86_64-linux-gnu/dri/libglsl.so
7ffff43d6000-7ffff43d9000 rw-p 0012e000 08:05 1569 /usr/lib/x86_64-linux-gnu/dri/libglsl.so
7ffff43d9000-7ffff43da000 rw-p 00000000 00:00 0
7ffff43da000-7ffff4618000 r-xp 00000000 08:05 1570 /usr/lib/x86_64-linux-gnu/dri/libdricore.so
7ffff4618000-7ffff4818000 ---p 0023e000 08:05 1570 /usr/lib/x86_64-linux-gnu/dri/libdricore.so
7ffff4818000-7ffff4822000 r--p 0023e000 08:05 1570 /usr/lib/x86_64-linux-gnu/dri/libdricore.so
7ffff4822000-7ffff4825000 rw-p 00248000 08:05 1570 /usr/lib/x86_64-linux-gnu/dri/libdricore.so
7ffff4825000-7ffff483b000 rw-p 00000000 00:00 0
7ffff483b000-7ffff4909000 r-xp 00000000 08:05 1334 /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
7ffff4909000-7ffff4b09000 ---p 000ce000 08:05 1334 /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
7ffff4b09000-7ffff4b0c000 r--p 000ce000 08:05 1334 /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
7ffff4b0c000-7ffff4b10000 rw-p 000d1000 08:05 1334 /usr/lib/x86_64-linux-gnu/dri/i965_dri.so
7ffff4b10000-7ffff4b17000 r-xp 00000000 08:05 1576567 /lib/x86_64-linux-gnu/librt-2.15.so
7ffff4b17000-7ffff4d16000 ---p 00007000 08:05 1576567 /lib/x86_64-linux-gnu/librt-2.15.so
7ffff4d16000-7ffff4d17000 r--p 00006000 08:05 1576567 /lib/x86_64-linux-gnu/librt-2.15.so
7ffff4d17000-7ffff4d18000 rw-p 00007000 08:05 1576567 /lib/x86_64-linux-gnu/librt-2.15.so
7ffff4d18000-7ffff4d1d000 r-xp 00000000 08:05 5119694 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7ffff4d1d000-7ffff4f1c000 ---p 00005000 08:05 5119694 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7ffff4f1c000-7ffff4f1d000 r--p 00004000 08:05 5119694 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7ffff4f1d000-7ffff4f1e000 rw-p 00005000 08:05 5119694 /usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0
7ffff4f1e000-7ffff4f20000 r-xp 00000000 08:05 5119681 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7ffff4f20000-7ffff511f000 ---p 00002000 08:05 5119681 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7ffff511f000-7ffff5120000 r--p 00001000 08:05 5119681 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7ffff5120000-7ffff5121000 rw-p 00002000 08:05 5119681 /usr/lib/x86_64-linux-gnu/libXau.so.6.0.0
7ffff5121000-7ffff5123000 r-xp 00000000 08:05 1576494 /lib/x86_64-linux-gnu/libdl-2.15.so
7ffff5123000-7ffff5323000 ---p 00002000 08:05 1576494 /lib/x86_64-linux-gnu/libdl-2.15.so
7ffff5323000-7ffff5324000 r--p 00002000 08:05 1576494 /lib/x86_64-linux-gnu/libdl-2.15.so
7ffff5324000-7ffff5325000 rw-p 00003000 08:05 1576494 /lib/x86_64-linux-gnu/libdl-2.15.so
7ffff5325000-7ffff532f000 r-xp 00000000 08:05 5119860 /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
7ffff532f000-7ffff552e000 ---p 0000a000 08:05 5119860 /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
7ffff552e000-7ffff552f000 r--p 00009000 08:05 5119860 /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
7ffff552f000-7ffff5530000 rw-p 0000a000 08:05 5119860 /usr/lib/x86_64-linux-gnu/libdrm.so.2.4.0
7ffff5530000-7ffff5534000 r-xp 00000000 08:05 5119726 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7ffff5534000-7ffff5733000 ---p 00004000 08:05 5119726 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7ffff5733000-7ffff5734000 r--p 00003000 08:05 5119726 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7ffff5734000-7ffff5735000 rw-p 00004000 08:05 5119726 /usr/lib/x86_64-linux-gnu/libXxf86vm.so.1.0.0
7ffff5735000-7ffff5752000 r-xp 00000000 08:05 5120366 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7ffff5752000-7ffff5951000 ---p 0001d000 08:05 5120366 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7ffff5951000-7ffff5952000 r--p 0001c000 08:05 5120366 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7ffff5952000-7ffff5953000 rw-p 0001d000 08:05 5120366 /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
7ffff5953000-7ffff5968000 r-xp 00000000 08:05 5120350 /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
7ffff5968000-7ffff5b67000 ---p 00015000 08:05 5120350 /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
7ffff5b67000-7ffff5b69000 r--p 00014000 08:05 5120350 /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
7ffff5b69000-7ffff5b6a000 rw-p 00016000 08:05 5120350 /usr/lib/x86_64-linux-gnu/libxcb-glx.so.0.0.0
7ffff5b6a000-7ffff5b6b000 r-xp 00000000 08:05 5119673 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7ffff5b6b000-7ffff5d6a000 ---p 00001000 08:05 5119673 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7ffff5d6a000-7ffff5d6b000 r--p 00000000 08:05 5119673 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7ffff5d6b000-7ffff5d6c000 rw-p 00001000 08:05 5119673 /usr/lib/x86_64-linux-gnu/libX11-xcb.so.1.0.0
7ffff5d6c000-7ffff5d71000 r-xp 00000000 08:05 5119698 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7ffff5d71000-7ffff5f70000 ---p 00005000 08:05 5119698 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7ffff5f70000-7ffff5f71000 r--p 00004000 08:05 5119698 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7ffff5f71000-7ffff5f72000 rw-p 00005000 08:05 5119698 /usr/lib/x86_64-linux-gnu/libXfixes.so.3.1.0
7ffff5f72000-7ffff5f74000 r-xp 00000000 08:05 5119690 /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
7ffff5f74000-7ffff6173000 ---p 00002000 08:05 5119690 /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
7ffff6173000-7ffff6174000 r--p 00001000 08:05 5119690 /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
7ffff6174000-7ffff6175000 rw-p 00002000 08:05 5119690 /usr/lib/x86_64-linux-gnu/libXdamage.so.1.1.0
7ffff6175000-7ffff6185000 r-xp 00000000 08:05 5119696 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7ffff6185000-7ffff6384000 ---p 00010000 08:05 5119696 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7ffff6384000-7ffff6385000 r--p 0000f000 08:05 5119696 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7ffff6385000-7ffff6386000 rw-p 00010000 08:05 5119696 /usr/lib/x86_64-linux-gnu/libXext.so.6.4.0
7ffff6386000-7ffff63a7000 r-xp 00000000 08:05 5126526 /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
7ffff63a7000-7ffff65a6000 ---p 00021000 08:05 5126526 /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
7ffff65a6000-7ffff65a9000 r--p 00020000 08:05 5126526 /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
7ffff65a9000-7ffff65aa000 rw-p 00023000 08:05 5126526 /usr/lib/x86_64-linux-gnu/libglapi.so.0.0.0
7ffff65aa000-7ffff65ab000 rw-p 00000000 00:00 0
7ffff65ab000-7ffff66da000 r-xp 00000000 08:05 5119677 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7ffff66da000-7ffff68da000 ---p 0012f000 08:05 5119677 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7ffff68da000-7ffff68db000 r--p 0012f000 08:05 5119677 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7ffff68db000-7ffff68df000 rw-p 00130000 08:05 5119677 /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
7ffff68df000-7ffff68f7000 r-xp 00000000 08:05 1576561 /lib/x86_64-linux-gnu/libpthread-2.15.so
7ffff68f7000-7ffff6af6000 ---p 00018000 08:05 1576561 /lib/x86_64-linux-gnu/libpthread-2.15.so
7ffff6af6000-7ffff6af7000 r--p 00017000 08:05 1576561 /lib/x86_64-linux-gnu/libpthread-2.15.so
7ffff6af7000-7ffff6af8000 rw-p 00018000 08:05 1576561 /lib/x86_64-linux-gnu/libpthread-2.15.so
7ffff6af8000-7ffff6afc000 rw-p 00000000 00:00 0
7ffff6afc000-7ffff6caf000 r-xp 00000000 08:05 1576481 /lib/x86_64-linux-gnu/libc-2.15.so
7ffff6caf000-7ffff6eae000 ---p 001b3000 08:05 1576481 /lib/x86_64-linux-gnu/libc-2.15.so
7ffff6eae000-7ffff6eb2000 r--p 001b2000 08:05 1576481 /lib/x86_64-linux-gnu/libc-2.15.so
7ffff6eb2000-7ffff6eb4000 rw-p 001b6000 08:05 1576481 /lib/x86_64-linux-gnu/libc-2.15.so
7ffff6eb4000-7ffff6eb9000 rw-p 00000000 00:00 0
7ffff6eb9000-7ffff6ece000 r-xp 00000000 08:05 1576502 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff6ece000-7ffff70cd000 ---p 00015000 08:05 1576502 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff70cd000-7ffff70ce000 r--p 00014000 08:05 1576502 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff70ce000-7ffff70cf000 rw-p 00015000 08:05 1576502 /lib/x86_64-linux-gnu/libgcc_s.so.1
7ffff70cf000-7ffff71c8000 r-xp 00000000 08:05 1576513 /lib/x86_64-linux-gnu/libm-2.15.so
7ffff71c8000-7ffff73c7000 ---p 000f9000 08:05 1576513 /lib/x86_64-linux-gnu/libm-2.15.so
7ffff73c7000-7ffff73c8000 r--p 000f8000 08:05 1576513 /lib/x86_64-linux-gnu/libm-2.15.so
7ffff73c8000-7ffff73c9000 rw-p 000f9000 08:05 1576513 /lib/x86_64-linux-gnu/libm-2.15.so
7ffff73c9000-7ffff74ab000 r-xp 00000000 08:05 5120266 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7ffff74ab000-7ffff76aa000 ---p 000e2000 08:05 5120266 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7ffff76aa000-7ffff76b2000 r--p 000e1000 08:05 5120266 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7ffff76b2000-7ffff76b4000 rw-p 000e9000 08:05 5120266 /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7ffff76b4000-7ffff76c9000 rw-p 00000000 00:00 0
7ffff76c9000-7ffff7726000 r-xp 00000000 08:05 2898 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2
7ffff7726000-7ffff7925000 ---p 0005d000 08:05 2898 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2
7ffff7925000-7ffff7927000 r--p 0005c000 08:05 2898 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2
7ffff7927000-7ffff7928000 rw-p 0005e000 08:05 2898 /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2
7ffff7928000-7ffff7929000 rw-p 00000000 00:00 0
7ffff7929000-7ffff798a000 r-xp 00000000 08:05 5119616 /usr/lib/x86_64-linux-gnu/libGLEW.so.1.6.0
7ffff798a000-7ffff7b89000 ---p 00061000 08:05 5119616 /usr/lib/x86_64-linux-gnu/libGLEW.so.1.6.0
7ffff7b89000-7ffff7b8f000 r--p 00060000 08:05 5119616 /usr/lib/x86_64-linux-gnu/libGLEW.so.1.6.0
7ffff7b8f000-7ffff7b90000 rw-p 00066000 08:05 5119616 /usr/lib/x86_64-linux-gnu/libGLEW.so.1.6.0
7ffff7b90000-7ffff7b94000 rw-p 00000000 00:00 0
Program received signal SIGABRT, Aborted.
0x00007ffff6b32445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0 0x00007ffff6b32445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007ffff6b35bab in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2 0x00007ffff6b6fe2e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3 0x00007ffff6b7a626 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4 0x00007ffff4537bb5 in _mesa_symbol_table_dtor ()
from /usr/lib/x86_64-linux-gnu/dri/libdricore.so
#5 0x00007ffff41024dd in glsl_symbol_table::~glsl_symbol_table() ()
from /usr/lib/x86_64-linux-gnu/dri/libglsl.so
#6 0x00007ffff4112306 in cross_validate_globals(gl_shader_program*, gl_shader**, unsigned int, bool) () from /usr/lib/x86_64-linux-gnu/dri/libglsl.so
#7 0x00007ffff4113e40 in link_shaders(gl_context*, gl_shader_program*) ()
from /usr/lib/x86_64-linux-gnu/dri/libglsl.so
#8 0x00007ffff459e21b in _mesa_glsl_link_shader ()
from /usr/lib/x86_64-linux-gnu/dri/libdricore.so
#9 0x00007ffff4592c39 in _mesa_get_fixed_func_fragment_program ()
from /usr/lib/x86_64-linux-gnu/dri/libdricore.so
#10 0x00007ffff44978e2 in _mesa_update_state_locked ()
from /usr/lib/x86_64-linux-gnu/dri/libdricore.so
#11 0x00007ffff4497d51 in _mesa_update_state ()
from /usr/lib/x86_64-linux-gnu/dri/libdricore.so
#12 0x00007ffff44a9c48 in ?? ()
from /usr/lib/x86_64-linux-gnu/dri/libdricore.so
#13 0x00007ffff44aa364 in _mesa_TexImage2D ()
---Type <return> to continue, or q <return> to quit---
from /usr/lib/x86_64-linux-gnu/dri/libdricore.so
#14 0x0000000000418b1d in initResources () at src/model.cpp:126
#15 0x0000000000419a28 in main (argc=1, args=0x7fffffffe7e8)
at src/model.cpp:350
I am using make to compile with g++ -g. I'm running 64-bit Linux Mint.
That's all of the potentially useful information I could think of. If I did not supply enough information here to find a solution to this problem, just add a comment and I'll put in an edit with the info.
So... What can I do to fix this problem? I've been intermittently Googling it and trying to fix it for hours now, to no avail.