Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-21166

jstack/jmap/jinfo fails with "Can't attach to the process: ptrace"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Normal Normal
    • None
    • fuse-7.11.1-GA
    • Fuse on Openshift, Karaf
    • None
    • False
    • None
    • False
    • % %
    • Todo
    • Very Likely

      jstack/jmap/jinfo fails with the following error.

      ]$ oc rsh sample-1-l5n45
      sh-4.4$ jps
      1 Main
      305 Jps
      sh-4.4$ jinfo 1
      Attaching to process ID 1, please wait...
      ERROR: ptrace(PTRACE_ATTACH, ..) failed for 1: Operation not permitted
      Error attaching to process: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed for 1: Operation not permitted
      sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed for 1: Operation not permitted
      at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(LinuxDebuggerLocal.java:163)
      at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach(LinuxDebuggerLocal.java:278)
      at sun.jvm.hotspot.HotSpotAgent.attachDebugger(HotSpotAgent.java:671)
      at sun.jvm.hotspot.HotSpotAgent.setupDebuggerLinux(HotSpotAgent.java:611)
      at sun.jvm.hotspot.HotSpotAgent.setupDebugger(HotSpotAgent.java:337)
      at sun.jvm.hotspot.HotSpotAgent.go(HotSpotAgent.java:304)
      at sun.jvm.hotspot.HotSpotAgent.attach(HotSpotAgent.java:140)
      at sun.jvm.hotspot.tools.Tool.start(Tool.java:185)
      at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
      at sun.jvm.hotspot.tools.JInfo.main(JInfo.java:138)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at sun.tools.jinfo.JInfo.runTool(JInfo.java:108)
      at sun.tools.jinfo.JInfo.main(JInfo.java:76)
      Caused by: sun.jvm.hotspot.debugger.DebuggerException: Can't attach to the process: ptrace(PTRACE_ATTACH, ..) failed for 1: Operation not permitted
      at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.attach0(Native Method)
      at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$100(LinuxDebuggerLocal.java:62)
      at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1AttachTask.doit(LinuxDebuggerLocal.java:269)
      at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.run(LinuxDebuggerLocal.java:138)
      
      sh-4.4$ sudo jinfo 1
      sh: sudo: command not found
      sh-4.4$ su
      sh: su: command not found
      sh-4.4$
      

              Unassigned Unassigned
              rhn-support-hfuruich Hisao Furuichi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: