From owner-freebsd-ports@FreeBSD.ORG Wed Apr 25 21:30:46 2012 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FCC61065670; Wed, 25 Apr 2012 21:30:46 +0000 (UTC) (envelope-from Cy.Schubert@komquats.com) Received: from smtp-out-04.shaw.ca (smtp-out-04.shaw.ca [64.59.134.12]) by mx1.freebsd.org (Postfix) with ESMTP id 43BED8FC0C; Wed, 25 Apr 2012 21:30:46 +0000 (UTC) Received: from lb7f8hsrpno-svcs.dcs.int.inet (HELO pd7ml2no-ssvc.prod.shaw.ca) ([10.0.144.222]) by pd5mo1no-svcs.prod.shaw.ca with ESMTP; 25 Apr 2012 15:30:39 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=GZn8e3lTBEeJrlGK3+GUWyR5aYe1SJcDn5uEERMe9yQ= c=1 sm=1 a=czI5LYiaVdoA:10 a=QrugwKR0C_UA:10 a=wAGQQ9Az6v0A:10 a=BLceEmwcHowA:10 a=ICAaq7hcmGcA:10 a=8nJEP1OIZ-IA:10 a=IbtKDeXwb2+SRU442/pi3A==:17 a=hv0rkc5eAAAA:8 a=DTOx7Y5RAAAA:8 a=BWvPGDcYAAAA:8 a=6I5d2MoRAAAA:8 a=1AefbiJUI86gPzUmVLMA:9 a=04hGqkM2ceG5fjI_w00A:7 a=wPNLvfGTeEIA:10 a=Bjhf4o-qE_4A:10 a=CyaIoRigjWIA:10 a=xAyj-7hrVv4A:10 a=6xdZg_OjcN0A:10 a=fmeLS1q7hQQA:10 a=V7tsTZBp22UA:10 a=SV7veod9ZcQA:10 a=qiWi7Edwir4A:10 a=NWVoK91CQyQA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 Received: from unknown (HELO spqr.komquats.com) ([96.50.7.119]) by pd7ml2no-dmz.prod.shaw.ca with ESMTP; 25 Apr 2012 15:30:39 -0600 Received: from slippy.cwsent.com (slippy8 [10.2.2.6]) by spqr.komquats.com (Postfix) with ESMTP id D00FC80; Wed, 25 Apr 2012 14:30:38 -0700 (PDT) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.14.5/8.14.5) with ESMTP id q3PLUchS003768; Wed, 25 Apr 2012 14:30:38 -0700 (PDT) (envelope-from Cy.Schubert@komquats.com) Message-Id: <201204252130.q3PLUchS003768@slippy.cwsent.com> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.3 From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: "Dean Weimer" In-Reply-To: Message from "Dean Weimer" of "Wed, 25 Apr 2012 09:54:28 CDT." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Apr 2012 14:30:38 -0700 Cc: ports@FreeBSD.org, cy@FreeBSD.org Subject: Re: FreeBSD Port: ntp-4.2.6p5 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Cy Schubert List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Apr 2012 21:30:46 -0000 In message , =22Dean Weimer=22 writes: > I have a FreeBSD 9.0-RELEASE system built form sources that ntpd compil= e from > the port with default options immediately crashes when launched. Howe= ver wh > en running it with the -d option on the command line to try and determi= ne the > cause the program runs fine and doesn't crash. >=20 > I have another very similar system built with the same /etc/make.conf = and /e > tc/src.conf files only with more ports installed than this system which= doesn > 't have the problem. So I rebuilt this system entirely again, doing th= e full > make buildworld, make buildkernel and installation. Followed by a por= tmaste > r -af to reinstall all ports problem persisted. I also deleted the ntp= .conf=20 > and copied the one form the FreeBSD /usr/src/etc/ntp.conf file to rule = out co > nfiguration file corruption as the cause. I also tried the net/ntp-dev= el bra > nch port, similar problem as well, only it exists with a signal 10 when= not i > n debugging mode whereas the net/ntp branch port gives me a signal 11. Bus errors (access violations in text, e.g. JMP) and segmentation=20 violations (access violations in the data or stack) may be due to bad=20 memory. You can test this out by copying ntpd from a working system to th= e=20 other. Use pkg_create to create a binary package on the working system an= d=20 pkg_add on the other. You may want to check out configuration on the non-working system. In regard to debugging mode, the code will use a different execution path= =20 and your memory map will be slightly different, bypassing tickling whatev= er=20 causes ntpd to crash. >=20 > Further searching and I finally discovered the version of pearl on the = workin > g system was from the 5.14 branch and not the 5.12 branch. Updating pe= arl an > d recompiling all pearl dependent ports seems to have resolved the issu= e. Be > low is information about the system, and relevant log files, everything= is wo > rking for me now, but I wanted to pass this information on in case ther= e is s > omething useful in it to help you maintain the port. Personally, I haven't had problems with Perl 5.12 either. My infrastructu= re=20 is at 5.14 currently but when it was at 5.12 I had no issues either. >=20 > Proxy1=23 uname -a > FreeBSD proxy1.orscheln.com 9.0-RELEASE FreeBSD 9.0-RELEASE =231: Tue A= pr 24 09 > :23:20 CDT 2012 intproxy=40proxy1.orscheln.com:/usr/obj/usr/src/sys= /GENERIC > amd64 >=20 > Log files from a startup of: /etc/rc.d/ntpd start > Apr 25 09:06:48 proxy1 ntpd=5B59906=5D: ntpd 4.2.6p5=401.2349 Wed Apr 2= 5 14:06:07 U > TC 2012 (1) > Apr 25 09:06:48 proxy1 kernel: pid 59907 (ntpd), uid 0: exited on signa= l 11 ( > core dumped) >=20 > proxy1=23 ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid -d > ntpd 4.2.6p5=401.2349 Wed Apr 25 14:06:07 UTC 2012 (1) > 25 Apr 09:07:36 ntpd=5B59923=5D: proto: precision =3D 0.698 usec > event at 0 0.0.0.0 c01d 0d kern kernel time sync enabled > Finished Parsing=21=21 > 25 Apr 09:07:36 ntpd=5B59923=5D: ntp_io: estimated max descriptors: 110= 95, initia > l socket boundary: 20 > 25 Apr 09:07:36 ntpd=5B59923=5D: Listen and drop on 0 v4wildcard 0.0.0.= 0 UDP 123 > 25 Apr 09:07:36 ntpd=5B59923=5D: Listen and drop on 1 v6wildcard :: UDP= 123 > 25 Apr 09:07:36 ntpd=5B59923=5D: Listen normally on 2 bce0 fe80::7a2b:c= bff:fe68:9 > f1e UDP 123 > restrict: op 1 addr fe80::7a2b:cbff:fe68:9f1e mask ffff:ffff:ffff:ffff:= ffff:f > fff:ffff:ffff mflags 00003000 flags 00000001 > 25 Apr 09:07:36 ntpd=5B59923=5D: Listen normally on 3 bce1 fe80::7a2b:c= bff:fe68:9 > f1f UDP 123 > restrict: op 1 addr fe80::7a2b:cbff:fe68:9f1f mask ffff:ffff:ffff:ffff:= ffff:f > fff:ffff:ffff mflags 00003000 flags 00000001 > 25 Apr 09:07:36 ntpd=5B59923=5D: Listen normally on 4 lo0 ::1 UDP 123 > restrict: op 1 addr ::1 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff mf= lags 0 > 0003000 flags 00000001 > 25 Apr 09:07:36 ntpd=5B59923=5D: Listen normally on 5 lo0 fe80::1 UDP 1= 23 > restrict: op 1 addr fe80::1 mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:fff= f mfla > gs 00003000 flags 00000001 > 25 Apr 09:07:36 ntpd=5B59923=5D: Listen normally on 6 lo0 127.0.0.1 UDP= 123 > restrict: op 1 addr 127.0.0.1 mask 255.255.255.255 mflags 00003000 flag= s 0000 > 0001 > 25 Apr 09:07:36 ntpd=5B59923=5D: Listen normally on 7 DMZ 10.50.20.5 UD= P 123 > restrict: op 1 addr 10.50.20.5 mask 255.255.255.255 mflags 00003000 fla= gs 000 > 00001 > 25 Apr 09:07:36 ntpd=5B59923=5D: Listen normally on 8 DMZ 10.52.20.5 UD= P 123 > restrict: op 1 addr 10.52.20.5 mask 255.255.255.255 mflags 00003000 fla= gs 000 > 00001 > 25 Apr 09:07:36 ntpd=5B59923=5D: peers refreshed > 25 Apr 09:07:36 ntpd=5B59923=5D: Listening on routing socket on fd =232= 9 for interf > ace updates > peer_clear: at 0 next 1 associd 24691 refid INIT > event at 0 50.22.155.163 8011 81 mobilize assoc 24691 > newpeer: 10.50.20.5->50.22.155.163 mode 3 vers 4 poll 6 9 flags 0x101 0= x1 ttl > 0 key 00000000 > peer_clear: at 0 next 2 associd 24692 refid INIT > event at 0 173.230.144.109 8011 81 mobilize assoc 24692 > newpeer: 10.50.20.5->173.230.144.109 mode 3 vers 4 poll 6 9 flags 0x101= 0x1 t > tl 0 key 00000000 > peer_clear: at 0 next 3 associd 24693 refid INIT > event at 0 24.124.0.251 8011 81 mobilize assoc 24693 > newpeer: 10.50.20.5->24.124.0.251 mode 3 vers 4 poll 6 9 flags 0x101 0x= 1 ttl=20 > 0 key 00000000 > event at 0 0.0.0.0 c016 06 restart > event at 0 0.0.0.0 c012 02 freq_set kernel 0.000 PPM > event at 0 0.0.0.0 c011 01 freq_not_set > receive: at 0 10.50.20.5<-10.26.146.37 mode 1 len 48 > transmit: at 0 10.50.20.5->10.26.146.37 mode 2 len 48 > receive: at 0 10.50.20.5<-10.26.10.3 mode 3 len 48 > transmit: at 0 10.50.20.5->10.26.10.3 mode 4 len 48 > receive: at 0 10.50.20.5<-10.21.130.2 mode 1 len 48 > transmit: at 0 10.50.20.5->10.21.130.2 mode 2 len 48 > receive: at 0 10.50.20.5<-10.22.160.103 mode 3 len 48 > transmit: at 0 10.50.20.5->10.22.160.103 mode 4 len 48 > receive: at 0 10.50.20.5<-10.26.112.9 mode 3 len 48 > transmit: at 0 10.50.20.5->10.26.112.9 mode 4 len 48 >=20 > /etc/make.conf > =23 Use OpenSSL from ports instead of base > WITH_OPENSSL_PORT=3Dyes > =23 Avoid Building Ports Against X > WITHOUT_X11=3Dyes > =23 Some Default Options From /usr/share/examples/etc/make.conf > CFLAGS?=3D -O -pipe > NO_WERROR=3D > WERROR=3D > =23 Enable Proxy for Fetch > FETCH_ENV=3Dhttp_proxy=3Dhttp://10.50.20.1:8080 > FETCH_ENV=3Dftp_proxy=3Dhttp://10.50.20.1:8080 > =23 ports which will only build with the base system GNU compiler (4.2)= > =23 the =22make index=22 target also needs this > .if target(index) =7C =5C > =24=7B.CURDIR:M*/lang/gcc*=7D =7C =5C > =24=7B.CURDIR:M*/lang/ruby*=7D =7C =5C > =24=7B.CURDIR:M*/www/squid*=7D > USE_GCC?=3D4.2 > .endif > =23 use clang unless gcc is explicitly required > .if =21defined(USE_GCC) > .if =21defined(CC) =7C=7C =24=7BCC=7D =3D=3D =22cc=22 > CC=3Dclang > .endif > .if =21defined(CXX) =7C=7C =24=7BCXX=7D =3D=3D =22c++=22 > CXX=3Dclang++ > .endif > .if =21defined(CPP) =7C=7C =24=7BCPP=7D =3D=3D =22cpp=22 > CPP=3Dclang-cpp > .endif > .endif > =23 added by use.perl 2012-04-24 22:44:11 > PERL_VERSION=3D5.12.4 >=20 > /etc/src.conf > =23 Build Without Bind > WITHOUT_BIND_DNSSEC=3D=22YES=22 > WITHOUT_BIND_LIBS_LWRES=3D=22YES=22 > WITHOUT_BIND_NAMED=3D=22YES=22 > WITHOUT_BIND_UTILS=3D=22YES=22 > =23 Build without NTP > WITHOUT_NTP=3D=22YES=22 > =23 Build Without Floppy > WITHOUT_FLOPPY=3D=22YES=22 > =23 Build Witout FreeBSD Update command > WITHOUT_FREEBSD_UPDATE=3D=22YES=22 >=20 > Thanks, > =A0=A0=A0=A0 Dean Weimer > =A0=A0=A0=A0 Network Administrator > =A0=A0=A0=A0 Orscheln Management Co > =A0=A0=A0=A0=A0Phone: (660) 269-3448 > =A0=A0=A0=A0 Fax: (660) 269-3950 >=20 Thanks for the info. --=20 Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org