Wind River Support Network

HomeDefectsLIN8-7074
Fixed

LIN8-7074 : When starting dhcpd from the command line, then terminating with ^C, I see crash with coredump

Created: Jul 12, 2017    Updated: Dec 3, 2018
Resolved Date: Jul 28, 2017
Found In Version: 8.0.0.18
Fix Version: 8.0.0.20
Severity: Standard
Applicable for: Wind River Linux 8
Component/s: Userspace

Description

When running dhcpd and then pressing Ctrl+C it crashes and creates a core-dump.

Steps to Reproduce

1) Create a project with this configuration:

/wr/installs/lx8/wrlinux-8/wrlinux/configure --with-layer=meta-java,common,common-downloads --enable-board=qemuppc --enable-kernel=standard --enable-rootfs=glibc-small --enable-reconfig --enable-bootimage=cpio.gz.u-boot --enable-rm-oldimgs=yes --enable-internet-download=yes --with-template=feature/ntp428p10,feature/lttng --enable-checkout-all-layers=yes --with-package=dhcp-server --with-rcpl-version=0018

2) Build the image and run it into qemu with "make start-target"

3) Edit /etc/dhcpd.conf with this content (maybe you will need to edit the IP directions acording to your target, for qemu in my worstation this values worked fine):

authoritative;
ddns-update-style none;
deny bootp;
class "vendor-class-60"
{
match option vendor-class-identifier;
}
option domain-name "mycompany.local";
option domain-name-servers 10.0.2.15;
subnet 10.0.2.0 netmask 255.255.255.0
{
option broadcast-address 10.0.2.255;
deny bootp;
default-lease-time 86400;
max-lease-time 604800;

option subnet-mask 255.255.255.0;
pool {
range 10.0.2.100 10.0.2.150;
}
option routers 192.168.122.1;
} 

4) Start dhcpd with these parameters: 

root@qemu0:~#  /usr/sbin/dhcpd -d -f -cf /etc/dhcpd.conf -lf /var/lib/dhcp/dhcpd .leases eth0 

Internet Systems Consortium DHCP Server 4.3.2
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
Wrote 0 class decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/eth0/52:54:00:12:34:56/10.0.2.0/24
Sending on   LPF/eth0/52:54:00:12:34:56/10.0.2.0/24
Sending on   Socket/fallback/fallback-net
Server starting service.

5) Press Ctrl+C, it will crash and will print this output:

^CReceived signal 2, initiating shutdown.
/wr/sandbox/lramirez/cases/00074223_lx8/customer_config_prj/bitbake_build/tmp/work/ppc7400-wrs-linux/bind/9.10.2-P4-r0/bind-9.10.2-P4/lib/isc/unix/socket.c:891: REQUIRE(counterid != -1) failed, back trace
#0 0x101da3f8 in ??
#1 0x101da650 in ??
#2 0x1020bd10 in ??
#3 0x1020bdd8 in ??
#4 0x1020c068 in ??
#5 0x10213234 in ??
#6 0x100833f4 in ??
#7 0x10053434 in ??
#8 0x10009e94 in ??
#9 0x100845cc in ??
#10 0x1000a07c in ??
#11 0x10055a0c in ??
#12 0x101fbd00 in ??
#13 0x101fe29c in ??
#14 0x10202200 in ??
#15 0x102024c8 in ??
#16 0x10055bf0 in ??
#17 0x100090a8 in ??
#18 0xfc916ac in ??
#19 0xfc91864 in ??
Aborted

Other Downloads


Live chat
Online