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. QtCreator in Docker; I couldnt debug Error disabling address space randomization: Operation not permitted
Forum Updated to NodeBB v4.3 + New Features

QtCreator in Docker; I couldnt debug Error disabling address space randomization: Operation not permitted

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.2k 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.
  • R Offline
    R Offline
    RahibeMeryem
    wrote on last edited by aha_1980
    #1

    I am trying to use QtCreator in a docker environment to build , run and debug application which is deployed in docker.

    When I try to debug my appliction I have below error ? How can I use debugger in docker ?

    Best

    Error disabling address space randomization: Operation not permitted &"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n" &"warning: Could not trace the inferior process.\nError: " &"\n" &"warning: ptrace: Operation not permitted\n"
    
    aha_1980A 1 Reply Last reply
    0
    • R RahibeMeryem

      I am trying to use QtCreator in a docker environment to build , run and debug application which is deployed in docker.

      When I try to debug my appliction I have below error ? How can I use debugger in docker ?

      Best

      Error disabling address space randomization: Operation not permitted &"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n" &"warning: Could not trace the inferior process.\nError: " &"\n" &"warning: ptrace: Operation not permitted\n"
      
      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by aha_1980
      #2

      Hi @RahibeMeryem

      Does this SO topic help you?

      For the record: debugging (and also strace) need the CAP_PTRACE capability. The problem was solved by running the container with --privileged.

      Regards

      Qt has to stay free or it will die.

      R 1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi @RahibeMeryem

        Does this SO topic help you?

        For the record: debugging (and also strace) need the CAP_PTRACE capability. The problem was solved by running the container with --privileged.

        Regards

        R Offline
        R Offline
        RahibeMeryem
        wrote on last edited by
        #3

        @aha_1980

        yes thanks.. its solved.. Even I searched I didnt find this.

        Best

        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