[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The patch of glibc which allows the user to override the pfinet serv
From: |
Samuel Thibault |
Subject: |
Re: The patch of glibc which allows the user to override the pfinet server |
Date: |
Sat, 9 Aug 2008 13:44:19 +0100 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
zhengda, le Sat 09 Aug 2008 13:59:19 +0200, a écrit :
> if (name)
> free (name);
No need for an if here, free(NULL); is void already.
> When I build the glibc, I got the error as follow:
>
> CPP='gcc-4.2 -E -x c-header'
> /root/storage/glibc-2.7/build-tree/hurd-i386-libc/elf/ld.so.1
> --library-path
> /root/storage/glibc-2.7/build-tree/hurd-i386-libc:/root/storage/glibc-2.7/build-tree/hurd-i386-libc/math:/root/storage/glibc-2.7/build-tree/hurd-i386-libc/elf:/root/storage/glibc-2.7/build-tree/hurd-i386-libc/dlfcn:/root/storage/glibc-2.7/build-tree/hurd-i386-libc/nss:/root/storage/glibc-2.7/build-tree/hurd-i386-libc/nis:/root/storage/glibc-2.7/build-tree/hurd-i386-libc/rt:/root/storage/glibc-2.7/build-tree/hurd-i386-libc/resolv:/root/storage/glibc-2.7/build-tree/hurd-i386-libc/crypt:/root/storage/glibc-2.7/build-tree/hurd-i386-libc/mach:/root/storage/glibc-2.7/build-tree/hurd-i386-libc/hurd:/X11R6/lib
>
> /root/storage/glibc-2.7/build-tree/hurd-i386-libc/sunrpc/rpcgen -Y
> ../scripts -c rpcsvc/bootparam_prot.x -o
> /root/storage/glibc-2.7/build-tree/hurd-i386-libc/sunrpc/xbootparam_prot.T
> rpcgen: hurdmalloc.c:287: _hurd_free: Assertion `((h)->check) ==
> 0x8a3c743e' failed.
> make[2]: ***
> [/root/storage/glibc-2.7/build-tree/hurd-i386-libc/sunrpc/xbootparam_prot.stmp]
>
> Aborted
> make[2]: Leaving directory
> `/root/storage/glibc-2.7/build-tree/glibc-2.7/sunrpc'
> make[1]: *** [sunrpc/others] Error 2
> make[1]: Leaving directory `/root/storage/glibc-2.7/build-tree/glibc-2.7'
> make: *** [all] Error 2
>
> I don't understand what the error means
See hurrdmalloc.c:287. That's a double free.
> and I cannot find any problems in my code myself.
I had a look and could not find, except you should initialize server to
MACH_PORT_NULL, since you have a code path that doesn't initialize it.
> Can anyone see the problem in my code?
The problem may not be directly in your code. You should run the test
by hand in gdb, something like:
LD_LIBRARY_PATH=/root/storage/glibc-2.7/build-tree/hurd-i386-libc gdb --args
/root/storage/glibc-2.7/build-tree/hurd-i386-libc/sunrpc/rpcgen -Y ../scripts
-c rpcsvc/bootparam_prot.x -o
/root/storage/glibc-2.7/build-tree/hurd-i386-libc/sunrpc/xbootparam_prot.T
to get a backtrace.
Samuel
- Re: The patch of glibc which allows the user to override the pfinet server, zhengda, 2008/08/09
- Re: The patch of glibc which allows the user to override the pfinet server,
Samuel Thibault <=
- Re: The patch of glibc which allows the user to override the pfinet server, zhengda, 2008/08/10
- Re: The patch of glibc which allows the user to override the pfinet server, Samuel Thibault, 2008/08/10
- Re: The patch of glibc which allows the user to override the pfinet server, zhengda, 2008/08/10
- Re: The patch of glibc which allows the user to override the pfinet server, Samuel Thibault, 2008/08/10
- Re: The patch of glibc which allows the user to override the pfinet server, zhengda, 2008/08/10
- Re: The patch of glibc which allows the user to override the pfinet server, Samuel Thibault, 2008/08/10
- Re: The patch of glibc which allows the user to override the pfinet server, zhengda, 2008/08/10
- Re: The patch of glibc which allows the user to override the pfinet server, Samuel Thibault, 2008/08/12
- Re: The patch of glibc which allows the user to override the pfinet server, zhengda, 2008/08/12
- Re: The patch of glibc which allows the user to override the pfinet server, zhengda, 2008/08/12