Re: Cfengine 3.4.0 segfaults (rthreads?)

2012-12-04 Thread Martijn Rijkeboer
Hi,

> I'm working on updating sysutils/cfengine to 3.4.0 (see attachment for
> port). When running cf-agent it segfaults on both 5.2/amd64 and
> current/amd64. In gdb, on current/amd64, it looks like the segfault
> happens in the rthread library.

Using git bisect I've found that the following commit introduces the
segfault and not rthreads:
https://github.com/cfengine/core/commit/6746590d2c00766ce7a8e12ac3cf0aeb60fef37f

Unfortunately this is a rather big change. Can anyone with better C skills
point me in the right direction?

Kind regards,


Martijn Rijkeboer




Cfengine 3.4.0 segfaults (rthreads?)

2012-11-30 Thread Martijn Rijkeboer
Hi,

I'm working on updating sysutils/cfengine to 3.4.0 (see attachment for
port). When running cf-agent it segfaults on both 5.2/amd64 and
current/amd64. In gdb, on current/amd64, it looks like the segfault happens
in the rthread library.

Cfengines pipes.c:139 calls /usr/src/librthread/rthread_fork.c. Now I can
do next line (n) till rthread_fork.c:100. When I try to step (s) from line
100, I'm getting the following error:

  100 newid = sys_fork();
  (gdb) s
  [New process 22237]

  Program received signal SIGSEGV, Segmentation fault.
  0x06286ee04fc2 in strlen (
  str=0x6286afe0490 )
  at /usr/src/lib/libc/string/strlen.c:43
  43  for (s = str; *s; ++s)
  (gdb)

Any suggestions on how to fix this?

Kind regards,


Martijn Rijkeboer


PS: I can provide a core dump if needed.

cfengine.tgz
Description: application/compressed-tar