Ik ben een beetje bezig met C momenteel en dus vliegen de segmentation faults me om de oren
In mijn beleving is een segmentation fault zo'n beetje wat in Java een NullPointerException is, proberen een bewerking te doen op een variabele die null is. Klopt dat, en zo ja, waar komt dan de term Segmentation Fault vandaan?
Iets zegt me dat 't op de wikipedia-pagina wel uitgelegd wordt
En dat kostte me wel 2 seconden om te vinden. En Osiris ook zo te zien.A segmentation fault (often shortened to segfault) is a particular error condition that can occur during the operation of computer software. In short, a segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (e.g., attempts to write to a read-only location, or to overwrite part of the operating system). Systems based on processors like the Motorola 68000 tend to refer to these events as Address or Bus errors.
Segmentation is one approach to memory management and protection in the operating system. It has been superseded by paging for most purposes, but much of the terminology of segmentation is still used, "segmentation fault" being an example. Some operating systems still have segmentation at some logical level although paging is used as the main memory management policy.
Volgende keer even zoeken voordat je hier een topic opent.
'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.
Dit topic is gesloten.
![]()