- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Regarding core dump analysis
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
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-06-2006 11:18 PM
09-06-2006 11:18 PM
Regarding core dump analysis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 11:40 PM
09-06-2006 11:40 PM
Re: Regarding core dump analysis
it details how to produce and use a back trace from the core file ... maybe of some use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2006 11:44 PM
09-06-2006 11:44 PM
Re: Regarding core dump analysis
Try to use file and strings to find some information about the dump, for more info, take a look at this thread,
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1045698
Regards,
Jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2006 02:52 AM
09-07-2006 02:52 AM
Re: Regarding core dump analysis
If this is a "homegrown" application then compile the application using -g, let it crash, and then use the debugger to examone the source file. In this case, the stack trace can point you to the exact source line where the problem lies.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2006 07:42 PM
09-08-2006 07:42 PM
Re: Regarding core dump analysis
I tried the below things how do i locate the code and reason that threw core dump
1.
>gdb -c core
HP gdb 1.1
Copyright 1986 - 1999 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 1.1 (based on GDB 4.17-hpwdb-980821)
Wildebeest 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 Wildebeest. Type "show warranty" for details.
Wildebeest was built for PA-RISC 1.1 or 2.0 (narrow), HP-UX 10.20.
Reading symbols from xcom...done.
Core was generated by `xcom'.
Program terminated with signal 11, Segmentation fault.
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
Unable to find dynamic library list.
#0 0x20202034 in ?? ()
(gdb) bt
#0 0x20202034 in ?? ()
Cannot access memory at address 0x2000.
(gdb) p/x $iir
$1 = 0x43ffff80
(gdb) p/x $ior
$2 = 0xca961d5f
(gdb) quit
2.
>adb
0x43ffff80=i
LDB 8128(sr3,r31),r31
3.
>file core
core: core file from 'xcom' - received SIGSEGV
>strings core | grep -i fatal
FATAL ERROR: running out of SVC control resources
FATAL: cannot get shared memory (SVC_RSC) with key = %ld
FATAL: cannot attach to shared memory (SESSION) with key = %d
FATAL: cannot get semaphore with key = %d
fatal
fatal
fatal
fatal
fatal
fatal
***Fatal: bad switch value
***Fatal: bad switch value
***Fatal: bad switch value
***Fatal: bad switch value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:42 AM
09-14-2006 03:42 AM
Re: Regarding core dump analysis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 03:56 AM
09-14-2006 03:56 AM
Re: Regarding core dump analysis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 04:38 AM
09-14-2006 04:38 AM
Re: Regarding core dump analysis
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 05:08 AM
09-14-2006 05:08 AM
Re: Regarding core dump analysis
Cannot access memory at address 0x2000.
0x2000 is certainly a bogus address but that's really all you can know. Knowing that does almost nothing to help you fix the problem. You have to send your core file to the developer and even then it's not trivial to diagnose. A stack trace becomes easy to analyze when the debugger information is included in the object files. Then a stack trace will point you to the exact line in the exact source file. The "gotcha" even in this case is that the -g compiler option (to include debugger data) also disables the optimizer. I've seen cases where non-optimized code (with -g) could never be induced to crash while the optimized code would crash everytime.
The suggestion to use the strings command on the core file is all but useless. All that will do is dump out all the string constants (including possible error messages) in the executable but it does absolutely nothing to identify which error message (if any) was actually output.
As a Plan B. Try to run the application under tusc. That will show the arguments and result of every system call and can be very helpful in diagnosing a problem. However, even in this case, you aren't going to be able to fix this because a code change will be needed. The answer is the same: contact the developer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2006 12:23 AM
09-15-2006 12:23 AM
Re: Regarding core dump analysis
./gdb xcom core
HP gdb 3.0.01 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 10.20.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.0.01 (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.
..(no debugging symbols found)...
warning: exec file is newer than core file.
Core was generated by `xcom'.
Program terminated with signal 11, Segmentation fault.
warning: Unable to find __dld_flags symbol in object file.
Error while reading dynamic library list.
#0 0x20202034 in ?? ()
(gdb) frame 0
#0 0x20202034 in ?? ()
(gdb) bt
#0 0x20202034 in ?? ()
warning: Attempting to unwind past bad PC 0x20202034
#1 0x20202034 in ?? ()
#2 0x20202034 in ?? ()
Cannot access memory at address 0x442c0a20
(gdb) frame 1
#1 0x20202034 in ?? ()
(gdb) frmae 2
Undefined command: "frmae". Try "help".
(gdb) frame 2
#2 0x20202034 in ?? ()
(gdb) backtrace full
#0 0x20202034 in ?? ()
No symbol table info available.
#1 0x20202034 in ?? ()
No symbol table info available.
#2 0x20202034 in ?? ()
No symbol table info available.
Cannot access memory at address 0x442c0a20
(gdb) where
#0 0x20202034 in ?? ()
#1 0x20202034 in ?? ()
#2 0x20202034 in ?? ()
Cannot access memory at address 0x442c0a20
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2006 01:44 AM
09-15-2006 01:44 AM
Re: Regarding core dump analysis
Next you start gdb (or whatever debugger you are running) and add -d sourcedir arguments to tell it where the source code directories are. The stacktrace will then pinpoint your source code line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2006 11:22 PM
09-17-2006 11:22 PM
Re: Regarding core dump analysis
So after compiling i will be not be able to create the new core dump.
if i compile it with -g option and run
with coredump i have will it workout. if no, is there any other debugger or way to find it.