diff -Naur glibc-2.5.orig/nptl_db/td_thr_getfpregs.c glibc-2.5/nptl_db/td_thr_getfpregs.c
--- glibc-2.5.orig/nptl_db/td_thr_getfpregs.c	2008-10-01 12:36:45.000000000 -0400
+++ glibc-2.5/nptl_db/td_thr_getfpregs.c	2008-10-01 12:38:35.000000000 -0400
@@ -37,7 +37,7 @@
 
   /* If the thread already terminated we return all zeroes.  */
   if (((int) (uintptr_t) cancelhandling) & TERMINATED_BITMASK)
-    memset (regset, '\0', sizeof (*regset));
+    memset (regset, '\0', sizeof (regset));
   /* Otherwise get the register content through the callback.  */
   else
     {
