United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7168110 Misleading jstack error message
JDK-7168110 : Misleading jstack error message

Details
Type:
Bug
Submit Date:
2012-05-11
Status:
Closed
Updated Date:
2014-01-15
Project Name:
JDK
Resolved Date:
2012-05-23
Component:
core-svc
OS:
generic
Sub-Component:
tools
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

Description
SHORT SUMMARY: Misleading jstack message when attempting to attach to a 
process owned by another user in Windows
INDICATORS: jstack fails with "Not enough storage is available to process 
this command"
COUNTER INDICATORS: jstack succeeds
TRIGGERS: running jstack on a process owned by another users
KNOWN WORKAROUND: na
PRESENT SINCE: forever
HOW TO VERIFY: Log into a windows 2003 machine using windows terminal 
services and a normal user account. Launch a java application. Log into an 
Administrator session in another window and attempt to run jstack on the java 
application process.
NOTES FOR SE:
REGRESSION: no


*** RMCKENNA 05/10/12 08:07 pm *** (CHG: Tag Updated)
Old Tag: sust:ui
New Tag: sust:ui new_shadow
*** RMCKENNA 05/10/12 08:08 pm ***
Thanks for the detailed instructions Kim. I see the cause of the problem. 
There are two potential ways to deal with it so I'm going to consult Dev to 
see which they'd prefer. I'll get back to you shortly.
*** RMCKENNA 05/10/12 08:25 pm *** (CHG: SubComp->PROFILER)
*** NDCOSTA 05/10/12 10:43 pm *** (CHG: Asg->JDKREP Comp->SVC)

                                    

Comments
EVALUATION

The problem is caused by windows disallowing CreateRemoteThread on a process created in another terminal session. The solution is to add a check for the error that results.
                                     
2012-05-17



Hardware and Software, Engineered to Work Together