United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7009098 SA cannot open core files larger than 2GB on Linux 32-bit
JDK-7009098 : SA cannot open core files larger than 2GB on Linux 32-bit

Details
Type:
Bug
Submit Date:
2010-12-27
Status:
Closed
Updated Date:
2013-04-20
Project Name:
JDK
Resolved Date:
2012-03-05
Component:
hotspot
OS:
linux_ubuntu,linux_redhat_4.0,linux_redhat_5.0
Sub-Component:
svc
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0u6,6u29
Fixed Versions:
6u32 (b03)

Related Reports
Backport:
Backport:
Backport:
Backport:
Duplicate:
Duplicate:
Relates:

Sub Tasks

Description
Linux 32-bit
SA cannot open core file larger than 2GB.  Depending on the configuration,
core size may exceed 2GB.

Can't attach to the core file
hsdb> Input stream closed.

                                    

Comments
EVALUATION

The fix is to enable the 'Large File Support' by compiling libsaproc.so with -D_FILE_OFFSET_BITS=64. This is added to both agent/src/os/linux/Makefile (which builds SA from agent/make/) and make/linux/makefiles/saproc.make (which builds SA with Hotspot build).

There is one more change with which SA should first load libraries from the path specified with SA_ALTROOT rather than loading from the paths embedded in the core file.
                                     
2012-02-13
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/54d3535a6dd3
                                     
2012-02-13
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-main/hotspot/rev/54d3535a6dd3
                                     
2012-02-17
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/54d3535a6dd3
                                     
2012-02-18
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-gc/hotspot/rev/54d3535a6dd3
                                     
2012-02-18
EVALUATION

http://hg.openjdk.java.net/lambda/lambda/hotspot/rev/54d3535a6dd3
                                     
2012-03-22



Hardware and Software, Engineered to Work Together