Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

jstack 1.5.0_07 not working on FC4

Thread view: 
js - 11 Aug 2006 00:48 GMT
JVM: 1.5.0_07
kernel: 2.6.17-1.2142_FC4smp
glibc: 2.3.6-3

Found filed , but closed, bug report at Sun:
       http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6359295

Strack trace:

sun.jvm.hotspot.debugger.DebuggerException: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp
       at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(LinuxDebuggerLocal.java:134)
       at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSet(LinuxDebuggerLocal.java:437)
       at sun.jvm.hotspot.debugger.linux.LinuxThread.getContext(LinuxThread.java:48)
       at sun.jvm.hotspot.runtime.linux_x86.LinuxX86JavaThreadPDAccess.getCurrentFrameGuess(LinuxX86JavaThreadPDAccess.java:75)
       at sun.jvm.hotspot.runtime.JavaThread.getCurrentFrameGuess(JavaThread.java:252)
       at sun.jvm.hotspot.runtime.JavaThread.getLastJavaVFrameDbg(JavaThread.java:211)
       at sun.jvm.hotspot.tools.PStack.initJFrameCache(PStack.java:167)
       at sun.jvm.hotspot.tools.PStack.run(PStack.java:37)
       at sun.jvm.hotspot.tools.JStack.run(JStack.java:41)
       at sun.jvm.hotspot.tools.Tool.start(Tool.java:204)
       at sun.jvm.hotspot.tools.JStack.main(JStack.java:58)
Caused by: sun.jvm.hotspot.debugger.DebuggerException: get_thread_regs failed for a lwp
       at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.getThreadIntegerRegisterSet0(Native Method)
       at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal.access$800(LinuxDebuggerLocal.java:34)
       at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$1GetThreadIntegerRegisterSetTask.doit(LinuxDebuggerLocal.java:431)
       at sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.run(LinuxDebuggerLocal.java:109)

What is strange is that this has not worked before. So last night, I upgrading my kernel and glibc,
rebooted, tried jstack again, and it worked. Now came back this morning, tried it again,
and it is not working anymore again.
js - 11 Aug 2006 00:51 GMT
> JVM: 1.5.0_07
> kernel: 2.6.17-1.2142_FC4smp
[quoted text clipped - 10 lines]
>         at
>        
sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(LinuxDebuggerLocal.java:134)

Ahh ... Might be fixed in 1.5.0_08:

       https://java.sun.com/j2se/1.5.0/ReleaseNotes.html#150_08
js - 11 Aug 2006 01:13 GMT
>> JVM: 1.5.0_07
>> kernel: 2.6.17-1.2142_FC4smp
[quoted text clipped - 10 lines]
>>         at
>>        

sun.jvm.hotspot.debugger.linux.LinuxDebuggerLocal$LinuxDebuggerLocalWorkerThread.execute(LinuxDebuggerLocal.java:134)

> Ahh ... Might be fixed in 1.5.0_08:
>
>         https://java.sun.com/j2se/1.5.0/ReleaseNotes.html#150_08

Well .. still having the same problem with 1.5.0_08, but at least the Java
process that was being attached to is no longer hanging when jstack
attaches to it.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.