Bug 178282 - net/ntp dies immediately on startup
Summary: net/ntp dies immediately on startup
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cy Schubert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-01 17:50 UTC by wollman
Modified: 2015-01-14 23:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wollman 2013-05-01 17:50:00 UTC
ntpd dumps core almost immediately on startup.

Fix: 

Adding "-n" to the command line and manually backgrounding ntpd
appears to make it work.  (This also frustrated my attempts to run it
under the debugger.)

Setting MALLOC_OPTIONS to "ADJ" seems to make it work better, which
makes me suspect malloc arena corruption of some sort.
How-To-Repeat: 
# /etc/rc.d/ntpd start
Starting ntpd.
# sleep 1
# ntpq -p
ntpq: read: Connection refused
Comment 1 Stefan Walter freebsd_committer freebsd_triage 2013-05-02 21:32:00 UTC
Responsible Changed
From-To: freebsd-ports-bugs->cy

This is actually about net/ntp, which is maintained by cy.
Comment 2 vsjcfm 2013-06-25 13:01:28 UTC
2013/5/1 Garrett Wollman <wollman@csail.mit.edu>:
>
>>Number:         178282
>>Category:       ports
>>Synopsis:       ports ntpd dies immediately on startup
>>Confidential:   no
>>Severity:       critical
>>Priority:       high
>>Responsible:    freebsd-ports-bugs
>>State:          open
>>Quarter:
>>Keywords:
>>Date-Required:
>>Class:          sw-bug
>>Submitter-Id:   current-users
>>Arrival-Date:   Wed May 01 16:50:00 UTC 2013
>>Closed-Date:
>>Last-Modified:
>>Originator:     Garrett Wollman
>>Release:        FreeBSD 9.1-RELEASE-p2 amd64
>>Organization:
> MIT Computer Science & Artificial Intelligence Laboratory
>>Environment:
> System: FreeBSD xyz.csail.mit.edu 9.1-RELEASE-p2 FreeBSD 9.1-RELEASE-p2 #27 r250065M: Mon Apr 29 17:11:15 EDT 2013 wollman@xyz.csail.mit.edu:/usr/obj/usr/src/sys/CSAIL amd64
>
> The same problem is observed with both net/ntp (ntp-4.2.6p5_2) and
> net/ntp-dev.
...
Hello,
I confirm this problem on a 9.1-RELEASE amd64.
Comment 3 Carlo Strub freebsd_committer freebsd_triage 2014-09-14 10:33:17 UTC
Is this PR still relevant?
Comment 4 Carlo Strub freebsd_committer freebsd_triage 2014-09-16 07:55:10 UTC
Back to pool. Problem still persists.
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2014-11-23 08:11:52 UTC
Back to maintainer.
Comment 6 Cy Schubert freebsd_committer freebsd_triage 2015-01-14 02:57:54 UTC
Can you try ntp-devel (ntp-4.2.8p1beta5)? Does it fix the problem?
Comment 7 Cy Schubert freebsd_committer freebsd_triage 2015-01-14 19:59:48 UTC
4.2.8 fixes problem. Awaiting feedback.
Comment 8 Cy Schubert freebsd_committer freebsd_triage 2015-01-14 23:08:12 UTC
Fixed by 4.2.8.