Date: Thu, 05 Sep 2019 20:55:27 -0700 From: Cy Schubert <Cy.Schubert@cschubert.com> To: Konstantin Belousov <kostikbel@gmail.com> Cc: Cy Schubert <cy@freebsd.org>, Vladimir Zakharov <zakharov.vv@gmail.com>, freebsd-current@freebsd.org Subject: Re: ntpd segfaults on start Message-ID: <201909060355.x863tRhP089169@slippy.cwsent.com> In-Reply-To: <20190905142817.GB2559@kib.kiev.ua> References: <20190905061251.rrip6635ebbfimsv@vzakharov> <20190905063354.qxecqjkafikdtdyq@vzakharov> <201909051307.x85D7MGs034053@slippy.cwsent.com> <20190905142817.GB2559@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20190905142817.GB2559@kib.kiev.ua>, Konstantin Belousov writes: > On Thu, Sep 05, 2019 at 06:07:22AM -0700, Cy Schubert wrote: > > 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. > > See the thread 'ntpd doesn't like ASLR on stable/12 post-r350672' on stable. > Read it to the end. Same setrlimit, different error NetBSD is experiencing. I'll investigate. -- 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?201909060355.x863tRhP089169>