On 22 January 2011 23:39, Mark Burgess <mark.burg...@iu.hio.no> wrote:
>
> I wonder why this was not picked up before. Can you please try svn now?
> There was a missing prototype.
>

Still dumps core, but a different error this time.

- Erlend

bash-3.00# make; make install
...
bash-3.00# grep ForeignZone src/prototypes3.h
int ForeignZone(char *s);
bash-3.00# grep ForeignZone src/unix.c
   if (ForeignZone(vbuff))

bash-3.00# /usr/local/sbin/cf-key
Making a key pair for cfengine, please wait, this could take a minute...
bash-3.00# cp /usr/local/share/doc/cfengine/inputs/*cf
/var/cfengine/inputs/    bash-3.00# /usr/local/sbin/cf-agent
--bootstrap
bash-3.00# /usr/local/sbin/cf-agent
Segmentation Fault (core dumped)

bash-3.00# file core
core:           ELF 32-bit LSB core file 80386 Version 1, from 'cf-monitord'

bash-3.00# gdb /usr/local/sbin/cf-agent
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-pc-solaris2.10"...
(gdb) run
Starting program: /usr/local/sbin/cf-agent
warning: Lowest section in /lib/libpthread.so.1 is .dynamic at 00000074

Program received signal SIGSEGV, Segmentation fault.
0x080b6b72 in Unix_LoadProcessTable (procdata=0x81245b0,
    psopts=0x81ab040 "-eo
user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,nlwp,stime,time,args,zone")
at unix.c:385
385     PrependItem(&rootprocs,otherprocs->name,NULL);

(gdb) backtrace
#0  0x080b6b72 in Unix_LoadProcessTable (procdata=0x81245b0,
    psopts=0x81ab040 "-eo
user,pid,ppid,pgid,pcpu,pmem,vsz,pri,rss,nlwp,stime,time,args,zone")
at unix.c:385
#1  0x08063b69 in NewTypeContext (type=kp_processes) at agent.c:1125
#2  0x08063e44 in ScheduleAgentOperations (bp=0x820e7f0) at agent.c:858
#3  0x080640e2 in KeepPromiseBundles () at agent.c:821
#4  0x080641d9 in KeepPromises () at agent.c:363
#5  0x0806426f in main (argc=1, argv=0x8047dcc) at agent.c:151
(gdb) quit
The program is running.  Exit anyway? (y or n) y
bash-3.00#
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to