6359295: SA utilities: "get_thread_regs failed for a lwp" from jstack(1)

Yasumasa Suenaga suenaga.yasumasa at oss.ntt.co.jp
Sun Nov 14 22:46:40 PST 2010


Hi.

I and co-worker use jstack for various trouble shooting.

We mainly use Java on Linux with AMD64 architecture.
However, jstack -F option doesn't work our platform.

I ran jstack -F with LIBSAPROC_DEBUG=1 (environment variable),
I got following messages:


/***************/
Thread 31933: (state = BLOCKED)
libsaproc DEBUG: ptrace(PTRACE_GETREGS, ...) not supported
Error occurred during stack walking:
sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp
/***************/


In order to fix this problem, I made a patch for preprocessor
macro in "agent/src/os/linux/ps_proc.c" .
The patch that attached this mail works well on Fedora 13 x86_64.

Please merge this patch if you don't fix this problem yet.


Best regards.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ps_proc.patch
Url: http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20101115/2cb1bccf/attachment.ksh 


More information about the serviceability-dev mailing list