[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requesting for help regarding libnetfs

From: Samuel Thibault
Subject: Re: Requesting for help regarding libnetfs
Date: Tue, 17 Jun 2008 00:30:58 +0100
User-agent: Mutt/1.5.12-2006-07-14


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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]