help-cfengine
[Top][All Lists]
Advanced

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

RE: 2.1.8 problems on Mac OS 10.3.4


From: Steverson Scott
Subject: RE: 2.1.8 problems on Mac OS 10.3.4
Date: Thu, 12 Aug 2004 16:17:12 -0500

This modification has corrected my 'Illegal instruction' issue on AIX as
well.

Thanks!  Looking forward to a stable 2.1.10!

-----Original Message-----
From: Mark.Burgess@iu.hio.no [mailto:Mark.Burgess@iu.hio.no]
Sent: Thursday, August 12, 2004 3:18 PM
To: ckacoroski@nsd.org
Cc: Mark.Burgess@iu.hio.no; help-cfengine@gnu.org
Subject: Re: 2.1.8 problems on Mac OS 10.3.4


Yes. Try this:

In image.c, function ImageCopy: the variable server should be expandsize not
bufsize. Recompile and let me know.

void ImageCopy(char *sourcefile,char *destfile,struct stat
sourcestatbuf,struct Image *ip)

{ char linkbuf[CF_BUFSIZE],server[CF_EXPANDSIZE],*lastnode;
  struct stat deststatbuf;


On 12 Aug, Chris Kacoroski wrote:
> Mark,
> 
> It got a bit further in the process and then crashed again in the 
> function RecursiveImage.  I am guessing it is the same sort of issue you 
> fixed before as this function calls the BufferOverflow function that you 
> replaced in the snapshot with ExpandOverflow.  The file that it attempts 
> to copy created on the Mac client, but it is empty.  Thanks for your help.
> 
> cheers,
> 
> ski
> 
> 1795        if (rename(new,dest) == -1)
> (gdb) n
> 1810     if ((IMAGEBACKUP != 'n') && backupisdir)
> (gdb) n
> 1815     else if ((IMAGEBACKUP != 'n') &&
Repository(backup,ip->repository))
> (gdb) n
> 1820     if (ip->preservetimes == 'y')
> (gdb) n
> 1829     return true;
> (gdb) ba
> #0  CopyReg (source=0xbffef8a0 "", dest=0xbfff28a0 
> "/var/cfengine/inputs/variables.cf", sstat={st_dev = 0, st_ino = 0, 
> st_mode = 0, st_nlink = 0, st_uid = 0, st_gid = 0, st_rdev = 0, 
> st_atimespec = {tv_sec = 0, tv_nsec = 0}, st_mtimespec = {tv_sec = 0, 
> tv_nsec = 0}, st_ctimespec = {tv_sec = 0, tv_nsec = 0}, st_size = 0, 
> st_blocks = 0, st_blksize = 0, st_flags = 0, st_gen = 0, st_lspare = 0, 
> st_qspare = {0, 0}}, dstat={st_dev = 234881026, st_ino = 371806, st_mode 
> = 33152, st_nlink = 1, st_uid = 0, st_gid = 0, st_rdev = 0, st_atimespec 
> = {tv_sec = 1092325574, tv_nsec = 0}, st_mtimespec = {tv_sec = 
> 1092325574, tv_nsec = 802625000}, st_ctimespec = {tv_sec = 1092325574, 
> tv_nsec = 0}, st_size = 0, st_blocks = 0, st_blksize = 4096, st_flags = 
> 0, st_gen = 0, st_lspare = 0, st_qspare = {0, 0}}, ip=0x307860) at 
> image.c:1829
> #1  0x0000006e in ?? ()
> #2  0x0001a590 in CopyReg (source=0xbffef8a0 "", dest=0xbfff28a0 
> "/var/cfengine/inputs/variables.cf", sstat={st_dev = -1090495472, st_ino 
> = 1182082, st_mode = 49151, st_nlink = 23472, st_uid = 1207904, st_gid = 
> 3221183504, st_rdev = 1207904, st_atimespec = {tv_sec = 1179848, tv_nsec 
> = 1179844}, st_mtimespec = {tv_sec = 1179854, tv_nsec = -1}, 
> st_ctimespec = {tv_sec = 1179848, tv_nsec = 12}, st_size = 
> -4611957529079971840, st_blocks = 5067402668675500, st_blksize = 
> 1081084, st_flags = 2684358820, st_gen = 3221162108, st_lspare = 
> -1878997464, st_qspare = {-4611958627987619294, -8070232365088080520}}, 
> dstat={st_dev = 0, st_ino = 26, st_mode = 0, st_nlink = 0, st_uid = 
> 1081084, st_gid = 0, st_rdev = 1182082, st_atimespec = {tv_sec = 
> -1073783888, tv_nsec = 1207904}, st_mtimespec = {tv_sec = -1073783792, 
> tv_nsec = 1207904}, st_ctimespec = {tv_sec = 1179848, tv_nsec = 
> 1179844}, st_size = 5067438639022079, st_blocks = -4293787452, 
> st_blksize = 46, st_flags = 0, st_gen = 46, st_lspare = -1878873112, 
> st_qspare = {-4611958282309857116, -8069698343619475928}}, 
> ip=0xbfff0880) at image.c:1795
> (gdb) n
> 1830    }
> (gdb) n
> ImageCopy (sourcefile=0xbffef8a0 "", destfile=0xbfff28a0 
> "/var/cfengine/inputs/variables.cf", sourcestatbuf={st_dev = 0, st_ino = 
> 0, st_mode = 0, st_nlink = 0, st_uid = 0, st_gid = 0, st_rdev = 0, 
> st_atimespec = {tv_sec = 0, tv_nsec = 0}, st_mtimespec = {tv_sec = 0, 
> tv_nsec = 0}, st_ctimespec = {tv_sec = 0, tv_nsec = 0}, st_size = 0, 
> st_blocks = 0, st_blksize = 0, st_flags = 0, st_gen = 0, st_lspare = 0, 
> st_qspare = {0, 0}}, ip=0x0) at image.c:894
> 894               if (stat(destfile,&deststatbuf) == -1)
> (gdb) ba
> #0  ImageCopy (sourcefile=0xbffef8a0 "", destfile=0xbfff28a0 
> "/var/cfengine/inputs/variables.cf", sourcestatbuf={st_dev = 0, st_ino = 
> 0, st_mode = 0, st_nlink = 0, st_uid = 0, st_gid = 0, st_rdev = 0, 
> st_atimespec = {tv_sec = 0, tv_nsec = 0}, st_mtimespec = {tv_sec = 0, 
> tv_nsec = 0}, st_ctimespec = {tv_sec = 0, tv_nsec = 0}, st_size = 0, 
> st_blocks = 0, st_blksize = 0, st_flags = 0, st_gen = 0, st_lspare = 0, 
> st_qspare = {0, 0}}, ip=0x0) at image.c:894
> #1  0x00000000 in ?? ()
> (gdb) n
> 901 
>
CheckCopiedFile(ip->cf_findertype,destfile,ip->plus,ip->minus,fixall,ip->uid
,ip->gid,&deststatbuf,&sourcestatbuf,NULL,ip->acl_aliases);
> (gdb) ba
> #0  ImageCopy (sourcefile=0xbffef8a0 "", destfile=0xbfff28a0 
> "/var/cfengine/inputs/variables.cf", sourcestatbuf={st_dev = 0, st_ino = 
> 0, st_mode = 0, st_nlink = 0, st_uid = 0, st_gid = 0, st_rdev = 0, 
> st_atimespec = {tv_sec = 0, tv_nsec = 0}, st_mtimespec = {tv_sec = 0, 
> tv_nsec = 0}, st_ctimespec = {tv_sec = 0, tv_nsec = 0}, st_size = 0, 
> st_blocks = 0, st_blksize = 0, st_flags = 0, st_gen = 0, st_lspare = 0, 
> st_qspare = {0, 0}}, ip=0x0) at image.c:901
> #1  0x00000000 in ?? ()
> (gdb) cont
> Continuing.
> CheckCopiedFile(/var/cfengine/inputs/variables.cf,+700,-7077)
> cfengine:: Checking fs-object /var/cfengine/inputs/variables.cf
> CheckExistingFile(+700,-7077)
> CheckFinderType of /var/cfengine/inputs/variables.cf for *
> CheckFinderType not needed
> CheckOwner: 0
>   uid 0
> Trying to fix mode...
> cfengine:: Object /var/cfengine/inputs/variables.cf had permission 600, 
> changed it to 700
> CheckExistingFile(Done)
> Leaving ImageCopy
> 
> Program received signal EXC_BAD_ACCESS, Could not access memory.
> 0x00000000 in ?? ()
> 
> 
> Mark.Burgess@iu.hio.no wrote:
> 
>> Chris,
>> 
>> try the snapshot at
http://www.cfengine.org/src-mirror/cfengine-snap.tar.gz
>> 
>> M
>> 
>> 
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine




reply via email to

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