i have a file that i am trying to mmap.
and i get the error in valgrind
Invalid read of size 4
==31586== at 0x8048F06: filec(char*) (test.c:65)
==31586== by 0x80489D4: main (c1.c:33)
==31586== Address 0xFFFFFFFF is not stack'd, malloc'd or (recently) free'd
==31586== Process terminating with default action of signal 11 (SIGSEGV)
==31586== General Protection Fault
the reason is because , i am trying to access a value on of the mapped file. it works fine if the file is so much smaller but it shoudl work with large files too..thanks.