help-cfengine
[Top][All Lists]
Advanced

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

segfaults on dhcp?


From: Harald Hannelius
Subject: segfaults on dhcp?
Date: Tue, 10 Dec 2002 12:03:33 +0000 (UTC)
User-agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (Linux/2.4.20 (i686))

I have compiled both cfengine-2.0.4 and cfengine-2.0.5pre2 and they both
segfault on the same place:

# !ldd
ldd /usr/local/sbin/cfservd 
        libdb-4.1.so => /usr/local/lib/libdb-4.1.so (0x40018000)
        libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x400b6000)
        libnss_nis.so.2 => /lib/libnss_nis.so.2 (0x4016d000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40177000)
        libm.so.6 => /lib/libm.so.6 (0x4018c000)
        libc.so.6 => /lib/libc.so.6 (0x401ad000)
        libdl.so.2 => /lib/libdl.so.2 (0x402d0000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x402d3000)
        libnss_files.so.2 => /lib/libnss_files.so.2 (0x402e8000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)


strace output:
open("/lib/libnss_db.so.2", O_RDONLY)   = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\23\0"...,
1024) = 1024
fstat64(0x4, 0xbfffea9c)                = 0
old_mmap(NULL, 21240, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x402f2000
mprotect(0x402f7000, 760, PROT_NONE)    = 0
old_mmap(0x402f7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4,
0x4000) = 0x402f7000
close(4)                                = 0
open("/lib/libdb-3.1.so", O_RDONLY)     = 4
read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\361"...,
1024) = 1024
fstat64(0x4, 0xbfffe8ac)                = 0
old_mmap(NULL, 489644, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0x402f8000
mprotect(0x4036e000, 6316, PROT_NONE)   = 0
old_mmap(0x4036e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 4,
0x75000) = 0x4036e000
close(4)                                = 0
munmap(0x40015000, 9488)                = 0
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


output from cfservd -d -F:

...
...
Host IPs denied connection access :

Host IPs allowed multiple connection access :

Host IPs from whom we shall accept public keys on trust :

Host IPs from NAT which we don't verify :

Dynamical Host IPs (e.g. DHCP) whose bindings could vary over time :

Segmentation fault


Why does cfservd insist on opening /lib/libdb-3.1.so when clearly it's
linked against /usr/local/lib/libdb* ?


Oh, I couldn't find any HOWTO for cfengine, is there one?


-- 
A: Top Posters
Q: What is the most annoying thing on mailing lists? 

Harald H Hannelius | harald/a\arcada.fi      | GSM +358 50 594 1020 (NEW)
>From address@hidden Tue Dec 10 07:46:58 2002
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
        id 18Ljms-0003Dp-00
        for address@hidden; Tue, 10 Dec 2002 07:46:58 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
        id 18Ljmp-0003D9-00
        for address@hidden; Tue, 10 Dec 2002 07:46:58 -0500
Received: from penti.sit.fi ([193.167.33.237])
        by monty-python.gnu.org with esmtp (Exim 4.10.13)
        id 18Ljmo-0003Cs-00
        for address@hidden; Tue, 10 Dec 2002 07:46:55 -0500
Received: from localhost (address@hidden)
        by penti.sit.fi (8.11.6/8.9.3) with ESMTP id gBACkrD18674
        for <address@hidden>; Tue, 10 Dec 2002 14:46:53 +0200
X-Authentication-Warning: penti.sit.fi: harald owned process doing -bs
Date: Tue, 10 Dec 2002 14:46:53 +0200 (EET)
From: Harald Hannelius <address@hidden>
X-X-Sender: address@hidden
To: address@hidden
Message-ID: <address@hidden>
X-Message-Flag: Message text blocked: ADULT LANGUAGE/SITUATIONS
X-WebTV-Stationery: Standard; BGColor=black; TextColor=black
X-Fnord: +++ath
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Subject: Segfaults, libdb problems?
X-BeenThere: address@hidden
X-Mailman-Version: 2.1b5
Precedence: list
List-Id: Users list for GNU cfengine  <help-cfengine.gnu.org>
List-Help: <mailto:address@hidden>
List-Post: <mailto:address@hidden>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-cfengine>,
        <mailto:address@hidden>
List-Archive: <http://mail.gnu.org/pipermail/help-cfengine>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-cfengine>,
        <mailto:address@hidden>
X-List-Received-Date: Tue, 10 Dec 2002 12:46:59 -0000


Hi there,

I'm trying to get cfengine running and I encounter the following problem:

slackware (8.0 and/or 8.1) with libdb-3.1 (comes with glibc-2.2.5).

Installed libdb-4.0 and/or libdb-4.1 (cfengine-2.0.4 and
cfengine-2.0.5pre2, respectively).

cfservd segfaults;

...
...
...
$(MaxConnections) Expanded to 50
MaxConnections = 50
CompareMacro(ChecksumUpdates,cfrunCommand=/var/cfengine/bin/cfagent)=cfrunCommand
CompareMacro(ChecksumUpdates,MultipleConnections=true)=MultipleConnections
CompareMacro(ChecksumUpdates,MaxConnections=50)=MaxConnections
Segmentation fault


cfservd is compiled/linked against libdb-4.1:

# ldd /usr/local/sbin/cfservd
        libdb-4.1.so => /usr/local/lib/libdb-4.1.so (0x40018000)
        libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x400b6000)
        libnss_nis.so.2 => /lib/libnss_nis.so.2 (0x4016d000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x40177000)
        libm.so.6 => /lib/libm.so.6 (0x4018c000)
        libc.so.6 => /lib/libc.so.6 (0x401ad000)
        libdl.so.2 => /lib/libdl.so.2 (0x402d0000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x402d3000)
        libnss_files.so.2 => /lib/libnss_files.so.2 (0x402e8000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)



But cfservd insists on opening /lib/libdb-3.1.so (from strace);

...
...
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0000\23\0"...,
1024) = 1024
fstat64(0x3, 0xbfffeaac)                = 0
old_mmap(NULL, 21240, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x402f2000
mprotect(0x402f7000, 760, PROT_NONE)    = 0
old_mmap(0x402f7000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x4000) = 0x402f7000
close(3)                                = 0
open("/lib/libdb-3.1.so", O_RDONLY)     = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\200\361"...,
1024) = 1024
fstat64(0x3, 0xbfffe8bc)                = 0
old_mmap(NULL, 489644, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x402f8000
mprotect(0x4036e000, 6316, PROT_NONE)   = 0
old_mmap(0x4036e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x75000) = 0x4036e000
close(3)                                = 0
munmap(0x40015000, 9488)                = 0
--- SIGSEGV (Segmentation fault) ---


What am I doing wrong here?


-- 
A: Top Posters
Q: What is the most annoying thing on mailing lists?

Harald H Hannelius | harald/a\arcada.fi      | GSM +358 50 594 1020 (NEW)




reply via email to

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