- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to debug the core dump file created by perl sc...
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
тАО01-26-2011 06:31 PM
тАО01-26-2011 06:31 PM
I have a perl script which create a core dump,
root# file core.22
core.22: ELF-32 core file - IA64 from 'test' - received SIGSEGV
So is there any method which i can see the stack where the core happens?
Thanks in advance!
Kevin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-26-2011 10:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 12:04 AM
тАО01-27-2011 12:04 AM
Re: how to debug the core dump file created by perl script
I have tried that way, but the gdb will report "not in executable format: File format not recognized".
I want to see the stack where the coredump happened.
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 12:29 AM
тАО01-27-2011 12:29 AM
Re: how to debug the core dump file created by perl script
Please try with below options as per man page.
Should work ,do check the permissions.
gdb [-help] [-e executable-name] [-pid] [-c corefile-name]
Thanks
Manix
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 01:36 AM
тАО01-27-2011 01:36 AM
Re: how to debug the core dump file created by perl script
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 02:15 AM
тАО01-27-2011 02:15 AM
Re: how to debug the core dump file created by perl script
Ok, i try your way to debug the core.
root # gdb /usr/bin/perl core
warning: core file may not match specified executable file.
Core was generated by `test'.
Program terminated with signal 11, Segmentation fault.
SEGV_MAPERR - Address not mapped to object
warning: Some of the libraries in the core file are different from the libraries on this computer. It might be possible to proceed with your debugging process successfully. However, if you run into problems you must use packcore command or use the versions of the libraries used by the core. The mismatches are:
/usr/lib/hpux32/libnsl.so.1 in the core file is different from
/usr/lib/hpux32/libnsl.so.1 used by gdb
/usr/lib/hpux32/libnss_nis.so.1 in the core file is different from
/usr/lib/hpux32/libnss_nis.so.1 used by gdb
warning: No unwind information found.
Skipping this library /usr/lib/hpux32/libcl.so.1.
#0 0x60000000c03a3260:0 in tree_delete+0x20 () from /usr/lib/hpux32/libc.so.1
(gdb) bt
#0 0x60000000c03a3260:0 in tree_delete+0x20 () from /usr/lib/hpux32/libc.so.1
#1 0x60000000c039fe50:0 in real_realloc+0x1410 ()
from /usr/lib/hpux32/libc.so.1
#2 0x60000000c039ea00:0 in _realloc+0xa0 () from /usr/lib/hpux32/libc.so.1
#3 0x60000000c03ac2f0:0 in realloc+0x230 () from /usr/lib/hpux32/libc.so.1
#4 0x60000000c8bf0c80:0 in Perl_safesysrealloc () at util.c:124
#5 0x60000000c8c55670:0 in Perl_sv_grow () at sv.c:1660
#6 0x60000000c4f7a4b0:0 in PerlIOScalar_write () at scalar.xs:132
#7 0x60000000c8d89e90:0 in Perl_PerlIO_write () at perlio.c:1593
#8 0x60000000c8d34e20:0 in Perl_do_print () at doio.c:1354
#9 0x60000000c8c36d00:0 in Perl_pp_print () at pp_hot.c:625
#10 0x60000000c8c2fc00:0 in Perl_runops_standard () at run.c:38
#11 0x60000000c8b32220:0 in S_run_body () at perl.c:2361
#12 0x60000000c8b319b0:0 in perl_run () at perl.c:2283
#13 0x4001ff0:0 in main () at perlmain.c:99
But it seems that we can not see where the perl script create coredump.
Thanks!
Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-27-2011 05:45 AM
тАО01-27-2011 05:45 AM
Re: how to debug the core dump file created by perl script
I think you want to read the section entitled "Debugging" here:
http://perldoc.perl.org/perlhack.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2011 04:07 AM
тАО01-28-2011 04:07 AM
Re: how to debug the core dump file created by perl script
#1 0x60000000c039fe50:0 in real_realloc+0x1410
#2 0x60000000c039ea00:0 in _realloc+0xa0
#3 0x60000000c03ac2f0:0 in realloc+0x230
#4 0x60000000c8bf0c80:0 in Perl_safesysrealloc util.c:124
#5 0x60000000c8c55670:0 in Perl_sv_grow sv.c:1660
#6 0x60000000c4f7a4b0:0 in PerlIOScalar_write scalar.xs:132
This indicates that perl has corrupted the heap.