[Bug 268194] ntpd fails to start

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 06 Dec 2022 20:30:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268194

--- Comment #5 from John Grafton <john.grafton@runbox.com> ---
(In reply to Maarten de Vries from comment #4)
Ah, the core file doesn't have symbols (of course, it's a release build).  That
makes it difficult to figure out what's going on.

If you're up for it, you can compile ntpd with debugging symbols and execute it
on your 12.4-RELEASE system.  This should produce a core file that may point to
what's failing.

Here's a simple procedure:

If you didn't install src, download src.txz from:
https://download.freebsd.org/ftp/releases/amd64/amd64/12.4-RELEASE/src.txz

untar it in /usr/src:
tar -xvC / -f src.txz

Check /usr/src/UPDATING and verify the first entry says:
20221205:
        12.4-RELEASE.

compile ntpd:
cd /usr/src/usr.sbin/ntp
make

execute ntpd with debugging symbols:
/usr/obj/usr/src/amd64.amd64/usr.sbin/ntp/ntpd/ntpd -n

debug the core file:
lldb --core ntpd.core /usr/obj/usr/src/amd64.amd64/usr.sbin/ntp/ntpd/ntpd

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