[Pvfs2-developers] double free error on pvfs2-ls

Nicholas Mills nlmills at g.clemson.edu
Tue Nov 11 14:23:08 EST 2008


Sumit,

According to FishEye this bug was fixed in the main branch on 2008-02-22.

--Nick

On Tue, Nov 11, 2008 at 2:05 PM, Sumit Narayan <sumnaray at gmail.com> wrote:

> Hi,
>
> I ran across this error while doing pvfs2-ls on my machine. It appears on
> my mac machine but I do not see this on my linux box.
>
> prompt$  pvfs2-ls
> lost+found
> pvfs2-ls(53274) malloc: *** error for object 0x100180: double free
> *** set a breakpoint in malloc_error_break to debug
>
> Using debugging options and looking at the source code, I found this in
> src/apps/admin/pvfs2-ls.c
>
> int main(int argc, char **argv)
> {
>    ......
>    free(user_opts->start);
>    free(pvfs_path);
>    free(fs_id_array);
>    free(user_opts);
>
>    PVFS_sys_finalize();
>    if (user_opts)
>        free(user_opts);
>    ....
> }
>
> I do not know why there are two free(user_opts), but putting user_opts =
> NULL after the first free resolves it. Any particular reason for double
> free?
>
> -- Sumit
> _______________________________________________
> Pvfs2-developers mailing list
> Pvfs2-developers at beowulf-underground.org
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.beowulf-underground.org/pipermail/pvfs2-developers/attachments/20081111/6d29c5d3/attachment.htm


More information about the Pvfs2-developers mailing list