Re:C for Python programmers (2011)
by caro_douglos on Tuesday November 08, 2016 @01:12AM
(#12898071)
I recall them being a way of seeing how much you studied at uni...or some professor wanting to bring up the morris worm
I confused that termination with the idea that my pointer has never been dereferenced in the first place. Now, I don't know if the kernel intervenes before the invalid address is going to be dereferenced or just after it. The thing is, I understood the concept, but getting this error was giving me doubt since I made an error of accessing valid memory.
Once I understood that I tried to force a normal int to become a pointer and eventually it worked (needed two ints and an 8-bit variable to cast it to a 64 bit address), proving to me that I understood the concept.
Accessing (valid) memory and pointers should be explained together.