NetBSD Problem Report #51568

From  Fri Oct 21 15:17:31 2016
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 8B1D17A28E
	for <>; Fri, 21 Oct 2016 15:17:31 +0000 (UTC)
Message-Id: <>
Date: Fri, 21 Oct 2016 17:17:12 +0200 (CEST)
From: Hauke Fath <>
Reply-To: Hauke Fath <>
Cc: Hauke Fath <>
Subject: base dhcpd dumps core in a CARP setup 
X-Send-Pr-Version: 3.95

>Number:         51568
>Category:       bin
>Synopsis:       base dhcpd dumps core in a CARP setup
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 21 15:20:00 +0000 2016
>Last-Modified:  Mon Jan 16 09:40:00 +0000 2017
>Originator:     Hauke Fath
>Release:        NetBSD 7.0_STABLE
Technische Universitaet Darmstadt

System: NetBSD Zinnenwand 7.0_STABLE NetBSD 7.0_STABLE (FIFI-$Revision: 1.85 $) #1: Tue Oct 18 11:19:47 CEST 2016 hf@Hochstuhl:/var/obj/netbsd-builds/7/amd64/sys/arch/amd64/compile/FIFI amd64
Architecture: x86_64
Machine: amd64

	On a pair of machines set up as redundant router with carp(4),
	the base dhcpd(8) [v4.3.0 on netbsd-7, configured for
	failover] frequently dumps core, probably in an attempt to
	sync leases, which according to the logs does not
	happen. Beyond a

Oct 19 13:22:01 Zinnenwand /netbsd: pid 467 (dhcpd), uid 0: exited on signal 6 (core dumped)

	there is nothing in the logs; 'gdb dhcpd dhcpd.core' shows an
	assertion failure.

	Unfortunately, make(1)ing binaries from the source tree is
	severely underdocumented compared to I wanted to
	build dhcpd with -g3; went to build named's libisc, and punted
	when that wanted to build libthread, instead of using the
	installed library.

	A debug build of the pkgsrc net/isc-dhcpd turned out lots
	easier, as well as unnecessary: its v4.3.3 works just fine.


	Set up a carp(4) based redundant router pair, run dhcpd(8) on
	it with failover configured. Watch the daemon dump core on
	both sides.


	Pull up -current dhcp 4.3.3 to (at least) netbsd-7, I guess.

	I can test this, if anybody can provide me with a reasonable
	way of building dhcpd from -current sources against a netbsd-7



From: "Hauke Fath" <>
Subject: PR/51568 CVS commit: src/etc
Date: Mon, 16 Jan 2017 09:39:26 +0000

 Module Name:	src
 Committed By:	hauke
 Date:		Mon Jan 16 09:39:26 UTC 2017

 Modified Files:
 	src/etc: protocols

 Log Message:
 Add carp as an alias for vrrp - after all, we do not ship vrrp, but we
 do ship carp(4).

 Restore the pfsync entry that was added with 1.20, then wiped out by
 the 1.21 import. Please merge any wholesale imports properly.

 Remove which 404s.

 Should fix PR bin/51568

 To generate a diff of this commit:
 cvs rdiff -u -r1.28 -r1.29 src/etc/protocols

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.