malloc/free and segfault - advanced question
A chunk of memory is malloc()ed.
A pointer p points to a memory location in that chunk.
The memory is then free()ed.
Can deferencing the pointer p cause a segmentation under Linux some times and
other times not.
In otherwords, can accessing memory not malloc()ed (but still in possible valid range) cause segmentation faults some times and not other times.
(Of course I know the code will be buggy, it's because I am having underterministic segmentation faults with the same program sometimes and other times not and I am trying to figure out what goes on. Note: The code is very complex.)
In case it matters, this is on a PowerPC processor.
Thanks in advance,