misc/124353: CVSup coredumps with Bus Error since installworld of 6.3-STABLE on 28/5/08

Simon Phillips srp at zzap.org
Fri Jun 6 14:40:02 UTC 2008


>Number:         124353
>Category:       misc
>Synopsis:       CVSup coredumps with Bus Error since installworld of 6.3-STABLE on 28/5/08
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 06 14:40:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Simon Phillips
>Release:        6.3-STABLE
>Organization:
>Environment:
FreeBSD mnemosyne 6.3-STABLE FreeBSD 6.3-STABLE #0: Wed May 28 18:58:05 CST 2008     srp at mnemosyne:/usr/src/sys/amd64/compile/MNEMOSYNE  amd64

>Description:
Since I did a make installworld with 6.3-STABLE with the source tree as at 28/5/08 (Australian time), I am no longer able to run CVSup on either the ports collection or the source tree.  The SUP files used here are the examples that came with FreeBSD with the server changed to 192.168.25.1 (runs a redirection proxy to cvsup.au.freebsd.org--no application level filtering, just a straight TCP proxy).  The machine itself is behind various firewalls and has no direct internet access, so besides using something like tsocks with a temporary SOCKS proxy it's not possible for me to give it a direct 'net connection.  This setup had been working fine for many years (since the 3.x versions) until just recently.  The rest of the system works fine--it runs an internal web server and NFS server.

The error shows up as follows:

mnemosyne# cvsup -L 2 stable-supfile
Parsing supfile "stable-supfile"
Connecting to 192.168.25.1
Connected to 192.168.25.1
Server software version: SNAP_16_1h
Negotiating file attribute support
Exchanging collection information
Establishing multiplexed-mode data connection
Running
Bus error (core dumped)

My original cvsup binary was dated sometime in 2006 (probably compiled when I installed a 6.x-RELEASE version).  I recompiled it from the ports collection but this didn't fix the problem--no change to symptoms.  Tried rebooting with the new kernel too, from the same build date, and also no change.  Also tried looking for a static binary of cvsup for amd64 but didn't have any luck there either. 

Dmesg:
Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
FreeBSD 6.3-STABLE #0: Wed May 28 18:58:05 CST 2008
    srp at mnemosyne:/usr/src/sys/amd64/compile/MNEMOSYNE
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Sempron(tm) Processor 3000+ (1808.33-MHz K8-class CPU)
  Origin = "AuthenticAMD"  Id = 0x20fc2  Stepping = 2
  Features=0x78bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
OV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2>
  Features2=0x1<SSE3>
  AMD Features=0xe2500800<SYSCALL,NX,MMX+,FFXSR,LM,3DNow!+,3DNow!>
  AMD Features2=0x1<LAHF>
real memory  = 469696512 (447 MB)
avail memory = 442109952 (421 MB)
ACPI APIC Table: <VIAK8  AWRDACPI>
ioapic0 <Version 0.3> irqs 0-23 on motherboard
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: <VIAK8 AWRDACPI> on motherboard
acpi0: Power Button (fixed)
    ACPI-0501: *** Error: Handler for [SystemMemory] returned AE_AML_ALIGNMENT
    ACPI-1304: *** Error: Method execution failed [\\_SB_.MEM_._CRS] (Node 0xfff
fff0000a41d40), AE_AML_ALIGNMENT
    ACPI-0239: *** Error: Method execution failed [\\_SB_.MEM_._CRS] (Node 0xfff
fff0000a41d40), AE_AML_ALIGNMENT
can't fetch resources for \\_SB_.MEM_ - AE_AML_ALIGNMENT
    ACPI-0501: *** Error: Handler for [SystemMemory] returned AE_AML_ALIGNMENT
    ACPI-1304: *** Error: Method execution failed [\\_SB_.PCI0._CRS] (Node 0xfff
fff0000a41a40), AE_AML_ALIGNMENT
    ACPI-0239: *** Error: Method execution failed [\\_SB_.PCI0._CRS] (Node 0xfff
fff0000a41a40), AE_AML_ALIGNMENT
can't fetch resources for \\_SB_.PCI0 - AE_AML_ALIGNMENT
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 8380 host to PCI bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
atapci0: <VIA 6420 SATA150 controller> port 0x9000-0x9007,0x9400-0x9403,0x9800-0x9807,0x9c00-0x9c03,0xa000-0xa00f,0xa400-0xa4ff irq 20 at device 15.0 on pci0
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
atapci1: <VIA 8237 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xa800-0xa80f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
uhci0: <VIA 83C572 USB controller> port 0xac00-0xac1f irq 21 at device 16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xb000-0xb01f irq 21 at device 16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xb400-0xb41f irq 21 at device 16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xb800-0xb81f irq 21 at device 16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xea000000-0xea0000ff irq 21 at device 16.4 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pci0: <multimedia, audio> at device 17.5 (no driver attached)
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xc000-0xc0ff mem 0xea001000-0xea0010ff irq 23 at device 18.0 on pci0
vr0: Quirks: 0x0
miibus0: <MII bus> on vr0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:14:85:79:28:1a
fdc0: <floppy drive controller> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FAST]
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0: <Standard parallel printer port> port 0x378-0x37f irq 7 on acpi0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
orm0: <ISA Option ROM> at iomem 0xcc000-0xd3fff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
Timecounter "TSC" frequency 1808334061 Hz quality 800
Timecounters tick every 1.000 msec
acd0: DVDR <PIONEER DVD-RW DVR-111D/1.19> at ata1-master UDMA66
ad4: 190782MB <WDC WD2000JS-60NCB1 10.02E02> at ata2-master SATA150
ad6: 190782MB <WDC WD2000JS-60NCB1 10.02E02> at ata3-master SATA150
GEOM_MIRROR: Device gm0 created (id=1639687812).
GEOM_MIRROR: Device gm0: provider ad4 detected.
GEOM_MIRROR: Device gm0: provider ad6 detected.
GEOM_MIRROR: Device gm0: provider ad6 activated.
GEOM_MIRROR: Device gm0: provider mirror/gm0 launched.
GEOM_MIRROR: Device gm0: rebuilding provider ad4.
Trying to mount root from ufs:/dev/mirror/gm0s1a
kldload: Unsupported file type
ipfw2 initialized, divert loadable, rule-based forwarding disabled, default to deny, logging disabled
kldload: Unsupported file type

(These kldload errors seem unrelated.  All devices connected to the system seem to have come up OK.  They weren't there on the previous kernel which was compiled back in February this year.)

Kernel configuration MNEMOSYNE (/usr/src/sys/amd64/conf/MNEMOSYNE):
machine         amd64
cpu             HAMMER
ident           GENERIC
options         SMP


makeoptions     DEBUG=-g                # Build kernel with gdb(1) debug symbols

options         SCHED_4BSD              # 4BSD scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_ACL                 # Support for access control lists
options         UFS_DIRHASH             # Improve performance on big directories
options         MD_ROOT                 # MD is a potential root device
options         NFSCLIENT               # Network Filesystem Client
options         NFSSERVER               # Network Filesystem Server
options         NFS_ROOT                # NFS usable as /, requires NFSCLIENT
options         NTFS                    # NT File System
options         MSDOSFS                 # MSDOS Filesystem
options         CD9660                  # ISO 9660 Filesystem
options         PROCFS                  # Process filesystem (requires PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_GPT                # GUID Partition Tables.
options         COMPAT_43               # Needed by COMPAT_LINUX32
options         COMPAT_IA32             # Compatible with i386 binaries
options         COMPAT_FREEBSD4         # Compatible with FreeBSD4
options         COMPAT_FREEBSD5         # Compatible with FreeBSD5
options         COMPAT_LINUX32          # Compatible with i386 linux binaries 
options         SCSI_DELAY=5000         # Delay (in ms) before probing SCSI
options         KTRACE                  # ktrace(1) support
options         SYSVSHM                 # SYSV-style shared memory
options         SYSVMSG                 # SYSV-style message queues
options         SYSVSEM                 # SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extension
s
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         ADAPTIVE_GIANT          # Giant mutex is adaptive.

device          atpic                   # 8259A compatability

options         LINPROCFS               # Cannot be a module yet.

device          acpi
device          pci

device          fdc

device          ata
device          atadisk         # ATA disk drives
device          ataraid         # ATA RAID drives
device          atapicd         # ATAPI CDROM drives
device          atapifd         # ATAPI floppy drives
device          atapist         # ATAPI tape drives
options         ATA_STATIC_ID   # Static device numbering

device          ahc             # AHA2940 and onboard AIC7xxx devices
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~128k to driver.
device          ahd             # AHA39320/29320 and onboard AIC79xx devices
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug
                                        # output.  Adds ~215k to driver.
device          amd             # AMD 53C974 (Tekram DC-390(T))
device          sym             # NCR/Symbios Logic (newer chipsets + those of `ncr')

device          aic             # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
device          bt              # Buslogic/Mylex MultiMaster SCSI adapters


device          scbus           # SCSI bus (required for SCSI)
device          ch              # SCSI media changers
device          da              # Direct Access (disks)
device          sa              # Sequential Access (tape etc)
device          cd              # CD
device          atkbdc          # AT keyboard controller
device          atkbd           # AT keyboard
device          psm             # PS/2 mouse

device          kbdmux          # keyboard multiplexer

device          vga             # VGA video card driver

device          splash          # Splash screen and screen saver support

device          sc

device          agp             # support several AGP chipsets



device          ppc
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          plip            # TCP/IP over parallel
device          ppi             # Parallel port interface device


device          de              # DEC/Intel DC21x4x (``Tulip'')
device          em              # Intel PRO/1000 adapter Gigabit Ethernet Card
device          txp             # 3Com 3cR990 (``Typhoon'')
device          vx              # 3Com 3c590, 3c595 (``Vortex'')

device          miibus          # MII bus support
device          bce             # Broadcom BCM5706/BCM5708 Gigabit Ethernet
device          bfe             # Broadcom BCM440x 10/100 Ethernet
device          bge             # Broadcom BCM570xx Gigabit Ethernet
device          dc              # DEC/Intel 21143 and various workalikes
device          fxp             # Intel EtherExpress PRO/100B (82557, 82558)
device          lge             # Level 1 LXT1001 gigabit Ethernet
device          nge             # NatSemi DP83820 gigabit Ethernet
device          sis             # Silicon Integrated Systems SiS 900/SiS 7016
device          tl              # Texas Instruments ThunderLAN
device          tx              # SMC EtherPower II (83c170 ``EPIC'')
device          vge             # VIA VT612x gigabit Ethernet
device          vr              # VIA Rhine, Rhine II
device          xl              # 3Com 3c90x (``Boomerang'', ``Cyclone'')

device          ed              # NE[12]000, SMC Ultra, 3c503, DS8390 cards

device          wlan            # 802.11 support
device          wlan_wep        # 802.11 WEP support
device          wlan_ccmp       # 802.11 CCMP support
device          wlan_tkip       # 802.11 TKIP support
device          an              # Aironet 4500/4800 802.11 wireless NICs.
device          ath             # Atheros pci/cardbus NIC's
device          ath_hal         # Atheros HAL (Hardware Access Layer)
device          ath_rate_sample # SampleRate tx rate control for ath
device          awi             # BayStack 660 and others
device          ral             # Ralink Technology RT2500 wireless NICs.
device          wi              # WaveLAN/Intersil/Symbol 802.11 wireless NICs.

device          loop            # Network loopback
device          random          # Entropy device
device          ether           # Ethernet support
device          sl              # Kernel SLIP
device          ppp             # Kernel PPP
device          tun             # Packet tunnel.
device          pty             # Pseudo-ttys (telnet etc)
device          md              # Memory "disks"

device          bpf             # Berkeley packet filter

device          uhci            # UHCI PCI->USB interface
device          ohci            # OHCI PCI->USB interface
device          ehci            # EHCI PCI->USB interface (USB 2.0)
device          usb             # USB Bus (required)
device          ugen            # Generic
device          uhid            # "Human Interface Devices"
device          ukbd            # Keyboard
device          ulpt            # Printer
device          umass           # Disks/Mass storage - Requires scbus and da
device          ums             # Mouse
device          ural            # Ralink Technology RT2500USB wireless NICs
device          urio            # Diamond Rio 500 MP3 player
device          uscanner        # Scanners


Last lines from truss output from 'truss cvsup -L 2 stable-supfile':

sigprocmask(SIG_BLOCK,SIGVTALRM,0x0)             = 0 (0x0)
getcontext(0x6690b0)                             = 0 (0x0)
setcontext(0x669530)                             = 1 (0x1)
sigprocmask(SIG_UNBLOCK,SIGVTALRM,SIGVTALRM)     = 0 (0x0)
write(4,"\^E\^A\^A\M^Rp\b\M-0\M^_\^T\^F<"...,406) = 406 (0x196)
gettimeofday({1212761871.053609},0x775948)       = 0 (0x0)
select(6,{4 5},{},{4 5},{9.956181})              = 1 (0x1)
sigprocmask(SIG_BLOCK,SIGVTALRM,0x0)             = 0 (0x0)
getcontext(0x669530)                             = 0 (0x0)
setcontext(0x6690b0)                             = 1 (0x1)
sigprocmask(SIG_UNBLOCK,SIGVTALRM,SIGVTALRM)     = 0 (0x0)
read(4,"\^F\0\0\0\M^R\M-2\^E\^A\^BkCOLL "...,8192) = 915 (0x393)
read(4,0x827018,8192)                            ERR#35 'Resource temporarily unavailable'
gettimeofday({1212761871.199293},0x6e9348)       = 0 (0x0)
select(6,{5},{},{5},{0.000000})                  = 0 (0x0)
gettimeofday({1212761871.199715},0x6e9348)       = 0 (0x0)
sigprocmask(SIG_BLOCK,SIGVTALRM,0x0)             = 0 (0x0)
getcontext(0x6690b0)                             = 0 (0x0)
setcontext(0x6630b0)                             = 1 (0x1)
sigprocmask(SIG_UNBLOCK,SIGVTALRM,SIGVTALRM)     = 0 (0x0)
open("/var/db/sup/src-all/checkouts.cvs:RELENG_6",O_RDONLY,0666) = 9 (0x9)
fstat(9,{mode=-rw-r--r-- ,inode=117883,size=8491326,blksize=4096}) = 0 (0x0)
lseek(9,0x0,SEEK_CUR)                            = 0 (0x0)
read(9,"F 5 1211926604\nD src\nC src/COP"...,4096) = 4096 (0x1000)
getpid()                                         = 5882 (0x16fa)
stat("/var/db/sup/src-all",{mode=drwxr-xr-x ,inode=118582,size=512,blksize=4096}) = 0 (0x0)
open("/var/db/sup/src-all/#cvs.cvsup-5882.0",O_RDWR|O_CREAT|O_TRUNC,0666) = 10 (0xa)
fstat(10,{mode=-rw-r--r-- ,inode=119693,size=0,blksize=4096}) = 0 (0x0)
lseek(10,0x0,SEEK_CUR)                           = 0 (0x0)
lstat("/var/db/sup/src-all/#cvs.cvsup-5882.0",{mode=-rw-r--r-- ,inode=119693,size=0,blksize=4096}) = 0 (0x0)
SIGNAL 10 (SIGBUS)
SIGNAL 10 (SIGBUS)
Process stopped because of:  16
process exit, rval = 138
Bus error

I also checked the /var/db/sup directory, and the only thing that drew my attention was some zero-byte files called #cvs.cvsup-nnnn.0 (nnnn= number).  I tried deleting them but this didn't change the result either. 

This is all I can think of to attach...

>How-To-Repeat:
Use standard cvsup example supfiles, change sup server to a TCP redirection proxy and point that at cvsup.au.freebsd.org or cvsup.us.freebsd.org under FreeBSD amd64 6.3-STABLE 28/5/08 version.  Run cvsup -L 2 stable-supfile or cvsup -L 2 ports-supfile in /usr/src or /usr/ports respectively. 
>Fix:
Not known... help? :-)

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


More information about the freebsd-bugs mailing list