From: Miklos S. <mi...@sz...> - 2007-05-14 10:59:47
|
> So to just test whether i am able to combine the read from both the > parts and able to read successfully, I am doing random write in the first > part of the file after by dividing point so that the size parameter's > value in read wld be actual that of original size. In read i am able to > combine read from both the parts doing strcat and then memcpy on buf ...i > am able to complete my read request in debug mode but then soon there is > sometimes segmentation fault or glibc double free error... > > can some one help me out... Try valgrind, which is a very powerful memory checking tool. It can in most cases pinpoint exactly what you are doing wrong. Miklos |