Hello, Madhusudan C.S, le Tue 17 Jun 2008 04:01:02 +0530, a écrit : > I get the following kind of error, when I settrans my procfs on a directory > and > run ls. How to track this kind of errors. Can some one help me please. > > *** glibc detected *** procfs: free(): invalid pointer: 0x0122ba44 ***
You are giving free() a pointer which was not allocated by malloc. My guess is that you are giving a pointer to a local variable. > Also if netfs_get_dirents gets parameters BUFSIZE as 0, ENTRY as 0 and > NETNRIES as -1, what might be the possible mistake. How to trace it as to why > it happens. NENTRIES -1 just means no max. About BUFSIZE, see the doc: « If the supplied buffer is not large enough to hold the data, it should be grown. » i.e. reallocate *data. Samuel