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 unsupported socket operation
Forum Updated to NodeBB v4.3 + New Features

Valgrind unsupported socket operation

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 5 Posters 1.4k Views 2 Watching
  • 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.
  • R Offline
    R Offline
    rnhwizard
    wrote on last edited by
    #1

    Re: [Error: "valgrind" could not be started: ip address: Unsupported socket operation]

    I have not seen any postings related to "valgrind" and "unsupported socket operation".
    This error message occurs in the application output when i attempt to:
    Analyze->Valgrind Memory Analyzer
    OR
    Analyzer->Valgrind Memory Analyzer with GDB

    The ip address specified in the ERROR: message is the same as my computer as displayed in ifconfig

    What does the "unsupported socket operation" message mean?
    Could this be related to the way in which Valgrind was installed on my computer?

    jsulmJ aha_1980A 2 Replies Last reply
    0
    • R rnhwizard

      Re: [Error: "valgrind" could not be started: ip address: Unsupported socket operation]

      I have not seen any postings related to "valgrind" and "unsupported socket operation".
      This error message occurs in the application output when i attempt to:
      Analyze->Valgrind Memory Analyzer
      OR
      Analyzer->Valgrind Memory Analyzer with GDB

      The ip address specified in the ERROR: message is the same as my computer as displayed in ifconfig

      What does the "unsupported socket operation" message mean?
      Could this be related to the way in which Valgrind was installed on my computer?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @rnhwizard said in Valgrind unsupported socket operation:

      Could this be related to the way in which Valgrind was installed on my computer?

      In what way was it installed? Does it work if you run it outside of QtCreator?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      R 1 Reply Last reply
      1
      • R rnhwizard

        Re: [Error: "valgrind" could not be started: ip address: Unsupported socket operation]

        I have not seen any postings related to "valgrind" and "unsupported socket operation".
        This error message occurs in the application output when i attempt to:
        Analyze->Valgrind Memory Analyzer
        OR
        Analyzer->Valgrind Memory Analyzer with GDB

        The ip address specified in the ERROR: message is the same as my computer as displayed in ifconfig

        What does the "unsupported socket operation" message mean?
        Could this be related to the way in which Valgrind was installed on my computer?

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @rnhwizard and to add to @jsulm,

        • which operating system?
        • which Creator and valgrind versions?

        Regards

        Qt has to stay free or it will die.

        1 Reply Last reply
        1
        • jsulmJ jsulm

          @rnhwizard said in Valgrind unsupported socket operation:

          Could this be related to the way in which Valgrind was installed on my computer?

          In what way was it installed? Does it work if you run it outside of QtCreator?

          R Offline
          R Offline
          rnhwizard
          wrote on last edited by
          #4

          @jsulm

          Installed from a tar

          Ubuntu 18.04.2
          QT Creator 4.9.2
          Valgrind 3.15.0
          download from valgrind-3.15.0.tar.bz2
          install via:

          ./configure --prefix=/usr/local/bin
          make
          make install

          Running it from my terminal returns the following:
          valgrind ls -l
          failed to start tool "memcheck" for platform 'amd64-linux': no such file or directory
          Note that my processor is an X86 not an "amd64-linux".

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @rnhwizard said in Valgrind unsupported socket operation:

            memcheck" for platform 'amd64-linux':

            Hi
            This error is pretty common on google.
            Try
            https://www.linuxquestions.org/questions/linux-software-2/error-installing-valgrind-failed-to-start-tool-'memcheck'-850429/

            make distclean

            1 Reply Last reply
            1
            • R Offline
              R Offline
              rnhwizard
              wrote on last edited by
              #6

              I resolved the issue regarding memcheck by adding the appropriate lines to .bashrc.

              I was able to run Memcheck in the QT IDE and it seems to be working appropriately.

              It gives the following directions:

              ==14386== (action at startup) vgdb me ...
              ==14386==
              ==14386== TO DEBUG THIS PROCESS USING GDB: start GDB like this
              ==14386== /path/to/gdb /home/otc_gui
              ==14386== and then give GDB the following command
              ==14386== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=14386
              ==14386== --pid is optional if only one valgrind process is running
              ==14386==

              When I run it with the GDB option it gives the PID 14386 but there is no apparent way to run the GDB with the provided Process identifier assigned.

              I would like to run this from within the IDE as it is set up to a remote target via SSH. However, I am not sure how to invoke the GDB
              properly with the provided PID. Is there somewhere to assign it?

              aha_1980A 1 Reply Last reply
              0
              • R rnhwizard

                I resolved the issue regarding memcheck by adding the appropriate lines to .bashrc.

                I was able to run Memcheck in the QT IDE and it seems to be working appropriately.

                It gives the following directions:

                ==14386== (action at startup) vgdb me ...
                ==14386==
                ==14386== TO DEBUG THIS PROCESS USING GDB: start GDB like this
                ==14386== /path/to/gdb /home/otc_gui
                ==14386== and then give GDB the following command
                ==14386== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=14386
                ==14386== --pid is optional if only one valgrind process is running
                ==14386==

                When I run it with the GDB option it gives the PID 14386 but there is no apparent way to run the GDB with the provided Process identifier assigned.

                I would like to run this from within the IDE as it is set up to a remote target via SSH. However, I am not sure how to invoke the GDB
                properly with the provided PID. Is there somewhere to assign it?

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Hi @rnhwizard,

                Have you tried Debug > Start Debugging > Attach to running Debug Server?

                I resolved the issue regarding memcheck by adding the appropriate lines to .bashrc.

                Can you please write what you did to help others with the same problem later?

                Regards

                Qt has to stay free or it will die.

                R T 2 Replies Last reply
                0
                • aha_1980A aha_1980

                  Hi @rnhwizard,

                  Have you tried Debug > Start Debugging > Attach to running Debug Server?

                  I resolved the issue regarding memcheck by adding the appropriate lines to .bashrc.

                  Can you please write what you did to help others with the same problem later?

                  Regards

                  R Offline
                  R Offline
                  rnhwizard
                  wrote on last edited by
                  #8

                  @aha_1980

                  To resolve the original issue:

                  https://www.linuxquestions.org/questions/linux-software-2/error-installing-valgrind-failed-to-start-tool-'memcheck'-850429/

                  As for current memcheck issue, in attempting to Attach the pid to the debugger I tried the following:
                  Step 1: Analyze->Valgrind Memory Analyzer with Debugger
                  Step 2: Debug->Attach to running application
                  The active Valgrind process was listed and matched the printed PID I displayed above.
                  However, when I attach the debugger to the active process QT immediately crashes with no warnings or errors.

                  I looked into the Debug server option, but there is no way (that I can see) to link this to Valgrind.

                  1 Reply Last reply
                  0
                  • aha_1980A aha_1980

                    Hi @rnhwizard,

                    Have you tried Debug > Start Debugging > Attach to running Debug Server?

                    I resolved the issue regarding memcheck by adding the appropriate lines to .bashrc.

                    Can you please write what you did to help others with the same problem later?

                    Regards

                    T Offline
                    T Offline
                    Thegoodstuff24
                    wrote on last edited by Thegoodstuff24
                    #9

                    @aha_1980 Any thoughts on this matter? I struggled with this too which is why I switched to Windows/HOEB.

                    1 Reply Last reply
                    0

                    • Login

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