Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Debugging: "warning: process x is already traced by process y"
Forum Updated to NodeBB v4.3 + New Features

Debugging: "warning: process x is already traced by process y"

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 3 Posters 2.0k 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.
  • C Offline
    C Offline
    Creaperdown
    wrote on last edited by Creaperdown
    #1

    When I try to start debugging with Qt Creator I get an error telling me that the process is already traced by something. When I try killing it kill y after stopping the debugging, it tells me that the process doesn't exist.

    This is my output:

    >&"attach 5260\n"
    >~"Attaching to process 5260\n"
    >&"warning: process 5260 is already traced by process 5258\n"
     process 5260 is already traced by process 5258
    >&"ptrace: Operation not permitted.\n"
    >79^error,msg="warning: process 5260 is already traced by process 5258\nptrace: Operation not permitted."
    dwarning: process 5260 is already traced by process 5258
    dptrace: Operation not permitted.
    dNOTE: ENGINE ILL ******
    dState changed from EngineRunRequested(3) to EngineShutdownRequested(14)
    dCALL: SHUTDOWN ENGINE
    dINITIATE GDBENGINE SHUTDOWN, PROC STATE: 2
    <80python theDumper.exitGdb({"token":80})
    
    >&"python theDumper.exitGdb({\"token\":80})\n"
    dGDB PROCESS FINISHED, status 0, exit code 0 (0x0)
    dNOTE: ENGINE SHUTDOWN FINISHED
    dState changed from EngineShutdownRequested(14) to EngineShutdownFinished(15)
     Debugger finished.
    dState changed from EngineShutdownFinished(15) to DebuggerFinished(16)
    

    After trying it multiple times, it starts working for a few times, and fails again after that.

    JonBJ 1 Reply Last reply
    0
    • C Creaperdown

      When I try to start debugging with Qt Creator I get an error telling me that the process is already traced by something. When I try killing it kill y after stopping the debugging, it tells me that the process doesn't exist.

      This is my output:

      >&"attach 5260\n"
      >~"Attaching to process 5260\n"
      >&"warning: process 5260 is already traced by process 5258\n"
       process 5260 is already traced by process 5258
      >&"ptrace: Operation not permitted.\n"
      >79^error,msg="warning: process 5260 is already traced by process 5258\nptrace: Operation not permitted."
      dwarning: process 5260 is already traced by process 5258
      dptrace: Operation not permitted.
      dNOTE: ENGINE ILL ******
      dState changed from EngineRunRequested(3) to EngineShutdownRequested(14)
      dCALL: SHUTDOWN ENGINE
      dINITIATE GDBENGINE SHUTDOWN, PROC STATE: 2
      <80python theDumper.exitGdb({"token":80})
      
      >&"python theDumper.exitGdb({\"token\":80})\n"
      dGDB PROCESS FINISHED, status 0, exit code 0 (0x0)
      dNOTE: ENGINE SHUTDOWN FINISHED
      dState changed from EngineShutdownRequested(14) to EngineShutdownFinished(15)
       Debugger finished.
      dState changed from EngineShutdownFinished(15) to DebuggerFinished(16)
      

      After trying it multiple times, it starts working for a few times, and fails again after that.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Creaperdown
      Did you look to see what process #5258 was when this happened? Another instance of gdb or Creator?

      If you try debugging with gdb from a shell does it work OK?

      You should probably state your platform details, how installed and what version of Creator.

      C 1 Reply Last reply
      0
      • JonBJ JonB

        @Creaperdown
        Did you look to see what process #5258 was when this happened? Another instance of gdb or Creator?

        If you try debugging with gdb from a shell does it work OK?

        You should probably state your platform details, how installed and what version of Creator.

        C Offline
        C Offline
        Creaperdown
        wrote on last edited by
        #3

        @JonB I have Qt Creator 11, I installed it via the online installer, debugging worked until ~1 month ago (I am not sure what triggered it). I am on Manjaro Linux and debugging with gdb on the command line works fine.

        When inspecting the other process that is already tracing my project, I get:

        ps -p 8114
        PID TTY          TIME CMD
        8114 pts/2    00:00:00 qtcreator_proce
        
        JonBJ 1 Reply Last reply
        0
        • J Jay Tautges referenced this topic on
        • C Creaperdown

          @JonB I have Qt Creator 11, I installed it via the online installer, debugging worked until ~1 month ago (I am not sure what triggered it). I am on Manjaro Linux and debugging with gdb on the command line works fine.

          When inspecting the other process that is already tracing my project, I get:

          ps -p 8114
          PID TTY          TIME CMD
          8114 pts/2    00:00:00 qtcreator_proce
          
          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @Creaperdown
          https://forum.qt.io/topic/147260/qt-creator-11-can-t-debug-using-terminal seems to be reporting the same issue as you? There the OP says only happens when using Run in Terminal, does that apply to you?

          C 2 Replies Last reply
          0
          • JonBJ JonB

            @Creaperdown
            https://forum.qt.io/topic/147260/qt-creator-11-can-t-debug-using-terminal seems to be reporting the same issue as you? There the OP says only happens when using Run in Terminal, does that apply to you?

            C Offline
            C Offline
            Creaperdown
            wrote on last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            0
            • JonBJ JonB

              @Creaperdown
              https://forum.qt.io/topic/147260/qt-creator-11-can-t-debug-using-terminal seems to be reporting the same issue as you? There the OP says only happens when using Run in Terminal, does that apply to you?

              C Offline
              C Offline
              Creaperdown
              wrote on last edited by
              #6

              @JonB Yes, it works when deselecting the "Run in terminal". I suppose this is a Qt Creator 11 bug then?

              JonBJ 1 Reply Last reply
              0
              • C Creaperdown

                @JonB Yes, it works when deselecting the "Run in terminal". I suppose this is a Qt Creator 11 bug then?

                JonBJ Offline
                JonBJ Offline
                JonB
                wrote on last edited by JonB
                #7

                @Creaperdown
                It does look like it....

                Yep, see https://bugreports.qt.io/browse/QTCREATORBUG-29231
                That indicates it is fixed in Qt Creator 11.0.0-beta2 ?
                In which case https://www.qt.io/blog/qt-creator-11-beta2-released

                UPDATE See https://forum.qt.io/topic/147260/qt-creator-11-can-t-debug-using-terminal/6

                1 Reply Last reply
                1
                • JonBJ JonB referenced this topic on
                • M Offline
                  M Offline
                  Marcus Tillmanns
                  wrote on last edited by
                  #8

                  @Creaperdown said in Debugging: "warning: process x is already traced by process y":

                  process 5260 is already traced by process 5258

                  Can you try the solution described here: https://rajeeshknambiar.wordpress.com/2015/07/16/attaching-debugger-and-ptrace_scope/ ?

                  Thanks!

                  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