Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What do Segmentation violation, `Bus error, and General protection fault mean? What is a core dump?
What do Segmentation violation, `Bus error, and General protection fault mean? What is a core dump?
✍: Guest
These symptoms (and any similar messages having to do with memory access violations or protection faults) generally mean that your program tried to access memory it shouldn't have, invariably as a result of stack corruption or improper pointer use. Likely causes are:
* overflow of local (``automatic,'' stack-allocated) arrays
* inadvertent use of null pointers
* uninitialized, misaligned, or otherwise improperly allocated pointers
* stale aliases to memory that has been relocated
* corruption of the malloc arena
* attempts to modify read-only values (those declared const, and string literals
* mismatched function arguments, especially involving pointers; two possibilities are scanf and fprintf (make sure it receives its first FILE * argument)
Under Unix, any of these problems almost invariably leads to a ``core dump'': a file named core, created in the current directory, containing a memory image of the crashed process, for debugging.
The distinction between ``Bus error'' and ``Segmentation Violation'' may or may not be significant; different versions of Unix generate these signals under different sets of circumstances. Roughly speaking, a segmentation violation indicates an attempt to access memory which doesn't even exist, and a bus error indicates an attempt to access memory in an illegal way
2015-05-20, 1298👍, 0💬
Popular Posts:
What are the types of variables x, y, y and u defined in the following code? #define Atype int* type...
How To Use "IN OUT" Parameter Properly? - Oracle DBA FAQ - Creating Your Own PL/SQL Procedures and F...
What's wrong with this initialization? char *p = malloc(10); My compiler is complaining about an ``i...
How can I include comments in HTML? An HTML comment begins with "<!--", ends with "-->...
How do we assign page specific attributes ? Page attributes are specified using the @Page directive.