- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Are there any debug tools which can detect program...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
05-05-2003 10:18 AM
05-05-2003 10:18 AM
there any tools which can trace the process and detect the hang-up location. (such as which
C++ statement or function the program is locked up?).
OS: hp-ux 10.20. Language C++
Thanks,
Liping
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 10:21 AM
05-05-2003 10:21 AM
Re: Are there any debug tools which can detect program's hang-up location?
Go to following site and search for tusc
http://hpux.cs.utah.edu/
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 11:38 AM
05-05-2003 11:38 AM
SolutionHi,
One thing you could try is the following:
. when the program seems to hang, send
a sigabrt to the process
( kill -6 PID )
this will produce a core file.
. Use a debugger to get the call-stack.
With gdb this can be done as follows:
gdb -tui
(gdb) info stack
Another thing you could try is to use
the debugger to attach to the running process.
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 12:15 PM
05-05-2003 12:15 PM
Re: Are there any debug tools which can detect program's hang-up location?
http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=B3476-90015&service=hpux&path=00/00/1&title=HP/DDE%20Debugger%20User%27s%20Guide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2003 12:24 PM
05-05-2003 12:24 PM
Re: Are there any debug tools which can detect program's hang-up location?
Again, this is my standard practice and has served me well over the years in quickly finding problems like yours.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2003 05:30 AM
05-06-2003 05:30 AM
Re: Are there any debug tools which can detect program's hang-up location?
Your information is really helpful. I am going to try them.
Thanks,
Liping