LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Segmentation fault (http://www.linuxquestions.org/questions/programming-9/segmentation-fault-194139/)

marios_auth 06-16-2004 07:08 AM

Segmentation fault
 
What in the hell is segmantation fault?
I have a code in c++ which has dynamic allocate memory. The code is being compiled under linux with gcc with no problem. But when i use another os, like solaris with gcc it says segmentation fault?

deiussum 06-16-2004 08:16 AM

Segmentation faults are usually the result of touching memory in some way that you have no right to touch it. (e.g. accessing a dangling pointer, trying to write to the read-only memory reserved for string literals and constants, accessing memory beyond the bounds of an array...)


All times are GMT -5. The time now is 04:49 AM.