Package: cfengine2
Version: 2.1.20-1
Severity: normal

I am getting segfaults with my setup and was able to minimize it.
I am using the file cf.pbbuttonsd with the following content
control:

actionsequence = ( 
                        shellcommands
                                shellcommands.started
                                        files.startd
                                                directories
                                                        netconfig
                                                                #resolve
                                                                processes
                                                                        links
                                                                                
editfiles
                                                                                
        copy    # first backup, then
                                                                                
        cleanup
                                                                                
                tidy
                                                                                
                        files
                                                                                
                                disks
                                                                                
                                        shellcommands.finished
                )

classes:
   pbbuttonsdInstalled = ( FileExists(/etc/pbbuttonsd.conf) )

        control:
           pbbuttonsdUnique = ( "# Managed by cfengine 2005.10.08-0" )
           editfiles:

           pbbuttonsdInstalled::

{
        /etc/pbbuttonsd.conf
                  BeginGroupIfNoLineContaining "$(pbbuttonsdUnique)"
                      InsertLine "$(pbbuttonsdUnique)"
                              DeleteLinesContaining "cfengine"
                                      LocateLineMatching "TPMode .*"
#    DeleteNLines "1"
#    InsertLine "TPMode = notap"
                                            EndGroup
}

If I remove the line <LocateLineMatching "TPMode .*"> the segfault
disappears. 

My gdb session to test looked like this:
$ gdb cfagent
<..>
(gdb) run -k -n -K -v -f cf.pbbuttonsd
<.. Output of cfengine>
*********************************************************************
 Main Tree Sched: editfiles pass 1 @ Thu Nov  2 13:11:03 2006
 *********************************************************************

 Begin editing /etc/pbbuttonsd.conf
 (Begin Group - no line containing # Managed by cfengine 2005.10.08-0)
        Inserting # Managed by cfengine 2005.10.08-0
        Deleted item # Managed by cfengine 2005.10.08-0

        Program received signal SIGSEGV, Segmentation fault.
        [Switching to Thread 805417120 (LWP 7820)]
        0x0fb7c61c in strlen () from /lib/tls/libc.so.6

(gdb) bt
#0  0x0fb7c61c in strlen () from /lib/tls/libc.so.6
#1  0x0fbc1e8c in regexec () from /lib/tls/libc.so.6
#2  0x10026b6c in ?? ()
#3  0x10038608 in ?? ()
#4  0x10039cec in ?? ()
#5  0x10010e00 in ?? ()
#6  0x10005c44 in ?? ()
#7  0x10008010 in ?? ()
#8  0x0fb199d4 in __libc_init_first () from /lib/tls/libc.so.6
#9  0x0fb199d4 in __libc_init_first () from /lib/tls/libc.so.6
#10 0x0fb199d4 in __libc_init_first () from /lib/tls/libc.so.6

I hope this is enough information for you to reproduce the problem. I have
unfortunatly no time at this moment to dig deeper into the problem.

Best regards

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: powerpc (ppc)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-powerpc
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)

Versions of packages cfengine2 depends on:
ii  debconf [debconf-2.0]      1.5.6         Debian configuration management sy
ii  debianutils                2.17          Miscellaneous utilities specific t
ii  libc6                      2.3.6.ds1-4   GNU C Library: Shared libraries
ii  libdb4.2                   4.2.52+dfsg-1 Berkeley v4.2 Database Libraries [
ii  libssl0.9.8                0.9.8c-3      SSL shared libraries
ii  perl                       5.8.8-6.1     Larry Wall's Practical Extraction 

cfengine2 recommends no packages.

-- debconf information:
  cfengine2/run_cfservd: false
  cfengine2/run_cfexecd: false
  cfengine2/run_cfenvd: false


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to