Bug 183511
Summary: | Cannot run jstack on AS 4 | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Mikhail Garber <mgarber> | ||||||
Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||||
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | medium | ||||||||
Version: | 4.0 | CC: | roland | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | i386 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2006-05-09 15:34:33 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Mikhail Garber
2006-03-01 16:58:35 UTC
That sounds more like a glibc problem. The component basesystem refers to the package basesystem which provides a skeleton for a Red Hat Linux system. Reassigning bug to glibc. Read ya, Phil Can you please attach strace -f output of the jstack process? It can be anything, from a kernel problem, glibc or hotspot bug. Created attachment 125628 [details]
output of strace -f jstack pid
output of strace -f jstack pid
All the indications in that trace point to a misuse of ptrace, or perhaps a problem with ptrace or some other kernel issue. There is no sign of anything relating to glibc here. I wonder what the trace from a system where it works right shows. This trace makes it look like the program is not doing the right things to handle multiple threads via ptrace at all. Created attachment 125760 [details]
output of strace -f jstack on other OS
As requested, attaching output of strace -f jstack pid from other Linux as
similar to RedHat as I could find: CentOs running 2.6.9-22.EL (where jstack
works as expected)
That trace shows it writing out the same sort of error messages you cite as being the problem. you are right, the format is the same - a Java stack trace. Only in the "bad" case it represents the actual exception thrown from the tool with the message "get_thread_regs failed for a lwp" and in the "good" case it is just a stack trace showing what this thread is doing at the moment. Example of "good" output: Thread 3947: (state = BLOCKED) - java.lang.Object.wait(long) @bci=0 (Interpreted frame) - java.lang.Object.wait() @bci=2, line=474 (Interpreted frame) - org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run() @bci=26, line =656 (Interpreted frame) - java.lang.Thread.run() @bci=11, line=595 (Interpreted frame) Your second trace shows writing out these messages: Error occurred during stack walking: sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp etc. Those are what I've described as the same sort of error messages you've cited as being the problem. Please attach a trace from a run that does not produce such errors. No response in 2 month and no signs of a bug in anything but jstack (its incorrect use of ptrace). |