Subject: cfengine on netbsd-1-6?
To: None <tech-pkg@netbsd.org>
From: Hauke Fath <hf@spg.tu-darmstadt.de>
List: tech-pkg
Date: 07/28/2004 13:43:19
Hi,

what is the official word on Cfengine 2 for NetBSD 1.6.2? Both cfservd
and dfenvd die quickly with something like (ktrace of cfservd here):

  6429 cfservd  CALL  __stat13(0xbfbfbeec,0xbfbfceec)
  6429 cfservd  NAMI  "/var/cfengine/inputs/cfservd.conf"
  6429 cfservd  RET   __stat13 0
  6429 cfservd  CALL  select(0x8,0xbfbfce3c,0,0,0xbfbfcd2c)
  6429 cfservd  RET   select 0
  6429 cfservd  CALL  __sigprocmask14(0,0,0x80fb388)
  6429 cfservd  RET   __sigprocmask14 0
  6429 cfservd  CALL  __sigprocmask14(0x3,0x80fb288,0)
  6429 cfservd  RET   __sigprocmask14 0
  6429 cfservd  CALL  gettimeofday(0x810eeb8,0)
  6429 cfservd  RET   gettimeofday 0
  6429 cfservd  CALL  __sigpending14(0x482394e8)
  6429 cfservd  RET   __sigpending14 0
  6429 cfservd  CALL  read(0x4,0x810e628,0x80)
  6429 cfservd  RET   read -1 errno 9 Bad file descriptor
  6429 cfservd  CALL  __sigprocmask14(0x3,0x482394f8,0x810ecd8)
  6429 cfservd  RET   __sigprocmask14 0
  6429 cfservd  CALL  select(0x8,0x810ede8,0x810ed68,0x810ece8,0)
  6429 cfservd  RET   select -1 errno 9 Bad file descriptor
  6429 cfservd  CALL  __sigprocmask14(0x3,0x810ecd8,0)
  6429 cfservd  RET   __sigprocmask14 0
  6429 cfservd  CALL  select(0x9,0x810e5a8,0,0,0x810e490)
  6429 cfservd  RET   select 0
  6429 cfservd  CALL  fcntl(0x2,0x3,0x705336)
  6429 cfservd  RET   fcntl 2
  6429 cfservd  CALL  fcntl(0x2,0x3,0)
  6429 cfservd  RET   fcntl 2
  6429 cfservd  CALL  fcntl(0x2,0x4,0x6)
  6429 cfservd  RET   fcntl 0
  6429 cfservd  CALL  select(0x3,0,0x810e458,0,0x810e450)
  6429 cfservd  RET   select 1
  6429 cfservd  CALL  write(0x2,0x810e5fc,0x4e)
  6429 cfservd  GIO   fd 2 wrote 78 bytes
       "**Pth** SCHEDULER INTERNAL ERROR: no more thread(s) available to
schedule!?!?       "
  6429 cfservd  RET   write 78/0x4e
  6429 cfservd  CALL  fcntl(0x2,0x3,0)
  6429 cfservd  RET   fcntl 6
  6429 cfservd  CALL  fcntl(0x2,0x4,0x2)
  6429 cfservd  RET   fcntl 0
  6429 cfservd  CALL  __sigprocmask14(0x3,0x810ee58,0)
  6429 cfservd  RET   __sigprocmask14 0
  6429 cfservd  CALL  getpid
  6429 cfservd  RET   getpid 6429/0x191d
  6429 cfservd  CALL  kill(0x191d, SIGABRT)
  6429 cfservd  PSIG  SIGABRT SIG_DFL
  6429 cfservd  NAMI  "cfservd.core"
  6428 cfservd  CALL  fcntl(0x3,0x3,0)
  6428 cfservd  RET   fcntl 6
  6428 cfservd  CALL  fcntl(0x3,0x4,0x2)
  6428 cfservd  RET   fcntl 0
  6428 cfservd  CALL  close(0x4)
  6428 cfservd  RET   close 0
  6428 cfservd  CALL  close(0x5)
  6428 cfservd  RET   close 0
  6428 cfservd  CALL  exit(0)


gdb on cfservd core:

#0  0x482dabe3 in kill () from /usr/lib/libc.so.12
(gdb) bt
#0  0x482dabe3 in kill () from /usr/lib/libc.so.12
#1  0x482da530 in abort () from /usr/lib/libc.so.12
#2  0x4822d0c0 in __pth_scheduler () from /usr/pkg/lib/libpthread.so.20
#3  0x4822f1d4 in pth_spawn_trampoline () from
#/usr/pkg/lib/libpthread.so.20 4  0x4822c665 in pth_mctx_set_bootstrap
#() from /usr/pkg/lib/libpthread.so.20 5  0x4822c5d9 in
#pth_mctx_set_trampoline () from /usr/pkg/lib/libpthread.so.20 6=20
#0x810efa0 in ?? () 7  0x1f in ?? ()
Cannot access memory at address 0x1f
(gdb)=20


[hf@brocken] /home/hf # pkg_info | grep pth
pth-2.0.0nb1        GNU Portable Thread library
[hf@brocken] /home/hf # pkg_info | grep cfengine
cfengine-2.0.8p1nb1 Automate configuration and administration of large
systems cfengine-doc-2.0.8p1 Documentation for cfengine
[hf@brocken] /home/hf #=20

	hauke

--=20
           Hauke Fath                   /~\  The ASCII Ribbon Campaign
Institut f=FCr Nachrichtentechnik         \ /    No HTML/RTF in email
          TU Darmstadt                   X     No Word docs in email
      Ruf +49-6151-16-3281              / \  Respect for open standards