LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-11-2010, 03:02 PM   #1
DarkC0de
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
Segmentation fault


what different between Segmentation fault and aborted

When I read about dbg I make different reason from the tutorial ....
with the same code

example in tutorial the gdb Display a message like this
Code:
Core was generated by `./bof AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
and in my computer I have
Code:
  Core was generated by `./bof AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'.
Program terminated with signal 6, Aborted.
#0  0x00b4d422 in __kernel_vsyscall ()
I want to know what the different between them
 
Old 03-11-2010, 04:01 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
A segmentation fault is when the code accesses a memory address that is either not allocated to a segment or is in a segment that it does not have the appropriate rights to access. When this happens a signal 11 is generated, and handled by terminating the process.

An abort is a deliberate termination (eg by calling abort in C), either from the program or one of the libraries. A common case in which this occurs is when the memory allocation library detects a problem in the way that the program has been accessing the heap, and shuts down the program rather than continue with obvious problems.

Last edited by neonsignal; 03-11-2010 at 04:04 PM.
 
Old 03-12-2010, 01:01 AM   #3
DarkC0de
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for help
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Segmentation Fault? Help!! jcdlvsrbld Linux - Software 4 06-11-2009 09:48 AM
Segmentation fault Bjorne Debian 3 05-23-2007 10:11 AM
Segmentation Fault arabindav Programming 2 03-02-2007 08:07 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
why segmentation fault??? andrewnow Programming 8 03-26-2005 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration