title: Unable to "strace -p" on a running JBoss process
body: <p>I am trying to use "strace -p" to attach to an already running JBoss process. JBoss is using the 1.5.0_15 Java JDK. Unfortunately, this doesn't work - I only get a single futex() result:<br></p>
  
  <pre><code># strace -p 3388
  Process 3388 attached - interrupt to quit
  [ Process PID=3388 runs in 32 bit mode. ]
  futex(0x8f18f7c, FUTEX_WAIT_PRIVATE, 1, NULL &lt;unfinished ...&gt;
  </code></pre>
  
  <p>Strace works for all other programs but not JBoss. It appears to work fine when I launch the process through strace. It just doesn't work when I try to attach to an already running process.</p>
  
  <p>I'm using 64-bit Linux 2.6.18 with a 32 bit Java JDK (RedHat Enterprise Linux 5.3 if it matters).</p>
  
  <p>Update #1:</p>
  
  <p>I did try running it with "-d", but the output doesn't appear to be any more insightful, at least to me:</p>
  
  <pre><code>
  [root@]# strace -d -e verbose=all -p 3388
  Process 3388 attached - interrupt to quit
   [wait(0x137f) = 3388]
  pid 3388 stopped, [SIGSTOP]
   [wait(0x57f) = 3388]
  pid 3388 stopped, [SIGTRAP]
  [ Process PID=3388 runs in 32 bit mode. ]
  futex(0x8f18f7c, FUTEX_WAIT_PRIVATE, 1, NULL
  </code></pre>