Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 05 Sep 2019 06:07:22 -0700
From:      Cy Schubert <cy@freebsd.org>
To:        Vladimir Zakharov <zakharov.vv@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: ntpd segfaults on start
Message-ID:  <201909051307.x85D7MGs034053@slippy.cwsent.com>
In-Reply-To: <20190905063354.qxecqjkafikdtdyq@vzakharov>
References:  <20190905061251.rrip6635ebbfimsv@vzakharov>  <20190905063354.qxecqjkafikdtdyq@vzakharov>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20190905063354.qxecqjkafikdtdyq@vzakharov>, Vladimir Zakharov 
write
s:
> 
> --ply3axd74k44nuk3
> Content-Type: text/plain; charset=utf-8
> Content-Disposition: inline
> Content-Transfer-Encoding: quoted-printable
>
> On Thu, Sep 05, 2019, Vladimir Zakharov wrote:
> > Hello!
> >=20
> > Accidentally it turned out that the ntpd does not start on boot.
> > Logs show that it core dumps:
> > 2019-09-05T08:38:43.588563+03:00 vzakharov ntpd 34934 - - ntpd 4.2.8p12-a=
>  (1): Starting
> > 2019-09-05T08:38:43.588717+03:00 vzakharov kernel - - - Security policy l=
> oaded: MAC/ntpd (mac_ntpd)
> > 2019-09-05T08:38:43.718356+03:00 vzakharov kernel - - - pid 35074 (ntpd),=
>  jid 0, uid 123: exited on signal 11
> >=20
> > Not sure how long does it happen. ktrace and gdb points to `setrlimit`
> > call. Clean rebuild has no effect. Does anyone have any idea what the
> > problem could be?
>
> Accidental insight after sending initial mail: I've disabled
> ASLR related sysctls, and now ntpd starts and runs again.
> # grep aslr /boot/loader.conf
> kern.elf32.aslr.enable=3D0
> kern.elf64.aslr.enable=3D0
> # service ntpd status
> ntpd is running as pid 30528.

I'll take a look at this. When you get a chance can you open a PR for this 
and assign the ticket to me, please.


-- 
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  http://www.FreeBSD.org

	The need of the many outweighs the greed of the few.





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