bug-cfengine
[Top][All Lists]
Advanced

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

SIGSEGV while secure copy


From: Thomas Glanzmann
Subject: SIGSEGV while secure copy
Date: Mon, 13 May 2002 15:07:24 +0200

cfengine:faui05h:   (Change owner to uid 31210 if possible)
cfengine:faui05h:   (Change group to gid 30003 if possible)
cfengine:faui05h: Checking link from 
/usr/local.stand/kde-1.1.2/.arch.os.i386.linux/lib/libmimelib.so to 
libmimelib.so.1.0.0
Not checking whether link pointed object exists
cfengine:faui05h:   (Change owner to uid 31210 if possible)
cfengine:faui05h:   (Change group to gid 30003 if possible)
cfengine:faui05h: 
/usr/local.stand/kde-1.1.2/.arch.os.i386.linux/lib/libmimelib.la wasn't at 
destination (copying)
cfengine:faui05h:   (Change owner to uid 31210 if possible)
cfengine:faui05h:   (Change group to gid 30003 if possible)

Program received signal SIGSEGV, Segmentation fault.
0x0817519c in strncpy ()
(gdb) bt
#0  0x0817519c in strncpy ()
#1  0x08059435 in cfreaddir (cfdirh=0x82a6080, ip=0x82bbe70) at image.c:1186
#2  0x080572a0 in RecursiveImage (ip=0x82bbe70,
    from=0xbfff9adc "/raid/lexec/kde-1.1.2/.arch.os.i386.linux/lib",
    to=0xbfff8adc "/usr/local.stand/kde-1.1.2/.arch.os.i386.linux/lib",
    maxrecurse=8) at image.c:92
#3  0x0805726d in RecursiveImage (ip=0x82bbe70,
    from=0xbfffbbcc "/raid/lexec/kde-1.1.2/.arch.os.i386.linux",
    to=0xbfffabcc "/usr/local.stand/kde-1.1.2/.arch.os.i386.linux",
    maxrecurse=9) at image.c:191
#4  0x0805726d in RecursiveImage (ip=0x82bbe70,
    from=0xbfffecb4 "/raid/lexec/kde-1.1.2",
    to=0xbfffdcb4 "/usr/local.stand/kde-1.1.2", maxrecurse=10) at image.c:191
#5  0x080506c5 in MakeImages () at do.c:2372
#6  0x0804a4f4 in DoTree (passes=2, info=0x81c8316 "Main Tree")
    at cfagent.c:1146
#7  0x080483f2 in main (argc=3, argv=0xbffffdc4) at cfagent.c:155

If someone needs more information I can provide them of course.

Any ideas? cfengine is linked statically!

I try to recompile it.

struct cfdirent *cfreaddir(cfdirh,ip)

CFDIR *cfdirh;
struct Image *ip;

  /* We need this cfdirent type to handle the weird hack */
  /* used in SVR4/solaris dirent structures              */

{ static struct cfdirent dir;
  struct dirent *dirp;

bzero(dir.d_name,bufsize);

if (strcmp(ip->server,"localhost") == 0)
   {
   dirp = readdir(cfdirh->cf_dirh);

   if (dirp == NULL)
      {
      return NULL;
      }
   strncpy(dir.d_name,dirp->d_name,bufsize);
   return &dir;
   }
else
   {
   if (cfdirh->cf_listpos != NULL)
      {
      strncpy(dir.d_name,(cfdirh->cf_listpos)->name,bufsize);              /* 
here we crash bufsize is 4096*/
      cfdirh->cf_listpos = cfdirh->cf_listpos->next;
      return &dir;
      }
   else
      {
      return NULL;
      }
   }
}




--
Thomas Glanzmann            +49 1212 5 269 38 260
Rathsbergerstrasse 28 D-91054 Erlangen / Burgberg




reply via email to

[Prev in Thread] Current Thread [Next in Thread]