Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Valgrind ends console program without executing any code...

Valgrind ends console program without executing any code...

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 484 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • GuerrianG Offline
    GuerrianG Offline
    Guerrian
    wrote on last edited by Guerrian
    #1

    I'm using Valgrind version 3.15. The output is just:

    Press <RETURN> to close this window...
    

    Even though I have a "cout" as the very first line in main. The problem seems to be specific to one project.

    This is from the application output pane:

    14:00:56: valgrind --child-silent-after-fork=yes --xml-socket=127.0.0.1:41967 --log-socket=127.0.0.1:37281 --xml=yes
    --smc-check=stack --tool=memcheck --gen-suppressions=all --track-origins=yes --leak-check=summary --num-callers=25
    /home/daniel/Documents/QtNew/SCR2/build-SCR2-Desktop_Qt_5_12_5_GCC_64bit-Debug/SCR2
    14:00:56: Error: "valgrind" could not be started: Cannot execute "valgrind": No such file or directory
    14:00:56: Analyzing finished.
    

    Looks like I haven't got kcachegrind:
    ValgrindSettings.png

    Linux Mint 18.3
    Qt 5.14.1
    Qt Creator 4.11.1

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Guerrian said in Valgrind ends console program without executing any code...:

      Error: "valgrind" could not be started: Cannot execute "valgrind": No such file or directory

      This should give you a hint what's wrong, or?

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      GuerrianG 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        @Guerrian said in Valgrind ends console program without executing any code...:

        Error: "valgrind" could not be started: Cannot execute "valgrind": No such file or directory

        This should give you a hint what's wrong, or?

        GuerrianG Offline
        GuerrianG Offline
        Guerrian
        wrote on last edited by Guerrian
        #3

        I edited my question, it looks like kcachegrind is missing.

        Linux Mint 18.3
        Qt 5.14.1
        Qt Creator 4.11.1

        Christian EhrlicherC 1 Reply Last reply
        0
        • GuerrianG Guerrian

          I edited my question, it looks like kcachegrind is missing.

          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Guerrian kcachegrind?

          Cannot execute "valgrind": No such file or directory

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          GuerrianG 1 Reply Last reply
          0
          • Christian EhrlicherC Christian Ehrlicher

            @Guerrian kcachegrind?

            Cannot execute "valgrind": No such file or directory

            GuerrianG Offline
            GuerrianG Offline
            Guerrian
            wrote on last edited by
            #5

            @Christian-Ehrlicher said in Valgrind ends console program without executing any code...:

            @Guerrian kcachegrind?

            Cannot execute "valgrind": No such file or directory

            I installed valgrind and kcachegrind, it still shows the same error.

            Linux Mint 18.3
            Qt 5.14.1
            Qt Creator 4.11.1

            1 Reply Last reply
            0
            • Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Try to execute valgrind on the command line to be really sure. Is valgrind really in /home/daniel/valgrind/bin/ ?

              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
              Visit the Qt Academy at https://academy.qt.io/catalog

              1 Reply Last reply
              1

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved