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

Bug#425404: nscd: free's invalid pointer, causing calling program to abort

On Mon, 21 May 2007, Stephen Gran wrote:
> #4  0x00002ae2a514e21e in free () from /lib/libc.so.6
> No symbol table info available.
> #5  0x00002ae2a51d974a in nscd_getpw_r () from /lib/libc.so.6
> No symbol table info available.
> So it appears the breakage is in nscd.  Let me know you if there is any
> more information I can supply.

Stephen, I looked the upstream CVS repo and I found out this change:

(nscd_getpw_r): Remove incorrectly C&Ped free call in code handling
detection of GC runs.

RCS file: /cvs/glibc/libc/nscd/nscd_getpw_r.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- libc/nscd/nscd_getpw_r.c	2005/02/22 22:47:45	1.30
+++ libc/nscd/nscd_getpw_r.c	2005/09/22 14:35:11	1.31
@@ -227,8 +227,6 @@
 	  mapped = NO_MAPPING;
-      free (resultbuf);
       goto retry;

It's worth trying it out. Can you recompile a glibc with this patch and try out the new nscd package on alioth ?

If it fixes our problem, then it's worth including this update in etch r2
(probably too late for etch r1 already).

Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :

Reply to: