- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- How to open a core file in gdb on a different mach...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО08-08-2007 01:22 AM
тАО08-08-2007 01:22 AM
I have a problem opening core file in gdb on a different machine from the one where it is generated.
gdb is not able to open the shared libs although i set GDB_SHLIB_PATH env varaible.
hpx404!dhirend1:~ [108]> gdb /pubhome/ip/iccip/iccip/proj/golc600_S8P9V64/bin/olcServer
HP gdb 5.7 (Beta) for HP Itanium (32 or 64 bit) and target HP-UX
11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.7 (Beta) (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions
to
change it and/or distribute copies. Type "show warranty" for warranty/
support.
..
(gdb) set environment GDB_SHLIB_PATH=/pubhome/ip/iccip/iccip/proj/
golc600_S8P9V64/lib/
(gdb) core-file core
Core was generated by `olcServer'.
Program terminated with signal 11, Segmentation fault.
SEGV_ACCERR - Invalid Permissions for object
/fs_fr01/frwrk1/abp_home/core/lib/libgolcfw.so: No such file or
directory.
warning: Error in reading symbols from /fs_fr01/frwrk1/abp_home/core/
lib/libgolcfw.so... skipping
/fs_fr01/frwrk1/abp_home/core/lib/libggnart.so: No such file or
directory.
warning: Error in reading symbols from /fs_fr01/frwrk1/abp_home/core/
lib/libggnart.so... skipping
/fs_fr01/frwrk1/abp_home/core/lib/libggnparser.so: No such file or
directory.
warning: Error in reading symbols from /fs_fr01/frwrk1/abp_home/core/
lib/libggnparser.so... skipping
/fs_fr01/frwrk1/abp_home/core/lib/libggn.so: No such file or
directory.
warning: Error in reading symbols from /fs_fr01/frwrk1/abp_home/core/
lib/libggn.so... skipping
/fs_fr01/frwrk1/abp_home/core/lib/libggninfra.so: No such file or
directory.
warning: Error in reading symbols from /fs_fr01/frwrk1/abp_home/core/
lib/libggninfra.so... skipping
/fs_fr01/frwrk1/abp_home/core/lib/libggn1fl.so: No such file or
directory.
warning: Error in reading symbols from /fs_fr01/frwrk1/abp_home/core/
lib/libggn1fl.so... skipping
#0 0xc0000000620caf90 in
information found.
Skipping this library /usr/lib/hpux64/libcl.so.1.()
from /fs_fr01/frwrk1/abp_home/core/lib/libgolcfw.so
(gdb)
As you can see gdb is trying to load the shared lib from /fs_fr01/frwrk1/abp_home/core/lib. It is the path of the filesystem on the machine where core is generated.
I want to change the path of the machine where i am opening the core file in gdb.
How to do it ?
Solved! Go to Solution.
- Tags:
- gdb
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 05:30 AM
тАО08-08-2007 05:30 AM
Re: How to open a core file in gdb on a different machine.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1135986
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 03:15 PM
тАО08-08-2007 03:15 PM
Re: How to open a core file in gdb on a different machine.
The final version is on the web.
>How to open a core file in gdb on a different machine.
The simplest way is don't. ;-)
But if that doesn't stop you, you should use the packcore command on the system where you have the core file. And the unpackcore on the system where you are debugging.
The problem you had was that you need to export GDB_SHLIB_PATH before you run gdb and not the application you are debugging.
>Juan: I will think you should be able to do a bt once on the gdb prompt.
No, you need to use packcore/unpack core.
>But read the following thread
Yes, that will help.
- Tags:
- packcore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 04:39 PM
тАО08-08-2007 04:39 PM
Re: How to open a core file in gdb on a different machine.
Try using packcore/unpackcore commands.
Also do have a look at the "core file debugging" white-paper available at the documentation link at http://www.hp.com/go/wdb.
This white paper has information on debugging cores in various scenarios.
Mithun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-08-2007 04:57 PM