Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 2021 13:16:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 253062] dns/bind916: Hang on service stop in uwait state starting in v9.16.11
Message-ID:  <bug-253062-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253062

            Bug ID: 253062
           Summary: dns/bind916: Hang on service stop in uwait state
                    starting in v9.16.11
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: mat@FreeBSD.org
          Reporter: john@saltant.com
             Flags: maintainer-feedback?(mat@FreeBSD.org)
          Assignee: mat@FreeBSD.org
             Flags: maintainer-feedback?

After upgrading from 9.16.10 to 9.16.11, the named service does not stop
properly.

$ sudo service named stop
Stopping named.
Waiting for PIDS: %PID% <-- hangs here indefinitely

$ procstat %PID%
  PID  PPID  PGID   SID  TSID THR LOGIN    WCHAN     EMUL          COMM
%PID%     1 %PID% %PID%     0  26 obrienjw uwait     FreeBSD ELF64 named


(lldb) bt
* thread #1, name =3D 'named'
  * frame #0: 0x0000000800cc768c libthr.so.3`_umtx_op_err at _umtx_op_err.S=
:37
    frame #1: 0x0000000800cc3591
libthr.so.3`join_common(pthread=3D0x0000000803585200,
thread_return=3D0x0000000000000000, abstime=3D0x0000000000000000,
peek=3D<unavailable>) at thr_join.c:147:9
    frame #2: 0x000000000050dbef named`isc_thread_join + 31
    frame #3: 0x00000000004fb49f named`isc_taskmgr_destroy + 607
    frame #4: 0x00000000002dae31 named`main + 5841
    frame #5: 0x00000000002d16b0 named`_start + 256

This is reproducible on two different 12.2R machines on which named is
configured to act as a resolver. The hang does not occur on two other hosts=
 on
which named is configured to as as authoritative only. On the hosts where t=
he
hang occurs, the named logs contain lines of the form:

Jan 28 08:03:12 hostname named[%PID%]: creating IPv6 interface igb0 failed;
interface ignored

These errors are absent on the hosts where the hang does not occur.

The 9.16.11 changelog includes a number of items related to threads and net=
mgr.

5557.   [bug]           Prevent RBTDB instances from being destroyed by
multiple
                        threads at the same time. [GL #2317]

5545.   [func]          OS support for load-balanced sockets is no longer
                        required to receive incoming queries in multiple ne=
tmgr
                        threads. [GL #2137]

5543.   [bug]           Fix UDP performance issues caused by making netmgr
                        callbacks asynchronous-only. [GL #2320]

5542.   [bug]           Refactor netmgr. [GL #1920] [GL #2034] [GL #2061]
                        [GL #2194] [GL #2221] [GL #2266] [GL #2283] [GL #23=
18]
                        [GL #2321]

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253062-7788>