- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gdb 6.2.1 on HP-UX B.11.11 U
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
- 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
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
09-26-2005 08:22 PM
09-26-2005 08:22 PM
gdb 6.2.1 on HP-UX B.11.11 U
One of my programs Crashed on the HP-UX 11.11 with the following error message:
Pid 27466 killed due to trashed stack.
Pid 27466 was killed due to failure in writing the signal context.
It also gave a core-dump. When I tried to analyse the core-dump with gdb-6.2.1 the gdb is giving the message "Memory fault(coredump" and it quits as follows:
# gdb -c core
GNU gdb 6.2.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "hppa64-hp-hpux11.11".
Memory fault(coredump)
#
Could anyone please tell me why the gdb is not able to analyse the core file. And also would appreciate if anyone can guide me on how to debug the "core" file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 08:34 PM
09-26-2005 08:34 PM
Re: gdb 6.2.1 on HP-UX B.11.11 U
# gdb
gdb) bt
Before that check as,
# file core
# what core
# what
# what
It has to be compatible with gdb file type to make operation.
for more informations.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 08:56 PM
09-26-2005 08:56 PM
Re: gdb 6.2.1 on HP-UX B.11.11 U
gdb sysntax:
gdb
Also see the following links:
http://www.linuxgazette.com/node/10466
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=797369
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=805571
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 09:01 PM
09-26-2005 09:01 PM
Re: gdb 6.2.1 on HP-UX B.11.11 U
# gdb program core
# gdb program
# file core
# what core
# tusc program
tusc is a very handy utility in HP11.11 for analysing system calls,
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/tusc-7.7/
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 09:09 PM
09-26-2005 09:09 PM
Re: gdb 6.2.1 on HP-UX B.11.11 U
Thanks for pointing.
I was writing some document for core file analysis long back.
http://geocities.com/kmuthu_gct/core_analysis.html
==
Rajesh,
This problem is seeming to be application vs gdb compatiblity. I was getting same type or errors with older gdb's
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 09:14 PM
09-26-2005 09:14 PM
Re: gdb 6.2.1 on HP-UX B.11.11 U
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1662,00.html
HP has done paltform specific changes in GDB and it is known as WDB, HP supports WDB.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 09:22 PM
09-26-2005 09:22 PM
Re: gdb 6.2.1 on HP-UX B.11.11 U
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=875475
It is a problem with gdb build.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 09:22 PM
09-26-2005 09:22 PM
Re: gdb 6.2.1 on HP-UX B.11.11 U
Its good to write. But plenty of docs available in web. See the following link. Its really good.
http://www.dirac.org/linux/gdb/
Rajesh,
you can use the strace system utility also to trace the system calls.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 09:28 PM
09-26-2005 09:28 PM
Re: gdb 6.2.1 on HP-UX B.11.11 U
http://h21007.www2.hp.com/dspp/files/unprotected/devresource/Tools/wdb/doc/gdb.pdf
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,1677,00.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2005 10:42 PM
09-26-2005 10:42 PM
Re: gdb 6.2.1 on HP-UX B.11.11 U
If your core was a 64bit dump, try to see if you have gdb64
My most recent gcc ports for HP-UX 11.11 contain gdb-6.3 for 32 AND 64 bit env:
http://mirrors.develooper.com/hpux/gcc-3.4.4-11.11.sd.bz
http://mirrors.develooper.com/hpux/gcc-4.0.1-11.11.sd.bz
I'm having trouble with 4.0.1 in 64bit, so if you want to play safe, use the 3.4.4 build
Enjoy, Have FUN! H.Merijn