Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Issue a Core dumped due to invalid pointer freed during window construction  (Read 1649 times)

0 Members and 1 Guest are viewing this topic.

DavidBananier

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Hi everybody,


Here is my issue :

I recently compiled SFML from source on a Centos 7.4 with the github using CMAKE. I use Codeblocks to develop and everything compile fine with no error. The issue comes when I execute any programm I compiled. For now I've tried with the sfml examples on the linux tutorial ( https://www.sfml-dev.org/tutorials/2.5/start-linux.php ) :
#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;
}
 

and with the window tutorial program ( https://www.sfml-dev.org/tutorials/2.5/window-window.php ) :

#include <SFML/Window.hpp>

int main()
{
    sf::Window window(sf::VideoMode(800, 600), "My window");

    // run the program as long as the window is open
    while (window.isOpen())
    {
        // check all the window's events that were triggered since the last iteration of the loop
        sf::Event event;
        while (window.pollEvent(event))
        {
            // "close requested" event: we close the window
            if (event.type == sf::Event::Closed)
                window.close();
        }
    }

    return 0;
}
 

And every time I get a core dumped when the program tries to construct the window object. (RenderWindow or Window, its the same issue). As I use Debug I have a full stacktrace and the exact point where it goes bad.

the exact stacktrace is :
warning: GDB: Failed to set controlling terminal: Opération non permise
*** Error in `/home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet': free(): invalid pointer: 0x0000000000750338 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x81489)[0x7ffff6ae6489]
/home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet[0x40163e]
/home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet[0x4015dc]
/home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet[0x401590]
/home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet[0x401506]
/home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet[0x4014a4]
/home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet(_ZN2sf6StringD1Ev+0x18)[0x40146c]
/usr/local/lib/libsfml-window-d.so.2.5(+0x351a9)[0x7ffff79171a9]
/usr/local/lib/libsfml-window-d.so.2.5(+0x36333)[0x7ffff7918333]
/usr/local/lib/libsfml-window-d.so.2.5(+0x2a767)[0x7ffff790c767]
/usr/local/lib/libsfml-window-d.so.2.5(_ZN2sf6Window6createENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE+0x10d)[0x7ffff790bca9]
/usr/local/lib/libsfml-graphics-d.so.2.5(_ZN2sf12RenderWindowC1ENS_9VideoModeERKNS_6StringEjRKNS_15ContextSettingsE+0x95)[0x7ffff7b9dfb9]
/home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet[0x401294]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7ffff6a873d5]
/home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet[0x4010f9]
======= Memory map: ========
00400000-00402000 r-xp 00000000 fd:02 3284232                            /home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet
00601000-00602000 r--p 00001000 fd:02 3284232                            /home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet
00602000-00603000 rw-p 00002000 fd:02 3284232                            /home/dbananier/MyProject/LeProjet/bin/Debug/LeProjet
00603000-0077f000 rw-p 00000000 00:00 0                                  [heap]
7fffe8000000-7fffe8021000 rw-p 00000000 00:00 0
7fffe8021000-7fffec000000 ---p 00000000 00:00 0
7fffeca9a000-7fffecb1a000 rw-s 114780000 00:05 13929                     /dev/dri/card0
7fffecb1a000-7fffecb1b000 ---p 00000000 00:00 0
7fffecb1b000-7fffed31b000 rw-p 00000000 00:00 0
7fffed31b000-7fffed327000 r-xp 00000000 fd:00 34874140                   /usr/lib64/libnss_files-2.17.so
7fffed327000-7fffed526000 ---p 0000c000 fd:00 34874140                   /usr/lib64/libnss_files-2.17.so
7fffed526000-7fffed527000 r--p 0000b000 fd:00 34874140                   /usr/lib64/libnss_files-2.17.so
7fffed527000-7fffed528000 rw-p 0000c000 fd:00 34874140                   /usr/lib64/libnss_files-2.17.so
7fffed528000-7fffed52e000 rw-p 00000000 00:00 0
7fffed52e000-7fffef9fd000 r-xp 00000000 fd:00 39422394                   /usr/lib64/libLLVM-6.0-rhel.so
7fffef9fd000-7fffefbfd000 ---p 024cf000 fd:00 39422394                   /usr/lib64/libLLVM-6.0-rhel.so
7fffefbfd000-7fffefddc000 r--p 024cf000 fd:00 39422394                   /usr/lib64/libLLVM-6.0-rhel.so
7fffefddc000-7fffefdff000 rw-p 026ae000 fd:00 39422394                   /usr/lib64/libLLVM-6.0-rhel.so
7fffefdff000-7fffefe3e000 rw-p 00000000 00:00 0
7fffefe3e000-7fffefe47000 r-xp 00000000 fd:00 34403634                   /usr/lib64/libdrm_amdgpu.so.1.0.0
7fffefe47000-7ffff0046000 ---p 00009000 fd:00 34403634                   /usr/lib64/libdrm_amdgpu.so.1.0.0
7ffff0046000-7ffff0047000 r--p 00008000 fd:00 34403634                   /usr/lib64/libdrm_amdgpu.so.1.0.0
7ffff0047000-7ffff0048000 rw-p 00009000 fd:00 34403634                   /usr/lib64/libdrm_amdgpu.so.1.0.0
7ffff0048000-7ffff0053000 r-xp 00000000 fd:00 34403640                   /usr/lib64/libdrm_radeon.so.1.0.1
7ffff0053000-7ffff0252000 ---p 0000b000 fd:00 34403640                   /usr/lib64/libdrm_radeon.so.1.0.1
7ffff0252000-7ffff0253000 r--p 0000a000 fd:00 34403640                   /usr/lib64/libdrm_radeon.so.1.0.1
7ffff0253000-7ffff0254000 rw-p 0000b000 fd:00 34403640                   /usr/lib64/libdrm_radeon.so.1.0.1
7ffff0254000-7ffff025b000 r-xp 00000000 fd:00 34403638                   /usr/lib64/libdrm_nouveau.so.2.0.0
7ffff025b000-7ffff045a000 ---p 00007000 fd:00 34403638                   /usr/lib64/libdrm_nouveau.so.2.0.0
7ffff045a000-7ffff045b000 r--p 00006000 fd:00 34403638                   /usr/lib64/libdrm_nouveau.so.2.0.0
7ffff045b000-7ffff045c000 rw-p 00007000 fd:00 34403638                   /usr/lib64/libdrm_nouveau.so.2.0.0
7ffff045c000-7ffff0eef000 r-xp 00000000 fd:00 68352071                   /usr/lib64/dri/nouveau_dri.so
7ffff0eef000-7ffff10ef000 ---p 00a93000 fd:00 68352071                   /usr/lib64/dri/nouveau_dri.so
7ffff10ef000-7ffff1143000 r--p 00a93000 fd:00 68352071                   /usr/lib64/dri/nouveau_dri.so
7ffff1143000-7ffff114c000 rw-p 00ae7000 fd:00 68352071                   /usr/lib64/dri/nouveau_dri.so
7ffff114c000-7ffff1344000 rw-p 00000000 00:00 0
7ffff1344000-7ffff13a4000 r-xp 00000000 fd:00 33630207                   /usr/lib64/libpcre.so.1.2.0
7ffff13a4000-7ffff15a4000 ---p 00060000 fd:00 33630207                   /usr/lib64/libpcre.so.1.2.0
7ffff15a4000-7ffff15a5000 r--p 00060000 fd:00 33630207                   /usr/lib64/libpcre.so.1.2.0
7ffff15a5000-7ffff15a6000 rw-p 00061000 fd:00 33630207                   /usr/lib64/libpcre.so.1.2.0
7ffff15a6000-7ffff15ca000 r-xp 00000000 fd:00 34039244                   /usr/lib64/libselinux.so.1
7ffff15ca000-7ffff17c9000 ---p 00024000 fd:00 34039244                   /usr/lib64/libselinux.so.1
7ffff17c9000-7ffff17ca000 r--p 00023000 fd:00 34039244                   /usr/lib64/libselinux.so.1
7ffff17ca000-7ffff17cb000 rw-p 00024000 fd:00 34039244                   /usr/lib64/libselinux.so.1
7ffff17cb000-7ffff17cd000 rw-p 00000000 00:00 0
7ffff17cd000-7ffff17dd000 r-xp 00000000 fd:00 34403632                   /usr/lib64/libdrm.so.2.4.0
7ffff17dd000-7ffff19dd000 ---p 00010000 fd:00 34403632                   /usr/lib64/libdrm.so.2.4.0
7ffff19dd000-7ffff19de000 r--p 00010000 fd:00 34403632                   /usr/lib64/libdrm.so.2.4.0
7ffff19de000-7ffff19df000 rw-p 00011000 fd:00 34403632                   /usr/lib64/libdrm.so.2.4.0
7ffff19df000-7ffff19e4000 r-xp 00000000 fd:00 34425469                   /usr/lib64/libXxf86vm.so.1.0.0
7ffff19e4000-7ffff1be3000 ---p 00005000 fd:00 34425469                   /usr/lib64/libXxf86vm.so.1.0.0
7ffff1be3000-7ffff1be4000 r--p 00004000 fd:00 34425469                   /usr/lib64/libXxf86vm.so.1.0.0
7ffff1be4000-7ffff1be5000 rw-p 00005000 fd:00 34425469                   /usr/lib64/libXxf86vm.so.1.0.0
7ffff1be5000-7ffff1be9000 r-xp 00000000 fd:00 33637372                   /usr/lib64/libxcb-dri2.so.0.0.0
7ffff1be9000-7ffff1de8000 ---p 00004000 fd:00 33637372                   /usr/lib64/libxcb-dri2.so.0.0.0
7ffff1de8000-7ffff1de9000 r--p 00003000 fd:00 33637372                   /usr/lib64/libxcb-dri2.so.0.0.0
7ffff1de9000-7ffff1dea000 rw-p 00004000 fd:00 33637372                   /usr/lib64/libxcb-dri2.so.0.0.0
7ffff1dea000-7ffff1e03000 r-xp 00000000 fd:00 33637405                   /usr/lib64/libxcb-glx.so.0.0.0
7ffff1e03000-7ffff2002000 ---p 00019000 fd:00 33637405                   /usr/lib64/libxcb-glx.so.0.0.0
7ffff2002000-7ffff2004000 r--p 00018000 fd:00 33637405                   /usr/lib64/libxcb-glx.so.0.0.0
7ffff2004000-7ffff2005000 rw-p 0001a000 fd:00 33637405                   /usr/lib64/libxcb-glx.so.0.0.0
7ffff2005000-7ffff2006000 r-xp 00000000 fd:00 33637330                   /usr/lib64/libX11-xcb.so.1.0.0
7ffff2006000-7ffff2205000 ---p 00001000 fd:00 33637330                   /usr/lib64/libX11-xcb.so.1.0.0
7ffff2205000-7ffff2206000 r--p 00000000 fd:00 33637330                   /usr/lib64/libX11-xcb.so.1.0.0
7ffff2206000-7ffff2207000 rw-p 00001000 fd:00 33637330                   /usr/lib64/libX11-xcb.so.1.0.0
7ffff2207000-7ffff220c000 r-xp 00000000 fd:00 33637338                   /usr/lib64/libXfixes.so.3.1.0
7ffff220c000-7ffff240b000 ---p 00005000 fd:00 33637338                   /usr/lib64/libXfixes.so.3.1.0
7ffff240b000-7ffff240c000 r--p 00004000 fd:00 33637338                   /usr/lib64/libXfixes.so.3.1.0
7ffff240c000-7ffff240d000 rw-p 00005000 fd:00 33637338                   /usr/lib64/libXfixes.so.3.1.0
7ffff240d000-7ffff240f000 r-xp 00000000 fd:00 35174946                   /usr/lib64/libXdamage.so.1.1.0
7ffff240f000-7ffff260e000 ---p 00002000 fd:00 35174946                   /usr/lib64/libXdamage.so.1.1.0
7ffff260e000-7ffff260f000 r--p 00001000 fd:00 35174946                   /usr/lib64/libXdamage.so.1.1.0
7ffff260f000-7ffff2610000 rw-p 00002000 fd:00 35174946                   /usr/lib64/libXdamage.so.1.1.0
7ffff2610000-7ffff263c000 r-xp 00000000 fd:00 33882523                   /usr/lib64/libglapi.so.0.0.0
7ffff263c000-7ffff283b000 ---p 0002c000 fd:00 33882523                   /usr/lib64/libglapi.so.0.0.0
7ffff283b000-7ffff283f000 r--p 0002b000 fd:00 33882523                   /usr/lib64/libglapi.so.0.0.0
7ffff283f000-7ffff2840000 rw-p 0002f000 fd:00 33882523                   /usr/lib64/libglapi.so.0.0.0
7ffff2840000-7ffff2841000 rw-p 00000000 00:00 0
7ffff2841000-7ffff2842000 r-xp 00000000 fd:00 33882514                   /usr/lib64/libxshmfence.so.1.0.0
7ffff2842000-7ffff2a42000 ---p 00001000 fd:00 33882514                   /usr/lib64/libxshmfence.so.1.0.0
7ffff2a42000-7ffff2a43000 r--p 00001000 fd:00 33882514                   /usr/lib64/libxshmfence.so.1.0.0
7ffff2a43000-7ffff2a44000 rw-p 00002000 fd:00 33882514                   /usr/lib64/libxshmfence.so.1.0.0
7ffff2a44000-7ffff2a4a000 r-xp 00000000 fd:00 33638158                   /usr/lib64/libxcb-sync.so.1.0.0
7ffff2a4a000-7ffff2c49000 ---p 00006000 fd:00 33638158                   /usr/lib64/libxcb-sync.so.1.0.0
7ffff2c49000-7ffff2c4a000 r--p 00005000 fd:00 33638158                   /usr/lib64/libxcb-sync.so.1.0.0
7ffff2c4a000-7ffff2c4b000 rw-p 00006000 fd:00 33638158                   /usr/lib64/libxcb-sync.so.1.0.0
7ffff2c4b000-7ffff2c4d000 r-xp 00000000 fd:00 33637408                   /usr/lib64/libxcb-present.so.0.0.0
7ffff2c4d000-7ffff2e4c000 ---p 00002000 fd:00 33637408                   /usr/lib64/libxcb-present.so.0.0.0
7ffff2e4c000-7ffff2e4d000 r--p 00001000 fd:00 33637408                   /usr/lib64/libxcb-present.so.0.0.0
7ffff2e4d000-7ffff2e4e000 rw-p 00002000 fd:00 33637408                   /usr/lib64/libxcb-present.so.0.0.0
7ffff2e4e000-7ffff2e55000 r-xp 00000000 fd:00 33637271                   /usr/lib64/libxcb-xfixes.so.0.0.0
7ffff2e55000-7ffff3054000 ---p 00007000 fd:00 33637271                   /usr/lib64/libxcb-xfixes.so.0.0.0
7ffff3054000-7ffff3055000 r--p 00006000 fd:00 33637271                   /usr/lib64/libxcb-xfixes.so.0.0.0
7ffff3055000-7ffff3056000 rw-p 00007000 fd:00 33637271                   /usr/lib64/libxcb-xfixes.so.0.0.0
7ffff3056000-7ffff3059000 r-xp 00000000 fd:00 33637401                   /usr/lib64/libxcb-dri3.so.0.0.0
7ffff3059000-7ffff3258000 ---p 00003000 fd:00 33637401                   /usr/lib64/libxcb-dri3.so.0.0.0
7ffff3258000-7ffff3259000 r--p 00002000 fd:00 33637401                   /usr/lib64/libxcb-dri3.so.0.0.0
7ffff3259000-7ffff325a000 rw-p 00003000 fd:00 33637401                   /usr/lib64/libxcb-dri3.so.0.0.0
7ffff325a000-7ffff3281000 r-xp 00000000 fd:00 33637240                   /usr/lib64/libexpat.so.1.6.0
7ffff3281000-7ffff3481000 ---p 00027000 fd:00 33637240                   /usr/lib64/libexpat.so.1.6.0
7ffff3481000-7ffff3483000 r--p 00027000 fd:00 33637240                   /usr/lib64/libexpat.so.1.6.0
7ffff3483000-7ffff3484000 rw-p 00029000 fd:00 33637240                   /usr/lib64/libexpat.so.1.6.0
7ffff3484000-7ffff34f5000 r-xp 00000000 fd:00 35302131                   /usr/lib64/libGLX_mesa.so.0.0.0
7ffff34f5000-7ffff36f5000 ---p 00071000 fd:00 35302131                   /usr/lib64/libGLX_mesa.so.0.0.0
7ffff36f5000-7ffff36f8000 r--p 00071000 fd:00 35302131                   /usr/lib64/libGLX_mesa.so.0.0.0
7ffff36f8000-7ffff36f9000 rw-p 00074000 fd:00 35302131                   /usr/lib64/libGLX_mesa.so.0.0.0
7ffff36f9000-7ffff36fa000 rw-p 00000000 00:00 0
7ffff36fa000-7ffff371f000 r-xp 00000000 fd:00 33637227                   /usr/lib64/liblzma.so.5.2.2
7ffff371f000-7ffff391e000 ---p 00025000 fd:00 33637227                   /usr/lib64/liblzma.so.5.2.2
7ffff391e000-7ffff391f000 r--p 00024000 fd:00 33637227                   /usr/lib64/liblzma.so.5.2.2
7ffff391f000-7ffff3920000 rw-p 00025000 fd:00 33637227                   /usr/lib64/liblzma.so.5.2.2
7ffff3920000-7ffff3937000 r-xp 00000000 fd:00 33630241                   /usr/lib64/libelf-0.172.so
7ffff3937000-7ffff3b36000 ---p 00017000 fd:00 33630241                   /usr/lib64/libelf-0.172.so
7ffff3b36000-7ffff3b37000 r--p 00016000 fd:00 33630241                   /usr/lib64/libelf-0.172.so
7ffff3b37000-7ffff3b38000 rw-p 00017000 fd:00 33630241                   /usr/lib64/libelf-0.172.so
7ffff3b38000-7ffff3b3c000 r-xp 00000000 fd:00 33637446                   /usr/lib64/libattr.so.1.1.0
7ffff3b3c000-7ffff3d3b000 ---p 00004000 fd:00 33637446                   /usr/lib64/libattr.so.1.1.0
7ffff3d3b000-7ffff3d3c000 r--p 00003000 fd:00 33637446                   /usr/lib64/libattr.so.1.1.0
7ffff3d3c000-7ffff3d3d000 rw-p 00004000 fd:00 33637446                   /usr/lib64/libattr.so.1.1.0
7ffff3d3d000-7ffff3d3f000 r-xp 00000000 fd:00 33637225                   /usr/lib64/libXau.so.6.0.0
7ffff3d3f000-7ffff3f3f000 ---p 00002000 fd:00 33637225                   /usr/lib64/libXau.so.6.0.0
7ffff3f3f000-7ffff3f40000 r--p 00002000 fd:00 33637225                   /usr/lib64/libXau.so.6.0.0
7ffff3f40000-7ffff3f41000 rw-p 00003000 fd:00 33637225                   /usr/lib64/libXau.so.6.0.0
7ffff3f41000-7ffff3f8d000 r-xp 00000000 fd:00 34402708                   /usr/lib64/libdw-0.172.so
7ffff3f8d000-7ffff418d000 ---p 0004c000 fd:00 34402708                   /usr/lib64/libdw-0.172.so
7ffff418d000-7ffff418f000 r--p 0004c000 fd:00 34402708                   /usr/lib64/libdw-0.172.so
7ffff418f000-7ffff4190000 rw-p 0004e000 fd:00 34402708                   /usr/lib64/libdw-0.172.so
7ffff4190000-7ffff4194000 r-xp 00000000 fd:00 33630259                   /usr/lib64/libcap.so.2.22
7ffff4194000-7ffff4393000 ---p 00004000 fd:00 33630259                   /usr/lib64/libcap.so.2.22
7ffff4393000-7ffff4394000 r--p 00003000 fd:00 33630259                   /usr/lib64/libcap.so.2.22
7ffff4394000-7ffff4395000 rw-p 00004000 fd:00 33630259                   /usr/lib64/libcap.so.2.22
7ffff4395000-7ffff43be000 r-xp 00000000 fd:00 33630247                   /usr/lib64/libpng15.so.15.13.0
7ffff43be000-7ffff45be000 ---p 00029000 fd:00 33630247                   /usr/lib64/libpng15.so.15.13.0
7ffff45be000-7ffff45bf000 r--p 00029000 fd:00 33630247                   /usr/lib64/libpng15.so.15.13.0
7ffff45bf000-7ffff45c0000 rw-p 0002a000 fd:00 33630247                   /usr/lib64/libpng15.so.15.13.0
7ffff45c0000-7ffff45cf000 r-xp 00000000 fd:00 33637223                   /usr/lib64/libbz2.so.1.0.6
7ffff45cf000-7ffff47ce000 ---p 0000f000 fd:00 33637223                   /usr/lib64/libbz2.so.1.0.6
7ffff47ce000-7ffff47cf000 r--p 0000e000 fd:00 33637223                   /usr/lib64/libbz2.so.1.0.6
7ffff47cf000-7ffff47d0000 rw-p 0000f000 fd:00 33637223                   /usr/lib64/libbz2.so.1.0.6
7ffff47d0000-7ffff47e5000 r-xp 00000000 fd:00 33630222                   /usr/lib64/libz.so.1.2.7
7ffff47e5000-7ffff49e4000 ---p 00015000 fd:00 33630222                   /usr/lib64/libz.so.1.2.7
7ffff49e4000-7ffff49e5000 r--p 00014000 fd:00 33630222                   /usr/lib64/libz.so.1.2.7
7ffff49e5000-7ffff49e6000 rw-p 00015000 fd:00 33630222                   /usr/lib64/libz.so.1.2.7
7ffff49e6000-7ffff49ef000 r-xp 00000000 fd:00 33637340                   /usr/lib64/libXrender.so.1.3.0
7ffff49ef000-7ffff4bef000 ---p 00009000 fd:00 33637340                   /usr/lib64/libXrender.so.1.3.0
7ffff4bef000-7ffff4bf0000 r--p 00009000 fd:00 33637340                   /usr/lib64/libXrender.so.1.3.0
7ffff4bf0000-7ffff4bf1000 rw-p 0000a000 fd:00 33637340                   /usr/lib64/libXrender.so.1.3.0
7ffff4bf1000-7ffff4c18000 r-xp 00000000 fd:00 33637327                   /usr/lib64/libxcb.so.1.1.0
7ffff4c18000-7ffff4e17000 ---p 00027000 fd:00 33637327                   /usr/lib64/libxcb.so.1.1.0
7ffff4e17000-7ffff4e18000 r--p 00026000 fd:00 33637327                   /usr/lib64/libxcb.so.1.1.0
7ffff4e18000-7ffff4e19000 rw-p 00027000 fd:00 33637327                   /usr/lib64/libxcb.so.1.1.0
7ffff4e19000-7ffff4e1b000 r-xp 00000000 fd:00 34750743                   /usr/lib64/libdl-2.17.so
7ffff4e1b000-7ffff501b000 ---p 00002000 fd:00 34750743                   /usr/lib64/libdl-2.17.so
7ffff501b000-7ffff501c000 r--p 00002000 fd:00 34750743                   /usr/lib64/libdl-2.17.so
7ffff501c000-7ffff501d000 rw-p 00003000 fd:00 34750743                   /usr/lib64/libdl-2.17.so
7ffff501d000-7ffff508b000 r-xp 00000000 fd:00 36031645                   /usr/lib64/libGLdispatch.so.0.0.0
7ffff508b000-7ffff528a000 ---p 0006e000 fd:00 36031645                   /usr/lib64/libGLdispatch.so.0.0.0
7ffff528a000-7ffff52b2000 r--p 0006d000 fd:00 36031645                   /usr/lib64/libGLdispatch.so.0.0.0
7ffff52b2000-7ffff52b3000 rw-p 00095000 fd:00 36031645                   /usr/lib64/libGLdispatch.so.0.0.0
7ffff52b3000-7ffff52d3000 rw-p 00000000 00:00 0
7ffff52d3000-7ffff52e4000 r-xp 00000000 fd:00 35174927                   /usr/lib64/libXext.so.6.4.0
7ffff52e4000-7ffff54e3000 ---p 00011000 fd:00 35174927                   /usr/lib64/libXext.so.6.4.0
7ffff54e3000-7ffff54e4000 r--p 00010000 fd:00 35174927                   /usr/lib64/libXext.so.6.4.0
7ffff54e4000-7ffff54e5000 rw-p 00011000 fd:00 35174927                   /usr/lib64/libXext.so.6.4.0
7ffff54e5000-7ffff54f5000 r-xp 00000000 fd:00 35163597                   /usr/lib64/libGLX.so.0.0.0
7ffff54f5000-7ffff56f5000 ---p 00010000 fd:00 35163597                   /usr/lib64/libGLX.so.0.0.0
7ffff56f5000-7ffff56f6000 r--p 00010000 fd:00 35163597                   /usr/lib64/libGLX.so.0.0.0
7ffff56f6000-7ffff56f7000 rw-p 00011000 fd:00 35163597                   /usr/lib64/libGLX.so.0.0.0
7ffff56f7000-7ffff5717000 rw-p 00000000 00:00 0
7ffff5717000-7ffff571e000 r-xp 00000000 fd:00 34874147                   /usr/lib64/librt-2.17.so
7ffff571e000-7ffff591d000 ---p 00007000 fd:00 34874147                   /usr/lib64/librt-2.17.so
7ffff591d000-7ffff591e000 r--p 00006000 fd:00 34874147                   /usr/lib64/librt-2.17.so
7ffff591e000-7ffff591f000 rw-p 00007000 fd:00 34874147                   /usr/lib64/librt-2.17.so
7ffff591f000-7ffff5936000 r-xp 00000000 fd:00 33630084                   /usr/lib64/libpthread-2.17.so
7ffff5936000-7ffff5b35000 ---p 00017000 fd:00 33630084                   /usr/lib64/libpthread-2.17.so
7ffff5b35000-7ffff5b36000 r--p 00016000 fd:00 33630084                   /usr/lib64/libpthread-2.17.so
7ffff5b36000-7ffff5b37000 rw-p 00017000 fd:00 33630084                   /usr/lib64/libpthread-2.17.so
7ffff5b37000-7ffff5b3b000 rw-p 00000000 00:00 0
7ffff5b3b000-7ffff5b50000 r-xp 00000000 fd:00 34402732                   /usr/lib64/libudev.so.1.6.2
7ffff5b50000-7ffff5d4f000 ---p 00015000 fd:00 34402732                   /usr/lib64/libudev.so.1.6.2
7ffff5d4f000-7ffff5d50000 r--p 00014000 fd:00 34402732                   /usr/lib64/libudev.so.1.6.2
7ffff5d50000-7ffff5d51000 rw-p 00015000 fd:00 34402732                   /usr/lib64/libudev.so.1.6.2
7ffff5d51000-7ffff5e08000 r-xp 00000000 fd:00 33853968                   /usr/lib64/libfreetype.so.6.14.0
7ffff5e08000-7ffff6008000 ---p 000b7000 fd:00 33853968                   /usr/lib64/libfreetype.so.6.14.0
7ffff6008000-7ffff600f000 r--p 000b7000 fd:00 33853968                   /usr/lib64/libfreetype.so.6.14.0
7ffff600f000-7ffff6010000 rw-p 000be000 fd:00 33853968                   /usr/lib64/libfreetype.so.6.14.0
7ffff6010000-7ffff601a000 r-xp 00000000 fd:00 33637342                   /usr/lib64/libXrandr.so.2.2.0
7ffff601a000-7ffff6219000 ---p 0000a000 fd:00 33637342                   /usr/lib64/libXrandr.so.2.2.0
7ffff6219000-7ffff621a000 r--p 00009000 fd:00 33637342                   /usr/lib64/libXrandr.so.2.2.0
7ffff621a000-7ffff621b000 rw-p 0000a000 fd:00 33637342                   /usr/lib64/libXrandr.so.2.2.0
7ffff621b000-7ffff6353000 r-xp 00000000 fd:00 33637332                   /usr/lib64/libX11.so.6.3.0
7ffff6353000-7ffff6553000 ---p 00138000 fd:00 33637332                   /usr/lib64/libX11.so.6.3.0
7ffff6553000-7ffff6554000 r--p 00138000 fd:00 33637332                   /usr/lib64/libX11.so.6.3.0
7ffff6554000-7ffff6559000 rw-p 00139000 fd:00 33637332                   /usr/lib64/libX11.so.6.3.0
7ffff6559000-7ffff65d7000 r-xp 00000000 fd:00 35313046                   /usr/lib64/libGLU.so.1.3.1
7ffff65d7000-7ffff67d7000 ---p 0007e000 fd:00 35313046                   /usr/lib64/libGLU.so.1.3.1
7ffff67d7000-7ffff67d8000 r--p 0007e000 fd:00 35313046                   /usr/lib64/libGLU.so.1.3.1
7ffff67d8000-7ffff67d9000 rw-p 0007f000 fd:00 35313046                   /usr/lib64/libGLU.so.1.3.1
7ffff67d9000-7ffff684a000 r-xp 00000000 fd:00 34425501                   /usr/lib64/libGL.so.1.7.0
7ffff684a000-7ffff6a49000 ---p 00071000 fd:00 34425501                   /usr/lib64/libGL.so.1.7.0
7ffff6a49000-7ffff6a63000 r--p 00070000 fd:00 34425501                   /usr/lib64/libGL.so.1.7.0
7ffff6a63000-7ffff6a64000 rw-p 0008a000 fd:00 34425501                   /usr/lib64/libGL.so.1.7.0
7ffff6a64000-7ffff6a65000 rw-p 00000000 00:00 0
7ffff6a65000-7ffff6c27000 r-xp 00000000 fd:00 33628010                   /usr/lib64/libc-2.17.so
7ffff6c27000-7ffff6e27000 ---p 001c2000 fd:00 33628010                   /usr/lib64/libc-2.17.so
7ffff6e27000-7ffff6e2b000 r--p 001c2000 fd:00 33628010                   /usr/lib64/libc-2.17.so
7ffff6e2b000-7ffff6e2d000 rw-p 001c6000 fd:00 33628010                   /usr/lib64/libc-2.17.so
7ffff6e2d000-7ffff6e32000 rw-p 00000000 00:00 0
7ffff6e32000-7ffff6e48000 r-xp 00000000 fd:00 6740056                    /usr/local/lib64/libgcc_s.so.1
7ffff6e48000-7ffff7047000 ---p 00016000 fd:00 6740056                    /usr/local/lib64/libgcc_s.so.1
7ffff7047000-7ffff7048000 r--p 00015000 fd:00 6740056                    /usr/local/lib64/libgcc_s.so.1
7ffff7048000-7ffff7049000 rw-p 00016000 fd:00 6740056                    /usr/local/lib64/libgcc_s.so.1
7ffff7049000-7ffff714a000 r-xp 00000000 fd:00 34808945                   /usr/lib64/libm-2.17.so
7ffff714a000-7ffff7349000 ---p 00101000 fd:00 34808945                   /usr/lib64/libm-2.17.so
7ffff7349000-7ffff734a000 r--p 00100000 fd:00 34808945                   /usr/lib64/libm-2.17.so
7ffff734a000-7ffff734b000 rw-p 00101000 fd:00 34808945                   /usr/lib64/libm-2.17.so
7ffff734b000-7ffff74b6000 r-xp 00000000 fd:00 6740436                    /usr/local/lib64/libstdc++.so.6.0.21
7ffff74b6000-7ffff76b6000 ---p 0016b000 fd:00 6740436                    /usr/local/lib64/libstdc++.so.6.0.21
7ffff76b6000-7ffff76c0000 r--p 0016b000 fd:00 6740436                    /usr/local/lib64/libstdc++.so.6.0.21
7ffff76c0000-7ffff76c2000 rw-p 00175000 fd:00 6740436                    /usr/local/lib64/libstdc++.so.6.0.21
7ffff76c2000-7ffff76c6000 rw-p 00000000 00:00 0
7ffff76c6000-7ffff76e1000 r-xp 00000000 fd:00 101129122                  /usr/local/lib/libsfml-system-d.so.2.5.1
7ffff76e1000-7ffff78e0000 ---p 0001b000 fd:00 101129122                  /usr/local/lib/libsfml-system-d.so.2.5.1
7ffff78e0000-7ffff78e1000 r--p 0001a000 fd:00 101129122                  /usr/local/lib/libsfml-system-d.so.2.5.1
7ffff78e1000-7ffff78e2000 rw-p 0001b000 fd:00 101129122                  /usr/local/lib/libsfml-system-d.so.2.5.1
7ffff78e2000-7ffff7939000 r-xp 00000000 fd:00 101194492                  /usr/local/lib/libsfml-window-d.so.2.5.1
7ffff7939000-7ffff7b38000 ---p 00057000 fd:00 101194492                  /usr/local/lib/libsfml-window-d.so.2.5.1
7ffff7b38000-7ffff7b39000 r--p 00056000 fd:00 101194492                  /usr/local/lib/libsfml-window-d.so.2.5.1
7ffff7b39000-7ffff7b3b000 rw-p 00057000 fd:00 101194492                  /usr/local/lib/libsfml-window-d.so.2.5.1
7ffff7b3b000-7ffff7b3c000 rw-p 00000000 00:00 0
7ffff7b3c000-7ffff7bd6000 r-xp 00000000 fd:00 101284574                  /usr/local/lib/libsfml-graphics-d.so.2.5.1
7ffff7bd6000-7ffff7dd6000 ---p 0009a000 fd:00 101284574                  /usr/local/lib/libsfml-graphics-d.so.2.5.1
7ffff7dd6000-7ffff7dd7000 r--p 0009a000 fd:00 101284574                  /usr/local/lib/libsfml-graphics-d.so.2.5.1
7ffff7dd7000-7ffff7ddb000 rw-p 0009b000 fd:00 101284574                  /usr/local/lib/libsfml-graphics-d.so.2.5.1
7ffff7ddb000-7ffff7dfd000 r-xp 00000000 fd:00 33628002                   /usr/lib64/ld-2.17.so
7ffff7e78000-7ffff7fb9000 rw-s 00000000 fd:02 4068099                    /home/dbananier/.cache/mesa_shader_cache/index
7ffff7fb9000-7ffff7fc9000 rw-p 00000000 00:00 0
7ffff7ff5000-7ffff7ff6000 rw-p 00000000 00:00 0
7ffff7ff6000-7ffff7ff7000 rw-s 00000000 00:04 279551                     /memfd:xshmfence (deleted)
7ffff7ff7000-7ffff7ff8000 rwxp 00000000 00:00 0
7ffff7ff8000-7ffff7ff9000 rw-s 10e3b0000 00:05 13929                     /dev/dri/card0
7ffff7ff9000-7ffff7ffa000 rw-p 00000000 00:00 0
7ffff7ffa000-7ffff7ffc000 r-xp 00000000 00:00 0                          [vdso]
7ffff7ffc000-7ffff7ffd000 r--p 00021000 fd:00 33628002                   /usr/lib64/ld-2.17.so
7ffff7ffd000-7ffff7ffe000 rw-p 00022000 fd:00 33628002                   /usr/lib64/ld-2.17.so
7ffff7ffe000-7ffff7fff000 rw-p 00000000 00:00 0
7ffffffde000-7ffffffff000 rw-p 00000000 00:00 0                          [stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

and attached is the debug's call stack perspective on Codeblocks.

The stacktrace provided comes from the first example (from start linux) and it is, as far as I know, the same one on the other Prog. I've tried to move the RenderWindow initialisation later but I have the same issue (so no issue when creating a CircleShape.

If anyone has a clue? I had a badly installed SFML before that I manually erased (installed in /usr/local/) and I compiled SFML With codeblocks using root privilege for "make install".
 I have also this weird impression that I missed some very basics...

Thank you for your help.

Bananier David
« Last Edit: December 18, 2018, 11:14:25 am by Laurent »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10044
    • View Profile
    • development blog
    • Email
Looks to me like you're using different C++ string implementations for SFML and for your application.
Make sure when you build SFML and build your application, you use the same -std=c++17 (or similar) flag.

Pre C++11 and C++11 have different ABIs for std:: string and they are incompatible with each other.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

DavidBananier

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Thank you for your respond, I'll find some documentation on that. I feel that it is closed to resolve my issue, but when I change my c++ flags, nothing change, same dump. I've tried to use other SFML obect that use std String but they do not put any issue like that.

I have another issue with Image I will try to solve later (Compilation failure). The error only occure on RenderWindow (or Window) and nowhere else, whichever flag I put. I don't see the Cmake flag which determine which c++ compilation version is used to compile SFML Library.

EDIT : In my investigation, I noticed in the callstack that the program fail somewhere in the ewmhSupported() method's call during the implementation of the X11 window. Maybe there is something about this.

RE-EDIT : I have another issue which, I think, is linked : When I create an image instance and I try to load it form file with loadFromFile Method, I get the following error :

/home/dbananier/MyProject/LeProjet/main.cpp:8 : référence indéfinie vers « sf::Image::loadFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) »
collect2: erreur: ld a retourné 1 code d'état d'exécution

I read on other posts that it is a compiler mismatch issue, but I've tried all the possible configurations to get the exact same compiler and linker settings for SFML and my program : -std=c++1y and -m64 to be sure it is compiled for 64 architecture. I use the exact same IDE with the same gcc compiler and the same settings. However, I still have the same issue.

RE-RE-EDIT : I used 5.3.0 version of gcc for information

Sincerely,

Bananier David
« Last Edit: December 20, 2018, 09:55:30 am by DavidBananier »

 

anything