Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Dec 2001 22:20:02 -0500
From:      James Housley <jim@thehousleys.net>
To:        stable@freebsd.org
Subject:   NTPD dumps core in 4.5-PRERELEASE
Message-ID:  <3C269EE2.7820ACBC@Thehousleys.net>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------37E7B602688F4931174F335F
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I have three machines here all running 4.5-PRERELEASE.  2 with CVSup
12/22 5am EST.  1 CVSup 12/23 5am EST.  The laptop is dumps core on
startup only with 12/22 & 12/23.  I don't believe this was doing this
before 4.1.0.  If I re-run with the exact same parameters after the boot
is finished all is well.  Attached is the dmesg.boot and some debug
information from the core file.  This is reproduceable with every reboot
on this one machine.

Jim

-- 
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
 X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh@FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim@TheHousleys.Net  http://www.TheHousleys.net
jhousley@SimTel.Net  http://www.SimTel.Net
---------------------------------------------------------------------
Life begins at 4.0
--------------37E7B602688F4931174F335F
Content-Type: text/plain; charset=us-ascii;
 name="dmesg.boot"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="dmesg.boot"

Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.5-PRERELEASE #9: Sun Dec 23 16:48:10 EST 2001
    root@vaio.int.thehousleys.net:/usr/obj/usr/src/sys/VAIOKERNEL
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (645.20-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x681  Stepping = 1
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 134152192 (131008K bytes)
avail memory = 126951424 (123976K bytes)
Preloaded elf kernel "kernel" at 0xc039b000.
Preloaded elf module "accf_data.ko" at 0xc039b09c.
Preloaded elf module "accf_http.ko" at 0xc039b140.
VESA: v2.0, 6080k memory, flags:0x0, mode table:0xc031f062 (1000022)
VESA: MagicMedia 256XL+ 48K
Pentium Pro MTRR support enabled
Using $PIR table, 8 entries at 0xc00fdf40
apm0: <APM BIOS> on motherboard
apm: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <NeoMagic model 0016 VGA-compatible display device> at 0.0 irq 9
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xfc90-0xfc9f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xfca0-0xfcbf irq 9 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
intpm0: <Intel 82371AB Power management controller> port 0x1040-0x104f irq 9 at device 7.3 on pci0
intpm0: I/O mapped 1040
intpm0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus general purpose I/O> on smbus0
intpm0: PM I/O mapped 8000 
pci0: <unknown card> (vendor=0x104d, dev=0x8039) at 8.0 irq 9
pcm0: <Yamaha DS-1E (YMF744)> port 0xfc8c-0xfc8f,0xfcc0-0xfcff mem 0xfedf8000-0xfedfffff irq 9 at device 9.0 on pci0
pci0: <unknown card> (vendor=0x127a, dev=0x2005) at 10.0 irq 9
pci_cfgintr_linked: linked (60) to hard-routed irq 9
pci_cfgintr: 0:12 INTA routed to irq 9
pcic0: <Ricoh RL5C478 PCI-CardBus Bridge> irq 9 at device 12.0 on pci0
pcic0: PCI Memory allocated: 0x44000000
pccard0: <PC Card bus (classic)> on pcic0
pci_cfgintr_linked: linked (61) to hard-routed irq 9
pci_cfgintr: 0:12 INTB routed to irq 9
pcic1: <Ricoh RL5C478 PCI-CardBus Bridge> irq 9 at device 12.1 on pci0
pcic1: PCI Memory allocated: 0x44001000
pccard1: <PC Card bus (classic)> on pcic1
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
sbc0: <SoundBlaster Pro> at port 0x220-0x22f irq 5 drq 1 flags 0x15 on isa0
pcm1: <SB DSP 3.01> on sbc0
joy0 at port 0x201 on isa0
IPsec: Initialized Security Association Processing.
pccard: card inserted, slot 0
ata1-slave: ata_command: timeout waiting for intr
ata1-slave: identify failed
ad0: 17301MB <IBM-DARA-218000> [35152/16/63] at ata0-master UDMA33
acd0: DVD-ROM <TOSHIBA DVD-ROM SD-C2202> at ata1-master using PIO4
Mounting root from ufs:/dev/ad0s2a
pid 72 (ntpd), uid 0: exited on signal 11 (core dumped)

--------------37E7B602688F4931174F335F
Content-Type: text/plain; charset=iso-8859-1;
 name="typescript"
Content-Transfer-Encoding: 8bit
Content-Disposition: inline;
 filename="typescript"

Script started on Sun Dec 23 19:39:31 2001

vaio# ggdb /usr/sbin/ntpd /ntpd.core 

GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
Core was generated by `ntpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0  0x8056dc4 in clock_select ()
    at /usr/src/usr.sbin/ntp/ntpd/../../../contrib/ntp/ntpd/ntp_proto.c:1553
1553				if (!peer->reach || (peer->stratum > 1 &&
(gdb) list 1540
1535		 * unpopular at each round is kicked off. When the population
1536		 * has dwindled to NTP_MINCLOCK (3), the survivors split a
1537		 * million bucks and collectively crank the chimes.
1538		 */
1539		nlist = nl3 = 0;	/* none yet */
1540		for (n = 0; n < HASH_SIZE; n++) {
1541			for (peer = peer_hash[n]; peer != NULL; peer =
1542			    peer->next) {
1543				peer->flags &= ~FLAG_SYSPEER;
1544				peer->status = CTL_PST_SEL_REJECT;
(gdb) 
1545	
1546				/*
1547				 * A peer leaves the island immediately if
1548				 * unreachable, synchronized to us or suffers
1549				 * excessive root distance. Careful with the
1550				 * root distance, since the poll interval can
1551				 * increase to a day and a half.
1552				 */ 
1553				if (!peer->reach || (peer->stratum > 1 &&
1554				    peer->refid ==
(gdb) 
1555				    peer->dstadr->sin.sin_addr.s_addr) ||
1556				    peer->stratum >= STRATUM_UNSPEC ||
1557				    (root_distance(peer) >= MAXDISTANCE + 2 *
1558				    clock_phi * ULOGTOD(sys_poll)))
1559					continue;
1560	
1561				/*
1562				 * Don't allow the local clock or modem drivers
1563				 * in the kitchen at this point, unless the
1564				 * prefer peer. Do that later, but only if
(gdb) p peer
$1 = (struct peer *) 0x80829a8
(gdb) p (struct peer *) peer
$2 = (struct peer *) 0x80829a8
(gdb) p *(struct peer *) peer
$3 = {next = 0x0, ass_next = 0x0, srcadr = {sin_len = 0 '\000', 
    sin_family = 2 '\002', sin_port = 31488, sin_addr = {s_addr = 98175}, 
    sin_zero = "\000\000\000\000\000\000\000"}, dstadr = 0x0, associd = 59212, 
  version = 4 '\004', hmode = 3 '\003', hpoll = 6 '\006', kpoll = 6 '\006', 
  minpoll = 6 '\006', maxpoll = 6 '\006', burst = 0 '\000', flags = 33, 
  cast_flags = 1 '\001', flash = 0, last_event = 4 '\004', 
  num_events = 1 '\001', ttlmax = 0 '\000', procptr = 0x8098000, 
  refclktype = 1 '\001', refclkunit = 0 '\000', sstclktype = 0 '\000', 
  leap = 0 '\000', pmode = 4 '\004', stratum = 5 '\005', precision = -20 'ì', 
  ppoll = 6 '\006', refid = 98175, reftime = {Ul_i = {Xl_ui = 3218142992, 
      Xl_i = -1076824304}, Ul_f = {Xl_uf = 2867272922, Xl_f = -1427694374}}, 
  keyid = 0, assoc = 0, crypto = 0, pkeyid = 0, hcookie = 0, pcookie = {
    tstamp = 0, key = 0, siglen = 0, pkt = {0}, sig = 0x0}, recauto = {
    tstamp = 0, key = 0, seq = 0, siglen = 0, pkt = {0}, sig = 0x0}, cmmd = 0, 
  keylist = 0x0, keynumber = 0, sndauto = {tstamp = 0, key = 0, seq = 0, 
    siglen = 0, pkt = {0}, sig = 0x0}, status = 0 '\000', pollsw = 1 '\001', 
  ttl = 0 '\000', reach = 1 '\001', unreach = 0 '\000', epoch = 5, 
  filter_nextpt = 1, filter_delay = {0, 0, 0, 0, 0, 0, 0, 0}, filter_offset = {
    0, 0, 0, 0, 0, 0, 0, 0}, filter_disp = {1.9073486328125e-06, 16, 16, 16, 
    16, 16, 16, 16}, filter_epoch = {5, 0, 0, 0, 0, 0, 0, 0}, 
  filter_order = "\000\a\006\005\004\003\002\001", org = {Ul_i = {
      Xl_ui = 3218142992, Xl_i = -1076824304}, Ul_f = {Xl_uf = 2867272922, 
      Xl_f = -1427694374}}, rec = {Ul_i = {Xl_ui = 3218142992, 
      Xl_i = -1076824304}, Ul_f = {Xl_uf = 2867745368, Xl_f = -1427221928}}, 
---Type <return> to continue, or q <return> to quit---
  xmt = {Ul_i = {Xl_ui = 3218142992, Xl_i = -1076824304}, Ul_f = {
      Xl_uf = 2867242857, Xl_f = -1427724439}}, offset = 0, delay = 0, 
  jitter = 9.0949470177292824e-13, disp = 7.9375009536743164, 
  estbdelay = 0.0040000000000000001, rootdelay = 0, rootdispersion = 0.01, 
  update = 5, outdate = 0, nextdate = 5, nextaction = 0, action = 0, 
  timereset = 0, timereceived = 5, timereachable = 0, sent = 1, received = 1, 
  processed = 1, badauth = 0, bogusorg = 0, oldpkt = 0, seldisptoolarge = 0, 
  selbroken = 0}
(gdb) list 1553
1548				 * unreachable, synchronized to us or suffers
1549				 * excessive root distance. Careful with the
1550				 * root distance, since the poll interval can
1551				 * increase to a day and a half.
1552				 */ 
1553				if (!peer->reach || (peer->stratum > 1 &&
1554				    peer->refid ==
1555				    peer->dstadr->sin.sin_addr.s_addr) ||
1556				    peer->stratum >= STRATUM_UNSPEC ||
1557				    (root_distance(peer) >= MAXDISTANCE + 2 *
(gdb) p p- eer->reach
$4 = 1 '\001'
(gdb) 
vaio# 


Script done on Sun Dec 23 19:41:56 2001

--------------37E7B602688F4931174F335F--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C269EE2.7820ACBC>