- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- what is segmentation fault , and how to slove 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
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
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
07-15-2011 02:48 AM
07-15-2011 02:48 AM
what is segmentation fault , and how to slove it ?
Dear Linux / unix expert
my server is hp proliant G5 , OS is Linux Centos .
i got one error msg is " segmentation fault "
may i know why got this msg ? and how to solve it ?
- Tags:
- SIGSEGV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2011 03:44 AM
07-15-2011 03:44 AM
Re: what is segmentation fault , and how to slove it ?
Hi
A segmentation fault or bus error is generally an attempt to access memory that the CPU.cannot physically address.It occurs when the hardware notifies a UNIX like operating system about a memory access violation.
Normally when we getting this error, we just reboot the server
Thanks
BR
BR
____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2011 07:29 AM
07-15-2011 07:29 AM
Re: what is segmentation fault , and how to slove it ?
may i know why got this msg ? and how to solve it ?
Is Google broken? A Web search for "segmentation fault" should get
you the whole Wikipedia article, not just the first part.
i got one error msg is " segmentation fault "
When you did _what_?
Normally when we getting this error, we just reboot the server
Some people try to find and fix the problem with the software.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2011 07:29 AM - edited 07-15-2011 07:33 AM
07-15-2011 07:29 AM - edited 07-15-2011 07:33 AM
Re: what is segmentation fault , and how to slove it ?
[reply clash with Steven :-) ]
The prior reply (Naj) is a verbatim copy from http://en.wikipedia.org/wiki/Segmentation_fault without the reference.
If you want to address (sic) this issue, then
- it behooves you to read that article or Google for more.
- you need to describe the problem better in classic problem solving terms : what is being done when the error happens? did it ever work? what changed? When does it happen ('all the time', sometimes, when xyz is also being done, after the program runs for 6 days, ...)
- any resources (memory, disk) being exhausted?
Just blindly rebooting the system is a rather blunt reaction, suggesting a clueless operator.
Reboot prohibits developing a full understanding and proper correction.
Reboot is a valid approach after (corrected) hardware issues, but a segmentation fault is 99.9% sure to be a software coding problem which will NOT be solved by a reboot, but just hidden for a while longer.
A more reasonable reaction might be to document the time, and take a quick system snapshot of sorts with 'vmstat', sar or similar, to get an impression of what was running at the time of the issue and then restart the process/job which failed. Does it work now, or fail again? Do other messages precede the segmentation fault?
Good luck!
Hein
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2011 01:05 PM
07-16-2011 01:05 PM
Re: what is segmentation fault and how to solve it?
Do you have a core file so you can invoke a debugger?
Do you know which application is failing?
If the application doesn't have debug info, can you get a stack trace?
And even if you do all of this, is there anyone that supports that application so you can get it fixed?
Otherwise as Hein said, you may have to note it down, remove the core file and restart the application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2011 08:35 AM
07-19-2011 08:35 AM
Re: what is segmentation fault and how to solve it?
Shalom,
Most likely cause of this is an application trying to access memory not allocated to it.
The application must be identified (usually by core files or you revealing what command triggers the fault). Then its usually fixed by repairing the application or getting a patch from the application vendor.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com