From nobody@FreeBSD.org  Mon Dec  7 23:58:05 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2C315106568F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 Dec 2009 23:58:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 1BCDF8FC1B
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  7 Dec 2009 23:58:05 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nB7Nw4ZU029254
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 7 Dec 2009 23:58:04 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nB7Nw4tm029253;
	Mon, 7 Dec 2009 23:58:04 GMT
	(envelope-from nobody)
Message-Id: <200912072358.nB7Nw4tm029253@www.freebsd.org>
Date: Mon, 7 Dec 2009 23:58:04 GMT
From: Christian Pinedo <chr.pinedo@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ntpd crashes when tries to use an oncore reference clock
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         141264
>Category:       bin
>Synopsis:       ntpd(8) crashes when tries to use an oncore reference clock
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Dec 08 00:00:18 UTC 2009
>Closed-Date:    
>Last-Modified:  Tue Dec 08 03:04:11 UTC 2009
>Originator:     Christian Pinedo
>Release:        8.0p1
>Organization:
>Environment:
$ uname -a
FreeBSD xxx.yyy.zz 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Sun Dec  6 11:59:43 CET 2009     root@xxx.yyy.zz:/usr/obj/usr/src/sys/PPS-GENERIC  i386
$ cat /sys/i386/conf/PPS-GENERIC
#
# Kernel configuration for NTPD Server
#
include GENERIC
ident 	PPS-GENERIC
options	PPS_SYNC

>Description:
When I try to use the Oncore Reference clock with NTPD, daemon crashes. This is the output in /var/log/messages:

Dec  8 00:19:15 xxx ntpd[978]: stack overflow detected; terminated



The configuration file:

xxx# cat /etc/ntp.conf
enable kernel
#pps /dev/pps0 assert hardpss
pps /dev/oncore.pps.0 assert hardpss
server 127.127.30.0 prefer
server 127.127.1.0
fudge 127.127.1.0 stratum 10 	

restrict 127.0.0.1
restrict -6 ::1
restrict default limited kod nomodify notrap nopeer noquery
restrict -6 default limited kod nomodify notrap nopeer noquery

discard average 5 minimum 2 monitor 1
	
driftfile /var/db/ntpd.drift
logfile  /var/log/ntpd
statsdir /var/log/ntpstats/
statistics clockstats cryptostats loopstats sysstats
filegen clockstats file clockstats type day enable
filegen cryptostats file cryptostats type day enable
filegen loopstats file loopstats type day enable
filegen sysstats file sysstats type day enable

>How-To-Repeat:

>Fix:
The problem seems to be discovered previously and a patch has been suggested that i haven't tested yet: http://groups.google.com/group/mailing.freebsd.current/browse_thread/thread/ed5a85934d33e305

>Release-Note:
>Audit-Trail:
>Unformatted:
