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...
Forum Update on Monday, May 27th 2025

Valgrind ends console program without executing any code...

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 490 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.
  • G Offline
    G Offline
    Guerrian
    wrote on 20 Dec 2019, 12:59 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
    • C Online
      C Online
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 20 Dec 2019, 14:19 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

      G 1 Reply Last reply 20 Dec 2019, 14:25
      0
      • C Christian Ehrlicher
        20 Dec 2019, 14:19

        @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?

        G Offline
        G Offline
        Guerrian
        wrote on 20 Dec 2019, 14:25 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

        C 1 Reply Last reply 20 Dec 2019, 14:30
        0
        • G Guerrian
          20 Dec 2019, 14:25

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

          C Online
          C Online
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 20 Dec 2019, 14:30 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

          G 1 Reply Last reply 20 Dec 2019, 19:24
          0
          • C Christian Ehrlicher
            20 Dec 2019, 14:30

            @Guerrian kcachegrind?

            Cannot execute "valgrind": No such file or directory

            G Offline
            G Offline
            Guerrian
            wrote on 20 Dec 2019, 19:24 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
            • C Online
              C Online
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on 20 Dec 2019, 19:26 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

              1/6

              20 Dec 2019, 12:59

              • Login

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