- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Segmentation fault (core dumped); what is it?
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
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
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
тАО03-01-2004 03:32 PM
тАО03-01-2004 03:32 PM
Segmentation fault (core dumped); what is it?
Segmentation fault (core dumped)
What is it? Can you help me to resolve it?.
Thanks
Best Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2004 04:01 PM
тАО03-01-2004 04:01 PM
Re: Segmentation fault (core dumped); what is it?
# file core
The core file is generated in whatever directory you were in when you started the program.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2004 04:11 PM
тАО03-01-2004 04:11 PM
Re: Segmentation fault (core dumped); what is it?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2004 05:14 PM
тАО03-01-2004 05:14 PM
Re: Segmentation fault (core dumped); what is it?
SEP wrote: "If your application consistently produces core dumps, consider recompiling or relinking it."
I suppose a binary could experience bit-rot and go bad over time? If that can happen then recompile can create a fresh image for a few more executions. But more likely a recompile will recreate the exact same image.
Actually... just check that with 'diff'!
Admittedly, the core dump may be a consequence of badly generated code, and a new compiler may just do a better job. Could happen. Unlikely, but it could happen. Or it could pick up a fixed library module. Could happen (if you applied patches since the last build)
In my experience core dumps are 99% sure to be application program bugs/weaknesses. Programs that do not have enough 'defense' against unhandled conditions like 'more data then yesterday', 'file not found', 'not enough shmmax', 'bad timing', 'insuffficient system resources'...
You have to check what the program was trying to do at the time of the problem.
It may also help to try to understand the differences in circumstances on times the program fails versus when it works. It does seem to work some times does it?!. Is it trying to server more sockets? Does it have to deal with a larger input file? You'll need pretty deep application knowledge to understand what migth be wrong, or to rule out and application prolem and refocus on a compiler/library/kernel problem.
Good luck!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2004 02:18 AM
тАО03-02-2004 02:18 AM
Re: Segmentation fault (core dumped); what is it?
do you also get a bus error before?
If so, you may be missing a required file, or library.
Are you compiling, or simply running an app?
if you are just running an app that should run, have you recently played with the kernel? has the app grown in size? If you answered yes to either of these.. you may have an issue in the kernel.
so basically, it could be anything -
good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-02-2004 02:33 AM
тАО03-02-2004 02:33 AM
Re: Segmentation fault (core dumped); what is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2004 12:48 AM
тАО03-03-2004 12:48 AM
Re: Segmentation fault (core dumped); what is it?
Have you tried running a tusc against it at execution time? That way you can see what happens just before time of death.
Also, I believe you can run adb or q4 against the core file just like you would do on a system core dump analysis <=not sure how much info you can get really but... Let me know if this helps.
cheers,
leigh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2004 02:17 AM
тАО03-03-2004 02:17 AM
Re: Segmentation fault (core dumped); what is it?
If the cause is SIGSEGV, then what is happening is that the program is trying to cross a memory limit or boundary that it can't.
This could be an overflow of one of the max?siz kernel parms or it could indicate an exhaustion of swap or even a ulimit ceiling being hit.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2004 02:51 AM
тАО03-03-2004 02:51 AM
Re: Segmentation fault (core dumped); what is it?
From personal experience, in most cases you can get a basic stack trace from "gdb", even if your program hasn't been compiled with debugging enabled. (However, if your program has been stripped, all bets are off). This will at least help you isolate whether the error is occurring within your code or within a library.