JDK-6417444 : jtreg test sun/tools/jinfo/Basic.sh is failing on linux-amd64
Type:Bug
Component:core-svc
Sub-Component:tools
Affected Version:6
Priority:P3
Status:Resolved
Resolution:Fixed
OS:linux
CPU:x86
Submitted:2006-04-25
Updated:2010-08-24
Resolved:2006-05-11
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
jtreg test case for jinfo tool ($SDK/sun/tools/jinfo/Basic.sh) is failing on Linux/AMD-64 platform only - for other platforms the test passes as expected.
Comments
SUGGESTED FIX
Webrev: http://bongo.india.sun.com/debugging/dtrace/6417444/webrev/
Also refer to the attachment "webrev.tar"
27-04-2006
EVALUATION
atoi does not set errno on failure. The code checks for errno after atoi call. refer to "suggested fix" for details.
25-04-2006
SUGGESTED FIX
(Thanks to Alan who suggested this fix)
File: $HOTSPOT/src/share/vm/services/attachListener.cpp
Function: set_bool_flag
After atoi function call, errno is checked for possible error condition. But, the atoi function don't set errno if the conversion fails (and it doesn't clear it either). If errno check is avoided, this failure will go away.