![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 7
Rep Power: 0
![]() |
Seg fault?
Forgive my ignorance, but what exactly is a seg fault?
|
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 555
Rep Power: 5
![]() |
It means a program is trying to access memory outside it's address space, usually out of bound references
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4 |
|
|
|
|
|
#3 |
|
Expert Programmer
|
Specifically though SegFault tends to happen in Linux based operating systems, and probably a few others. In Windows you will get an error called an "Access Violation" or an "Illegal Operation", never a Segfault.
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
|
Segmentation fault happens when the Operating system gets pointed to a confusing or non existant address on return from a subroutine or actually returning to the operating system itself.
For example, when a program calls a subroutine, on the stack, a special note is pushed, the RET address. Segmentation fault happens when the OS tries to read the RET point, and when it goes to the address an RET address specifies it doesn't exist in memory. So, segmentation fault is called. And the program is exited. I could have explained it more in depth, but you should get the general idea. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|