NetBSD-Bugs archive

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

Re: bin/56515: dhcpd dumps core after running a while (SIGSEGV)



It seems that it gets bad thread id 4 >= 4 for me. Perhaps it has an
active thing in the queue before the code tries to reduce its size.
I have not figured it out yet.

christos

Attachment: dhcpd.diff
Description: Binary data


> On Nov 20, 2021, at 3:10 PM, greywolf%starwolf.com@localhost wrote:
> 
>> Number:         56515
>> Category:       bin
>> Synopsis:       dhcpd dumps core after running a while (SIGSEGV)
>> Confidential:   no
>> Severity:       critical
>> Priority:       medium
>> Responsible:    bin-bug-people
>> State:          open
>> Class:          sw-bug
>> Submitter-Id:   net
>> Arrival-Date:   Sat Nov 20 20:10:00 +0000 2021
>> Originator:     Greywolf
>> Release:        NetBSD 9.99.92
>> Organization:
>> Environment:
> System: NetBSD deep-thought.sub-etha.starwolf.com 9.99.92 NetBSD 9.99.92 (DEEP-THOUGHT) #0: Wed Nov 17 17:39:14 PST 2021 greywolf%eddie.starwolf.com@localhost:/sys/arch/amd64/compile/DEEP-THOUGHT amd64
> Architecture: x86_64
> Machine: amd64
> /usr/sbin/dhcpd:
> 	-lirs.18 => /usr/lib/libirs.so.18
> 	-lblocklist.0 => /usr/lib/libblocklist.so.0
> 	-lc.12 => /usr/lib/libc.so.12
> 	-lpthread.1 => /usr/lib/libpthread.so.1
> 	-lgssapi.11 => /usr/lib/libgssapi.so.11
> 	-lkrb5.27 => /usr/lib/libkrb5.so.27
> 	-lhx509.6 => /usr/lib/libhx509.so.6
> 	-lasn1.10 => /usr/lib/libasn1.so.10
> 	-lcom_err.8 => /usr/lib/libcom_err.so.8
> 	-lroken.20 => /usr/lib/libroken.so.20
> 	-lutil.7 => /usr/lib/libutil.so.7
> 	-lcrypt.1 => /usr/lib/libcrypt.so.1
> 	-lcrypto.14 => /usr/lib/libcrypto.so.14
> 	-lwind.1 => /usr/lib/libwind.so.1
> 	-lheimbase.2 => /usr/lib/libheimbase.so.2
> 	-lsqlite3.1 => /usr/lib/libsqlite3.so.1
> 	-lm.0 => /usr/lib/libm.so.0
> 	-lheimntlm.5 => /usr/lib/libheimntlm.so.5
> 	-lisccfg.18 => /usr/lib/libisccfg.so.18
> 	-lisc.18 => /usr/lib/libisc.so.18
> 	-lz.1 => /usr/lib/libz.so.1
> 	-ldns.18 => /usr/lib/libdns.so.18
> 	-lexecinfo.0 => /usr/lib/libexecinfo.so.0
> 	-lelf.2 => /usr/lib/libelf.so.2
> 	-lkvm.6 => /usr/lib/libkvm.so.6
> 	-lssl.14 => /usr/lib/libssl.so.14
> 	-lipsec.3 => /usr/lib/libipsec.so.3
> /usr/sbin/dhcpd:
>     $NetBSD: crt0.S,v 1.4 2018/11/26 17:37:46 joerg Exp $
>     $NetBSD: crt0-common.c,v 1.24 2021/04/20 21:42:31 christos Exp $
>     $NetBSD: crti.S,v 1.1 2010/08/07 18:01:35 joerg Exp $
>     $NetBSD: crtbegin.S,v 1.2 2010/11/30 18:37:59 joerg Exp $
>     $NetBSD: dhcpd.c,v 1.4 2021/05/26 22:52:32 christos Exp $
>     $NetBSD: dhcp.c,v 1.3 2020/08/03 21:10:57 christos Exp $
>     $NetBSD: dhcpv6.c,v 1.4 2020/08/03 21:10:57 christos Exp $
>     $NetBSD: bootp.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: confpars.c,v 1.3 2020/08/03 21:10:57 christos Exp $
>     $NetBSD: db.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: class.c,v 1.3 2020/08/03 21:10:57 christos Exp $
>     $NetBSD: failover.c,v 1.3 2020/08/03 21:10:57 christos Exp $
>     $NetBSD: omapi.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: mdb.c,v 1.3 2020/08/03 21:10:57 christos Exp $
>     $NetBSD: mdb6.c,v 1.5 2020/08/03 21:10:57 christos Exp $
>     $NetBSD: stables.c,v 1.3 2020/08/03 21:10:57 christos Exp $
>     $NetBSD: salloc.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: ddns.c,v 1.3 2020/08/03 21:10:57 christos Exp $
>     $NetBSD: dhcpleasequery.c,v 1.3 2020/08/03 21:10:57 christos Exp $
>     $NetBSD: dispatch.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: icmp.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: comapi.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: memory.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: discover.c,v 1.4 2020/08/03 21:10:56 christos Exp $
>     $NetBSD: execute.c,v 1.3 2020/08/03 21:10:56 christos Exp $
>     $NetBSD: dns.c,v 1.4 2020/08/03 21:10:56 christos Exp $
>     $NetBSD: alloc.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: tables.c,v 1.3 2020/08/03 21:10:56 christos Exp $
>     $NetBSD: tree.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: options.c,v 1.5 2021/01/13 17:01:31 christos Exp $
>     $NetBSD: ctrace.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: socket.c,v 1.4 2020/08/03 21:10:56 christos Exp $
>     $NetBSD: bpf.c,v 1.4 2020/05/15 12:31:03 manu Exp $
>     $NetBSD: print.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: packet.c,v 1.3 2020/05/15 12:31:03 manu Exp $
>     $NetBSD: ethernet.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: conflex.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: parse.c,v 1.4 2021/05/26 22:52:31 christos Exp $
>     $NetBSD: ns_name.c,v 1.3 2020/08/03 21:10:56 christos Exp $
>     $NetBSD: inet.c,v 1.2 2018/04/07 22:37:29 christos Exp $
>     $NetBSD: convert.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: auth.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: handle.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: support.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: hash.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: protocol.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: generic.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: listener.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: connection.c,v 1.3 2019/01/10 17:41:47 christos Exp $
>     $NetBSD: isclib.c,v 1.6 2021/08/19 11:50:56 christos Exp $
>     $NetBSD: toisc.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: array.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: dispatch.c,v 1.4 2019/01/27 01:51:50 christos Exp $
>     $NetBSD: result.c,v 1.3 2019/02/25 02:31:57 christos Exp $
>     $NetBSD: buffer.c,v 1.4 2019/01/27 01:51:50 christos Exp $
>     $NetBSD: trace.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: alloc.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: errwarn.c,v 1.4 2020/11/12 22:11:03 christos Exp $
>     $NetBSD: message.c,v 1.2 2018/04/07 22:37:30 christos Exp $
>     $NetBSD: crtend.S,v 1.1 2010/08/07 18:01:34 joerg Exp $
>     $NetBSD: crtn.S,v 1.1 2010/08/07 18:01:35 joerg Exp $
> 
> dhcpd.conf: (sanitized)
> # *** GLOBAL PARAMETERS ***
> 
> default-lease-time 600;
> max-lease-time 7200;
> 
> # If this DHCP server is the official DHCP server for the local
> # network, the authoritative directive should be uncommented.
> authoritative;
> 
> # Dynamic DNS update scheme - must be set to "none", "interim" or "ad-hoc".
> ddns-update-style interim;
> #ddns-update-style none;
> 
> # Use this to send dhcp log messages to a different log file (you also
> # have to hack syslog.conf to complete the redirection).
> log-facility daemon;
> 
> zone internal.starwolf.com. {
>    primary 172.31.250.11;
> }
> 
> zone 250.31.172.in-addr.arpa. {
>    primary 172.31.250.11;
> }
> 
> subnet 172.31.250.0 netmask 255.255.254.0 {
>    interface wm1;
> 	range 172.31.251.0 172.31.251.240;
> 	option domain-name-servers 172.31.250.11, 172.31.250.2, 8.8.8.8;
> 	option domain-name "internal.starwolf.com.";
> 	option routers 172.31.250.1;
> 
> 	option broadcast-address 172.31.251.255;
> 	default-lease-time 600;
> 	max-lease-time    7200;
> 	allow client-updates;
> 
> }
> 
> host milliways {
> 	hardware ethernet C0:FF:EE:0D:EC:AF
> 	fixed-address	172.31.251.242;
> 	option domain-name-servers 192.168.60.2, 172.31.250.11, 172.31.250.2;
> 	prepend domain-name "mywork.com ";
> 	option routers 172.31.250.1;
> }
> 
> Termination backtrace:
> Program terminated with signal SIGSEGV, Segmentation fault.
> #0  0x0000764028c46076 in isc_hp_retire () from /usr/lib/libisc.so.18
> [Current thread is 1 (process 9295)]
> 
>> Description:
> 	dhcpd runs for a couple hours and then gives up the ghost with
> 	a SIGSEGV
>> How-To-Repeat:
> 	/usr/bin/dhcpd -q; connect several devices.
>> Fix:
> 	Currently, once a minute, I am running a check-and-restart-if-needed
> 	script via cron to keep the dhcpd up and going.

Attachment: signature.asc
Description: Message signed with OpenPGP



Home | Main Index | Thread Index | Old Index