- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Segmentation fault & Core-dump
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
04-01-2004 06:43 PM
04-01-2004 06:43 PM
Can anybody give me an explanation to segmentation fault and core dump ?. I hope this is an APPS issue. Still to convince the APPS guys !! ??
I think (though not sure) this is a program written in C.
Regds,
Kaps
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 06:46 PM
04-01-2004 06:46 PM
SolutionUsually this is the result of pointers waving in the breeze or writing 10k of data to a buffer that has only "malloc'ed" 1k.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 06:48 PM
04-01-2004 06:48 PM
Re: Segmentation fault & Core-dump
These terms .... Malloc pointers ... ohmm .. can u explain little more in detail if u have time please...
Regds,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 06:48 PM
04-01-2004 06:48 PM
Re: Segmentation fault & Core-dump
If the apps. is not home made, maybe you can contact the support team.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 06:50 PM
04-01-2004 06:50 PM
Re: Segmentation fault & Core-dump
malloc() is the C standard fonction for memory allocation, the opposit function is free().
There is abondant littelrature on this subject on the web.
Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 06:58 PM
04-01-2004 06:58 PM
Re: Segmentation fault & Core-dump
A pointer is a variable that doesn't contain any data itself except the address of something else. For example I might have a chunk of memory, say 1k's worth that I have reserved for my application using the "malloc()" call. malloc() returns a "pointer" to that memory region. I can access this region by reference to this pointer. If I wrote 10k of data, using this pointer, I'd probably get a segmentation violation.
More fun is when you create a pointer to another variable, destroy the variable and then attempt to use the pointer again. This means you are using a pointer that points at nothing. It's rather hard to debug this because your code looks fine.
The fun of "C" eh :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 08:23 PM
04-01-2004 08:23 PM
Re: Segmentation fault & Core-dump
Regds,
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 10:07 PM
04-01-2004 10:07 PM
Re: Segmentation fault & Core-dump
There is a command called adb(absolute debugger) in hpux which is used to analyse core dumps....Dont know how much it is usefull for analysing them.
Hi experts!!! Am i correct.
The man pages says:
The adb command executes a general-purpose debugging program that is sensitive to the underlying architecture of the processor and
operating system on which it runs. It can be used to examine files and provide a controlled environment for executing HP-UX programs.
With best wishes
Naveej
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 10:14 PM
04-01-2004 10:14 PM
Re: Segmentation fault & Core-dump
It would help to know what to look for.
For a segmentation violation, I guess the stack would be of interest since it contain run-time function ans procedure activation records.
Are you able to reproduce the error at will ?
That also the kind of information a support normaly ask for.