From owner-freebsd-bugs Thu Apr 4 11:20:39 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 884C337B41E for ; Thu, 4 Apr 2002 11:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g34JK1F24081; Thu, 4 Apr 2002 11:20:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id ED12737B41B for ; Thu, 4 Apr 2002 11:13:50 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g34JDo923305; Thu, 4 Apr 2002 11:13:50 -0800 (PST) (envelope-from nobody) Message-Id: <200204041913.g34JDo923305@freefall.freebsd.org> Date: Thu, 4 Apr 2002 11:13:50 -0800 (PST) From: Gary Thorpe To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: i386/36761: Symbol problems dependant on boot method, affects user utilities Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36761 >Category: i386 >Synopsis: Symbol problems dependant on boot method, affects user utilities >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Apr 04 11:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Gary Thorpe >Release: 4.2 >Organization: >Environment: [dmesg output is included in description, forgot to get uname -a :-(] >Description: Booting the kernel using the second stage bootstrap instead of the third stage loader causes symbols to become hidden from some user programs. Specific symbol problems: swapinfo: undefined symbol: _numvnodes [when swapinfo is run] systat: nlist: can't find following symbols: _ccpu ;_fscale [when systat is run] top: nlist failed [when top is run] vmstat: undefined symbols: _kmemstatistics _bucket _zlist [when vmstat is run] dmesg output when booted using loader: Copyright (c) 1992-2000 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.2-RELEASE #7: Mon Sep 3 18:42:50 PDT 2001 gthorpe@elf.elven.org:/usr/src/sys/compile/ELF Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (266.62-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183f9ff real memory = 100597760 (98240K bytes) avail memory = 94867456 (92644K bytes) Preloaded elf kernel "kernel" at 0xc02f0000. Pentium Pro MTRR support enabled apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcic-pci0: at device 2.0 on pci0 pcic-pci1: at device 2.1 on pci0 pci0: at 4.0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xfe60-0xfe6f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 7.2 irq 11 intpm0: port 0xfe70-0xfe7f irq 9 at device 7.3 on pci0 intpm0: I/O mapped fe70 intpm0: intr IRQ 9 enabled revision 0 smbus0: on intsmb0 smb0: on smbus0 intpm0: PM I/O mapped fe00 chip1: port 0xff80-0xff9f irq 11 at device 10.0 on pci0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> pcic0: at port 0x3e0 iomem 0xd0000 on isa0 pcic0: Polling mode pccard0: on pcic0 pccard1: on pcic0 sio0 at port 0x3f8-0x3ff irq 4 flags 0x20010 on isa0 sio0: type ST16650A ppc0: at port 0x378-0x37f irq 7 drq 3 on isa0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold lpt0: on ppbus0 lpt0: Interrupt-driven port plip0: on ppbus0 ppi0: on ppbus0 unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources pcm0: at port 0x220-0x233,0x530-0x537,0x388-0x38f,0x330-0x333,0x538-0x539 irq 5 drq 1,0 on isa0 ata1-slave: ata_command: timeout waiting for intr ata1-slave: identify failed ad0: 4126MB [8944/15/63] at ata0-master UDMA33 acd0: CDROM at ata1-master using WDMA2 Mounting root from ufs:/dev/ad0s2a dmesg output when booted from second stage bootstrap: Copyright (c) 1992-2000 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.2-RELEASE #7: Mon Sep 3 18:42:50 PDT 2001 gthorpe@elf.elven.org:/usr/src/sys/compile/ELF Timecounter "i8254" frequency 1193182 Hz CPU: Pentium II/Pentium II Xeon/Celeron (266.62-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x652 Stepping = 2 Features=0x183f9ff real memory = 100597760 (98240K bytes) avail memory = 94871552 (92648K bytes) Pentium Pro MTRR support enabled apm0: on motherboard apm: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcic-pci0: at device 2.0 on pci0 pcic-pci1: at device 2.1 on pci0 pci0: at 4.0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xfe60-0xfe6f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 7.2 irq 11 intpm0: port 0xfe70-0xfe7f irq 9 at device 7.3 on pci0 intpm0: I/O mapped fe70 intpm0: intr IRQ 9 enabled revision 0 smbus0: on intsmb0 smb0: on smbus0 intpm0: PM I/O mapped fe00 chip1: port 0xff80-0xff9f irq 11 at device 10.0 on pci0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> pcic0: at port 0x3e0 iomem 0xd0000 on isa0 pcic0: Polling mode pccard0: on pcic0 pccard1: on pcic0 sio0 at port 0x3f8-0x3ff irq 4 flags 0x20010 on isa0 sio0: type ST16650A ppc0: at port 0x378-0x37f irq 7 drq 3 on isa0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold lpt0: on ppbus0 lpt0: Interrupt-driven port plip0: on ppbus0 ppi0: on ppbus0 unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources unknown: can't assign resources pcm0: at port 0x220-0x233,0x530-0x537,0x388-0x38f,0x330-0x333,0x538-0x539 irq 5 drq 1,0 on isa0 ata1-slave: ata_command: timeout waiting for intr ata1-slave: identify failed ad0: 4126MB [8944/15/63] at ata0-master UDMA33 acd0: CDROM at ata1-master using WDMA2 Mounting root from ufs:ad0s2a >How-To-Repeat: When the second stage loader pauses, hit any key except enter. Then type 0:ad(0,a)/kernel (which replaces 0:ad(0,a)/boot/loader) and hit enter. This boots the kernel directly instead of using the third stage loader. >Fix: Use the third stage loader (but there is no REASON why booting the kernel diffeently should result in symbol problems!). >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message