Problem with the debugger



  • Hello I am new with QtCreator, and I have a problems when I debug.

    First thing:
    sometimes, when I compile I have got the error:
    "The program has unexpectedly finished."
    and it doesn't say anything else, not even a code error.

    Second thing:
    In a Qt project, when I debug with breakpoints I can't see the value of the pointer,
    for example if I do that:
    fileToolBar = addToolBar(tr("File"));
    I can't see anything about fileToolBar in the debugger.
    Weird thing is in a non-Qt project it perfectly works I can see the value of the pointers, I can even see what is in my std::vectors, std::maps etc ...

    So I think I have to change something in the parameters but I don't know what.

    Thank you and sorry English is not my first language.


  • Moderators

    sometimes, when I compile I have got the error:
    "The program has unexpectedly finished."

    • do you mean your program is crashing when you start it? Or does QtCreator crash if you compile your program?

    Second thing: I guess you built your program in debug mode? Do you execute the line fileToolBar = addToolBar(tr("File"));?



  • @jsulm

    Yes it crashes before I see my QDialog or my QWindow, I just get these lines in the debugger:

    Starting /home/myName/Dev/Qt/LearningQt/build-LearningQtDockWidgets-Desktop_Qt_5_3_GCC_64bit-Debug/MainWindowApplicationExample...
    The program has unexpectedly finished.
    /home/myName/Dev/Qt/LearningQt/build-LearningQtDockWidgets-Desktop_Qt_5_3_GCC_64bit-Debug/MainWindowApplicationExample crashed

    And when I look for on the internet with "The program has unexpectedly finished", most of the people also get a error code which helps to solve the problem, but I don't and I don't know why.

    Second thing:
    Yes I built in debug mode, It works but I've tried to see the data an I can't see anything about the Qt objects.
    I've just installed QtCreator 2 weeks ago and I probably have to change a lot of settings but I don't know what?!


  • Moderators

    In QtCreator go to Tools/Options/Build & Run/Debuggers. What do you see here? Are there any yellow or red exclamation marks?

    If your application crashes already during startup then probably some libraries cannot be found. you can try to execute "ldd YOUR_EXECUTABLE" on the command line to see whether all libraries are there.



  • @jsulm

    Yes I two red exclamation marks.
    One in "Kits" then "Manual" and there is a red mark in front of :Desktop (default)
    The second is in "Qt versions" then "Manual" there is a red mark in front of Qt 5.2.1 in PATH (qt5) /usr/lib/x86_64-linux-gnu/qt5/bin/qmake

    Otherwise I don't have the bug anymore and it was not a big problem actually but because of this bug I noticed that my debugger doesn't show me any information about the Qt objects.


  • Moderators

    What do you see if you position the mouse cursor over one of that exclamation marks? It should tell you what is wrong.



  • @jsulm
    Yes on the first exclamation mark I have got:
    http://www.hostingpics.net/viewer.php?id=525878Screen1.png
    [Hope the link works, I don't know how to share picture on forum.qt.

    And for the second exclamation mark I have got no pop-up window.

    Last time it was not a real problem but now I have a real problem I can't debug and no information in the debugger,
    When I click on my sudoku grid (yes I know it's stupid I try to code a sudoku but I have to start somewhere ^^) I just have:
    Starting /home/myName/Dev/Qt/LearningQt/Sudoku/build-Sudoku-Desktop_Qt_5_3_GCC_64bit-Debug/Sudoku...
    The program has unexpectedly finished.
    /home/myName/Dev/Qt/LearningQt/Sudoku/build-Sudoku-Desktop_Qt_5_3_GCC_64bit-Debug/Sudoku crashed

    Thanks.


  • Moderators

    There is no compiler set. You should check on the compiler tab and select the right one in the kit.

    It's not stupid to implement sudoku as an exercise :-)
    If it crashes during startup then maybe some shared libraries are not found. To check this go to /home/myName/Dev/Qt/LearningQt/Sudoku/build-Sudoku-Desktop_Qt_5_3_GCC_64bit-Debug and call "ldd Sudoku". It will show you on which libraries your program depends and whether all of them can be found.



  • @jsulm

    What do you mean by "call ldd Sudoku"?
    But no I don't think it's a dependence problem because I don't have any dependence in this project and I can use the debugger and the break points, I can see the values of my int, double, string ... just the Qt object I can't see them in the debugger.

    And about the crash no it starts ok, I can see my Sudoku grid but I start clicking on the button and sometimes it crashes.

    I have a new message :
    &"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n"


  • Moderators

    Well before you wrote your application crashes before dialog or window is shown.
    If it crashes during runtime then debug your application step by step until it crashes then you will see where it crashes.
    You should check your slots which are called when you click one of the buttons.
    With call "ldd sudoku" I mean execute the command ldd with parameter Sudoku in the terminal window.



  • @jsulm

    Yes my first bug crashed instantly but I debugged it now I can see my windows and buttons, I can click on, I have found the bug, it's the second line of :

        if (m_frameSudoku->isHidden())
            m_frameSudoku->setHidden(false);
    

    I have a segmentation fault which is weird because the first line is alright and then my m_frameSudoku (which is a pointer) has not change at all because isHidden is const. So what's the problem with setHidden() ?

    Otherwise, that's the ldd command's result:

    myName@Zell:~/Dev/Qt/LearningQt/Sudoku/build-Sudoku-Desktop_Qt_5_3_GCC_64bit-Debug$ ldd -v Sudoku
    linux-vdso.so.1 => (0x00007ffdddfe9000)
    libQt5Widgets.so.5 => /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libQt5Widgets.so.5 (0x00007f9e28082000)
    libQt5Gui.so.5 => /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libQt5Gui.so.5 (0x00007f9e2795e000)
    libQt5Core.so.5 => /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libQt5Core.so.5 (0x00007f9e2722a000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9e26f0c000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9e26cf5000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9e26930000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9e26712000)
    libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f9e264c0000)
    libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f9e261b8000)
    libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f9e25e83000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9e25b7c000)
    libGL.so.1 => /usr/lib/fglrx/libGL.so.1 (0x00007f9e25980000)
    libicui18n.so.52 => /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libicui18n.so.52 (0x00007f9e2555f000)
    libicuuc.so.52 => /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libicuuc.so.52 (0x00007f9e251d7000)
    libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9e24fd3000)
    libgthread-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f9e24dd1000)
    librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f9e24bc8000)
    /lib64/ld-linux-x86-64.so.2 (0x000055b53cb16000)
    libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007f9e249c0000)
    libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f9e24781000)
    libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f9e24562000)
    libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f9e24350000)
    libicudata.so.52 => /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libicudata.so.52 (0x00007f9e22ae4000)
    libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f9e228e0000)
    libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f9e226d9000)

        Version information:
        ./Sudoku:
                libgcc_s.so.1 (GCC_3.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1
                libstdc++.so.6 (CXXABI_1.3) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libQt5Widgets.so.5:
                libpthread.so.0 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libpthread.so.0
                libstdc++.so.6 (CXXABI_1.3) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libQt5Gui.so.5:
                libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
                libstdc++.so.6 (CXXABI_1.3) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.11) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
        /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libQt5Core.so.5:
                ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
                librt.so.1 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/librt.so.1
                libgcc_s.so.1 (GCC_3.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1
                libgcc_s.so.1 (GCC_3.4) => /lib/x86_64-linux-gnu/libgcc_s.so.1
                libdl.so.2 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libdl.so.2
                libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
                libstdc++.so.6 (CXXABI_1.3) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libpthread.so.0 (GLIBC_2.3.3) => /lib/x86_64-linux-gnu/libpthread.so.0
                libpthread.so.0 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libpthread.so.0
                libpthread.so.0 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libpthread.so.0
                libc.so.6 (GLIBC_2.7) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.9) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
        /usr/lib/x86_64-linux-gnu/libstdc++.so.6:
                ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
                libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
                libgcc_s.so.1 (GCC_4.2.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1
                libgcc_s.so.1 (GCC_3.3) => /lib/x86_64-linux-gnu/libgcc_s.so.1
                libgcc_s.so.1 (GCC_3.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.18) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.17) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /lib/x86_64-linux-gnu/libgcc_s.so.1:
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /lib/x86_64-linux-gnu/libc.so.6:
                ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
                ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
        /lib/x86_64-linux-gnu/libpthread.so.0:
                ld-linux-x86-64.so.2 (GLIBC_2.2.5) => /lib64/ld-linux-x86-64.so.2
                ld-linux-x86-64.so.2 (GLIBC_2.3) => /lib64/ld-linux-x86-64.so.2
                ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_PRIVATE) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0:
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /lib/x86_64-linux-gnu/libglib-2.0.so.0:
                libpthread.so.0 (GLIBC_2.3.3) => /lib/x86_64-linux-gnu/libpthread.so.0
                libpthread.so.0 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libpthread.so.0
                libpthread.so.0 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libpthread.so.0
                libc.so.6 (GLIBC_2.7) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.9) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.3) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.8) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.10) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.15) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.17) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3) => /lib/x86_64-linux-gnu/libc.so.6
        /usr/lib/x86_64-linux-gnu/libX11.so.6:
                libdl.so.2 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libdl.so.2
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.15) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3) => /lib/x86_64-linux-gnu/libc.so.6
        /lib/x86_64-linux-gnu/libm.so.6:
                libc.so.6 (GLIBC_PRIVATE) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /usr/lib/fglrx/libGL.so.1:
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
                libpthread.so.0 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libpthread.so.0
        /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libicui18n.so.52:
                libgcc_s.so.1 (GCC_3.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
                libstdc++.so.6 (CXXABI_1.3) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
        /home/myName/Applications/Install/Qt-opensource-linux-x64-5.3.1/5.3/gcc_64/lib/libicuuc.so.52:
                libgcc_s.so.1 (GCC_3.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1
                libdl.so.2 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libdl.so.2
                libstdc++.so.6 (CXXABI_1.3) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
                libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
                libpthread.so.0 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libpthread.so.0
                libpthread.so.0 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libpthread.so.0
                libc.so.6 (GLIBC_2.7) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /lib/x86_64-linux-gnu/libdl.so.2:
                ld-linux-x86-64.so.2 (GLIBC_PRIVATE) => /lib64/ld-linux-x86-64.so.2
                libc.so.6 (GLIBC_PRIVATE) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0:
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /lib/x86_64-linux-gnu/librt.so.1:
                libpthread.so.0 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libpthread.so.0
                libpthread.so.0 (GLIBC_PRIVATE) => /lib/x86_64-linux-gnu/libpthread.so.0
                libpthread.so.0 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libpthread.so.0
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_PRIVATE) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /usr/lib/x86_64-linux-gnu/libffi.so.6:
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /lib/x86_64-linux-gnu/libpcre.so.3:
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3) => /lib/x86_64-linux-gnu/libc.so.6
        /usr/lib/x86_64-linux-gnu/libxcb.so.1:
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.2) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /usr/lib/x86_64-linux-gnu/libXext.so.6:
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /usr/lib/x86_64-linux-gnu/libXau.so.6:
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
        /usr/lib/x86_64-linux-gnu/libXdmcp.so.6:
                libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
                libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6

  • Moderators

    What exactly happens if this line is executed?

    m_frameSudoku->setHidden(false);
    

    Segmentation fault? Something else?



  • @jsulm

    Yes but now, even without this line it's still crashing with segmentation fault so I will try something else and I tell you.

    Otherwise I tried to configure the debugger, So I cloned the debugger auto-detected in manual:
    http://www.hostingpics.net/viewer.php?id=551531Debug.png
    But should I do something else? I still have the red exclamation mark.



  • Please, could someone give me a link to a website explaining how to configurate the Options/Build&Run/Kits parameters, I just can't debug any Qt program now.
    Thank you.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.