- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Obtaining a stack trace from an application co...
Operating System - HP-UX
1823086
Members
3397
Online
109646
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 11:07 AM
тАО12-02-2004 11:07 AM
I have a Java program which is using JNI to call some native libraries. Something inside one or more of these libraries is causing the application to terminate with a core dump.
Can anyone tell be how to use GDB, ADB or some other tool to get a stack trace from the core dump. This can be done on Solaris using the pstack command.
System Information
HP-UX CCHP02 B.11.00 U 9000/800
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.03-040401-16:07)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.03-040401-18:59-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode)
thankyou,
Chris
Can anyone tell be how to use GDB, ADB or some other tool to get a stack trace from the core dump. This can be done on Solaris using the pstack command.
System Information
HP-UX CCHP02 B.11.00 U 9000/800
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.03-040401-16:07)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.03-040401-18:59-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode)
thankyou,
Chris
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 11:23 AM
тАО12-02-2004 11:23 AM
Re: Obtaining a stack trace from an application core dump on HP-UX
When you invoke gdb using gdb myexe core the very first thing it does is produce a stack trace w/o any additional commands.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 12:23 PM
тАО12-02-2004 12:23 PM
Re: Obtaining a stack trace from an application core dump on HP-UX
I have found the following document which describes in detail how to do what you suggested:
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,914,00.html
thankyou,
Chris
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,914,00.html
thankyou,
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-02-2004 06:17 PM
тАО12-02-2004 06:17 PM
Solution
HP gdb shows stack traces of mixed Java, C, and C++ programs.
The stack trace functionality requires Java SDK version 1.3.1.02 or later for HP-UX. To find
the availability of Java SDK version 1.3.1.02 or later, go to the HP web site for Java,
http://www.hp.com/go/java.
To enable this feature, set the environment variable, GDB_JAVA_UNWINDLIB, to the path
to libjunwind.sl. This library is part of the Java SDK version 1.3.1.02 or later for HP-UX.
When GDB_JAVA_UNWINDLIB is set to the path for a valid Java unwind library, stack traces
display Java and C/C++ frames.
The types of Java frames supported are as follows:
├в ┬в Interpreter
├в ┬в Compiled frames
├в ┬в Adapter frames
Steps :
* Library supporting Java unwind must be specified
* Set the environment variable:
GDB_JAVA_UNWINDLIB
export GDB_JAVA_UNWINDLIB=/libjunwind.sl
* Location of library in the J2SE release (1.3.1+):
jre/lib/PA_RISC2.0[W]/libunwind.sl
Example:
export GDB_JAVA_UNWINDLIB=/opt/java1.3/jre/lib/PA_RISC2.0/libjunwind.sl
$ gdb
(gdb) bt
if multithreaded application,
(gdb) thread apply all bt
Let us know if you need more clarification.
The stack trace functionality requires Java SDK version 1.3.1.02 or later for HP-UX. To find
the availability of Java SDK version 1.3.1.02 or later, go to the HP web site for Java,
http://www.hp.com/go/java.
To enable this feature, set the environment variable, GDB_JAVA_UNWINDLIB, to the path
to libjunwind.sl. This library is part of the Java SDK version 1.3.1.02 or later for HP-UX.
When GDB_JAVA_UNWINDLIB is set to the path for a valid Java unwind library, stack traces
display Java and C/C++ frames.
The types of Java frames supported are as follows:
├в ┬в Interpreter
├в ┬в Compiled frames
├в ┬в Adapter frames
Steps :
* Library supporting Java unwind must be specified
* Set the environment variable:
GDB_JAVA_UNWINDLIB
export GDB_JAVA_UNWINDLIB=
* Location of library in the J2SE release (1.3.1+):
jre/lib/PA_RISC2.0[W]/libunwind.sl
Example:
export GDB_JAVA_UNWINDLIB=/opt/java1.3/jre/lib/PA_RISC2.0/libjunwind.sl
$ gdb
(gdb) bt
if multithreaded application,
(gdb) thread apply all bt
Let us know if you need more clarification.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP