Topic
  • 2 replies
  • Latest Post - ‏2008-04-24T05:57:49Z by SystemAdmin
SystemAdmin
SystemAdmin
2736 Posts

Pinned topic JVM dumping core

‏2008-04-22T11:33:31Z |
Hi All,
When my application which is trying to load the library libxpcom.so it is producing 3 files

1. Javacore.txt file
2. core.dmp
3. Snap.*.trc file

The output after doing jextract on core and jdmpview is
....
at com.ibm.jvm.j9.dump.commandconsole.J9JVMConsole.main(J9JVMConsole.java:164)
Caused by: java.lang.NullPointerException

javacore .txt file says it is GPL error
0SECTION MEMINFO subcomponent dump routine
NULL =================================
1STHEAPFREE Bytes of Heap Space Free: 3967d8
1STHEAPALLOC Bytes of Heap Space Allocated: 400000
I am new to java, looking for your help ..
Following is the attachment of Snap*.trc
Updated on 2008-04-24T05:57:49Z at 2008-04-24T05:57:49Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    2736 Posts

    Re: JVM dumping core

    ‏2008-04-23T14:39:13Z  
    javacore .txt file says it is GPL error

    I doubt it. It says its a "GPF" (general protection fault, I think) error

    The javacore tells us the following about the failing thread :-

    3XMTHREADINFO "main" (TID:0x30957C00, sys_thread_t:0x3000D018, state:R, native ID:0x001050C1) prio=5
    4XESTACKTRACE at java/lang/ClassLoader.loadLibraryWithPath(Native Method)
    4XESTACKTRACE at java/lang/ClassLoader.loadLibraryWithPath(ClassLoader.java:944)
    4XESTACKTRACE at java/lang/ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:921)
    4XESTACKTRACE at java/lang/System.loadLibrary(System.java:452)
    4XESTACKTRACE at com/cai/explorer/external/htmlbrowser/CaMozillaHost.<clinit>(Bytecode PC:38)
    4XESTACKTRACE at java/lang/J9VMInternals.initializeImpl(Native Method)
    4XESTACKTRACE at java/lang/J9VMInternals.initialize(J9VMInternals.java:187(Compiled Code))
    4XESTACKTRACE at com/cai/explorer/internal/frame/Shell.runMain(Bytecode PC:167)
    4XESTACKTRACE at com/cai/explorer/internal/frame/Shell.main(Bytecode PC:8)

    The failing routine is regularly used, so I'd be concerned primarily about the library you're trying to
    load (libxpcom.so), I think.

    What does the unix "file" command tell you about that library? You're running a 32-bit JVM, is it a 32-bit
    library? Is it an AIX Shared object?

    An interesting trick which sometimes gives additional diagnostics is to rename the library
    to have a ".a" suffix - you might try that and rerun.
  • SystemAdmin
    SystemAdmin
    2736 Posts

    Re: JVM dumping core

    ‏2008-04-24T05:57:49Z  
    Thanks Mark,

    I did find out the reason why it fails,

    The problem was with xlC patch installed on the system, previously it is 6.0.0.13 as JVM requires xlC >8.0 JVM was dumping core while trying to load the library libxpcom. Now I have upgraded xlC to 8.0.0.9 version and MCC doesnot dump core.

    Previous:
    bash-2.05b# lslpp -h xlC.aix50.rte
    Fileset Level Action Status Date Time
    <hr />
    Path: /usr/lib/objrepos
    xlC.aix50.rte
    6.0.0.13 COMMIT COMPLETE 12/26/05 17:33:27

    After Patch:
    bash-2.03# lslpp -h xlC.aix50.rte
    Fileset Level Action Status Date Time
    <hr />
    Path: /usr/lib/objrepos
    xlC.aix50.rte
    8.0.0.0 COMMIT COMPLETE 04/23/08 03:08:38
    8.0.0.4 COMMIT COMPLETE 04/23/08 03:08:45
    8.0.0.9 COMMIT COMPLETE 04/23/08 04:14:49
    for general information for other troubl eshooters you can download xlC 8.0.0.9
    http://www-1.ibm.com/support/docview.wss?rs=32&context=SSEP5D&dc=D400&uid=swg24015707&loc=en_US&cs=UTF-8&lang=en