This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: libpthread to nptl migration : nunmap_chunk() : invalid pointer
I found my bug : closedir(arg) used with uninitilized arg.
For me, it could also be a non-regression glibc bug, because with glibc
3.4.3 the following code didn't crashed the prog, with 4.1 it does :
#include <dirent.h>
int main(int argc, char** argv)
{
DIR *dir;
closedir(dir);
}
Thanks for your response.
Yann Le Doaré.
http://linuxconsole.org
Le dimanche 07 mai 2006 à 10:22 +0200, Petter Reinholdtsen a écrit :
> [Yann Le Doaré]
> > All seems to be ok, exepted a little prog that crashes on this
> > message : nunmap_chunk() : invalid pointer
> >
> > This prog does not use threads. is it a glibc bug ?
>
> Probably not. :)
>
> Try to use valgrind, <URL:http://valgrind.org/>, to debug it. It is
> very good at pinpoiting memory use errors in programs.