From nobody Wed Dec 15 14:24:31 2021 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F2BE118E92C9 for ; Wed, 15 Dec 2021 14:24:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JDcvM5rkjz3rYg for ; Wed, 15 Dec 2021 14:24:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A97901DC11 for ; Wed, 15 Dec 2021 14:24:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1BFEOVT1017202 for ; Wed, 15 Dec 2021 14:24:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1BFEOV6C017201 for ports-bugs@FreeBSD.org; Wed, 15 Dec 2021 14:24:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 260438] dns/bind-tools: dig SIGABRT under high load Date: Wed, 15 Dec 2021 14:24:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: david@isnic.is X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mat@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639578271; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OiPqpF/dHaHjDsJujFTgDLjdBHPsR6KiurVZzB7mDD0=; b=iSBFPTPwHqFeDfrA6RhgsX1I8W98Q4bFoZqkjaElYIcoEzDVlustlE+wGHRMgDOlJkwOD4 iF4rySmhB3V6jxwoBqxQnLggfM+uo7VjdLQTd+hBRtjdIqox5QjFoXCNdIIFdCXZ1ml9+W EhDNdjxmhktYIm0yKkkjtTRg7N0d28WGVmUIBWvJTXf/64FjoT6hT8aLFqZrv9L+HUEFT7 dGPDOHPEwJ6sZC78JlVfSgIJL2pBFt9fcdmymI6sBWnN6lAFkvwtR0iQ1DRI5dc9qrujyA ovYyRXAvGVg8JOo6aEc9WL2imLTcbNgQ298GZx4muzeKzol6FM7GEfUi4b8qfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639578271; a=rsa-sha256; cv=none; b=tkvjmDxKRSF1B4LUH4MXQ8goY3v4NsHphFPgwGiHSKIZMu3HO53eAD/+JLz/4W6cVtF/sG gtQ+ha5OHOhMK4sQa9b3z/PFDakwmPd5cJUEEg6FUDTlssEi8C9+M3fJg8HnNR4FnwjGn+ WJG8IpDJlYJBzDEqGI8q5o+vcC1OwzTaa2vDsvUwABXusAC4L5mNjqyRfV7kr73S7Utxwd TvUHmYm3+k3MRICrq2EpjGU008w5+rLgaX1p6sL3bM3qVEa0ctW7eYQy1lHAKx1rwshMiD KGAERPOSkoob6BFvJ9vMasGnn8ZLQJ3OTKMZ0nzGwaR3spFTRGQfmnjn8spZbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260438 Bug ID: 260438 Summary: dns/bind-tools: dig SIGABRT under high load Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: mat@FreeBSD.org Reporter: david@isnic.is Flags: maintainer-feedback?(mat@FreeBSD.org) Assignee: mat@FreeBSD.org We have some shell scripts to set up zones on new slaves. Since we have a l= arge number (tens of thousands) of zones, we do this in parallel, querying the s= lave to see if the zone is set up and if not send an `rndc addzone`. When doing a bulk provisioning like this, we see dig very occasionally die = with SIGABRT: ``` [root@hfp-master /usr/home/ansible]# dmesg pid 72286 (dig), jid 0, uid 0: exited on signal 6 (core dumped) ``` Error ouput when this happens: ``` dighost.c:2628: REQUIRE((__builtin_expect(!!(((query)) !=3D ((void *)0)), 1= ) && __builtin_expect(!!(((const isc__magic_t *)((query)))->magic =3D=3D ((('D')= << 24 | ('i') << 16 | ('g') << 8 | ('q')))), 1))) failed, back trace #0 0x4359ba in ?? #1 0x43594a in ?? #2 0x2bc814 in ?? #3 0x462a33 in ?? #4 0x44ade8 in ?? #5 0x447225 in ?? #6 0x800a39ada in ?? #7 0x800a4ac1b in ?? #8 0x800a3a051 in ?? #9 0x44735b in ?? #10 0x465135 in ?? Abort trap (core dumped) ``` This only seems to happen under load, running multiple dig commands in para= llel in a tight loop. I've tried to create a concise repro case here without sharing our whole DNS deployment script set, but don't have it ready. I'll add it later if I get = it working. This looks extremely similar to the following upstream bugs: https://gitlab.isc.org/isc-projects/bind9/-/issues/1981 https://gitlab.isc.org/isc-projects/bind9/-/issues/1971 https://gitlab.isc.org/isc-projects/bind9/-/issues/1956 Based on comments there, this should be fixed in this MR: https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/3721 However it seems this still happens on FreeBSD. We are running bind-tools-9.16.23. --=20 You are receiving this mail because: You are the assignee for the bug.=