From nobody  Tue Nov 10 01:49:59 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id BAA02970;
          Tue, 10 Nov 1998 01:49:59 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199811100949.BAA02970@hub.freebsd.org>
Date: Tue, 10 Nov 1998 01:49:59 -0800 (PST)
From: rampa@elet.polimi.it
To: freebsd-gnats-submit@freebsd.org
Subject: FreeBSD crashes when global memory allocation is larger than the physical memory dimension
X-Send-Pr-Version: www-1.0

>Number:         8642
>Category:       kern
>Synopsis:       FreeBSD crashes when global memory allocation is larger than the physical memory dimension
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 10 02:00:00 PST 1998
>Closed-Date:    Wed Jan 13 05:04:19 PST 1999
>Last-Modified:  Wed Jan 13 05:05:26 PST 1999
>Originator:     Vittorio Rampa
>Release:        2.2.6-RELEASE
>Organization:
C.S.T.S. - C.N.R. - Politecnico di Milano - Milano - Italy
>Environment:
FreeBSD neptune.elet.polimi.it 2.2.6-RELEASE FreeBSD 2.2.6-RELEASE #0: Fri Jun 26 18:57:02 CE
ST 1998     root@neptune.elet.polimi.it:/usr/src/sys/compile/NEPTUNE  i386
>Description:
The system is composed by:
-ASUS P2B Motherboard with 384 MB SDRAM PC100 and a Pentium II 400MHz;
-)Adaptec 2940UW with:
  -)4 UW SCSI IBM disks 9GB DDRS-39130W (id:1,2,3,4);
  -)1 UW SCSI IBM disk  4GB DCAS-34330W (id:0);
  -)1 Exabyte SCSI 4/8 GB EXB-85058HE-0000 (id:5);
-)Etherexpress Pro10 plus;
-)S3 ViRGE/DX 4MB

>How-To-Repeat:
The crash happens when one or more users run programs trying
to allocate more memory than the physical one.
The 1GB swap is activated.
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: foxfair 
State-Changed-When: Wed Jan 13 05:04:19 PST 1999 
State-Changed-Why:  
Duplicate PR w/ 8641 
>Unformatted:
 >X -probeonly
 XFree86 Version 3.3.2
 Configured drivers:
   S3V: accelerated server for S3 graphics adaptors (Patchlevel 0)
       s3_ViRGE
 Using syscons driver with X support (version 2.0)
 (using VT number 1)
 
 >swapinfo
 Device      1K-blocks     Used    Avail Capacity  Type
 /dev/sd0s1b   1048576     6440  1042072     1%    Interleaved
 
 >more /sys/i386/conf/NEPTUNE 
 #
 # NEPTUNE -- machine with AHx family disks
 #
 # For more information read the handbook part System Administration ->
 # Configuring the FreeBSD Kernel -> The Configuration File.
 # The handbook is available in /usr/share/doc/handbook or online as
 # latest version from the FreeBSD World Wide Web server
 # <URL:http://www.FreeBSD.ORG/>
 #
 # An exhaustive list of options and more detailed explanations of the
 # device lines is present in the ./LINT configuration file. If you are
 # in doubt as to the purpose or necessity of a line, check first in LINT.
 #
 #       $Id: GENERIC,v 1.77.2.22 1998/03/24 01:20:14 jkh Exp $
 
 machine         "i386"
 cpu             "I686_CPU"
 ident           NEPTUNE
 maxusers        20
 
 options         INET                    #InterNETworking
 options         FFS                     #Berkeley Fast Filesystem
 options         NFS                     #Network Filesystem
 options         MSDOSFS                 #MSDOS Filesystem
 options         "CD9660"                #ISO 9660 Filesystem
 options         PROCFS                  #Process filesystem
 options         "COMPAT_43"             #Compatible with BSD 4.3 [KEEP THIS!]
 options         SCSI_DELAY=15           #Be pessimistic about Joe SCSI device
 options         BOUNCE_BUFFERS          #include support for DMA bounce buffers
 options         UCONSOLE                #Allow users to grab the console
 options         XSERVER                 #support for X server
 options         FAILSAFE                #Be conservative
 options         QUOTA                   #Activate quota check
 options         PERFMON                 #Performance monitor
 options         USERCONFIG              #boot -c editor
 options         VISUAL_USERCONFIG       #visual boot -c editor
 options         SYSVSHM                 #System V shared memory emulation
 options         SYSVSEM                 #System V semaphore emulation
 options         SYSVMSG                 #System V message emulation
 options         SCSI_REPORT_GEOMETRY    #Report SCSI geometry at boot
 options         "MAXCONS=8"             #Enable 8 virtual consoles
 
 options         KTRACE                  #kernel tracing
 options         DDB                     #kernel debugging
 
 config          kernel  root on sd0
 
 controller      isa0
 controller      eisa0
 controller      pci0
 
 controller      fdc0    at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
 disk            fd0     at fdc0 drive 0
 
 controller      ahc0
 controller      scbus0
 
 device          sd0
 device          od0     #See LINT for possible `od' options.
 device          st0
 device          cd0     #Only need one of these, the code dynamically grows
 
 # syscons is the default console driver, resembling an SCO console
 device          sc0     at isa? port "IO_KBD" tty irq 1 vector scintr
 
 device          npx0    at isa? port "IO_NPX" flags 0x1 irq 13 vector npxintr
 
 device          sio0    at isa? port "IO_COM1" tty irq 4 vector siointr
 device          sio1    at isa? port "IO_COM2" tty irq 3 vector siointr
 
 device          lpt0    at isa? port? tty irq 7 vector lptintr
 device          psm0    at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr
 
 device fxp0
 device vx0
 
 pseudo-device   loop
 pseudo-device   speaker
 pseudo-device   ether
 pseudo-device   log
 pseudo-device   pty     32
 pseudo-device   gzip            # Exec gzipped a.out's
 
 >dmesg
 Copyright (c) 1992-1998 FreeBSD Inc.
 Copyright (c) 1982, 1986, 1989, 1991, 1993
         The Regents of the University of California.  All rights reserved.
 
 FreeBSD 2.2.6-RELEASE #0: Fri Jun 26 18:57:02 CEST 1998
     root@neptune.elet.polimi.it:/usr/src/sys/compile/NEPTUNE
 CPU: Pentium Pro (400.91-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0x651  Stepping=1
   Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,<b16>,<b17>,MMX
 ,<b24>>
 real memory  = 402653184 (393216K bytes)
 avail memory = 392269824 (383076K bytes)
 Probing for devices on PCI bus 0:
 chip0 <generic PCI bridge (vendor=8086 device=7190 subclass=0)> rev 2 on pci0:0:0
 chip1 <generic PCI bridge (vendor=8086 device=7191 subclass=4)> rev 2 on pci0:1:0
 chip2 <Intel 82371AB PCI-ISA bridge> rev 2 on pci0:4:0
 chip3 <Intel 82371AB IDE interface> rev 1 on pci0:4:1
 chip4 <Intel 82371AB USB interface> rev 1 int d irq ?? on pci0:4:2
 chip5 <Intel 82371AB Power management controller> rev 2 on pci0:4:3
 vga0 <VGA-compatible display device> rev 1 int a irq 15 on pci0:9:0
 ahc0 <Adaptec 2940 Ultra SCSI host adapter> rev 1 int a irq 10 on pci0:10:0
 ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
 ahc0 waiting for scsi devices to settle
 (ahc0:0:0): "IBM DCAS-34330W S65A" type 0 fixed SCSI 2
 sd0(ahc0:0:0): Direct-Access 4134MB (8467200 512 byte sectors)
 sd0(ahc0:0:0): with 8205 cyls, 6 heads, and an average 171 sectors/track
 (ahc0:1:0): "IBM DDRS-39130W S92A" type 0 fixed SCSI 2
 sd1(ahc0:1:0): Direct-Access 8715MB (17850000 512 byte sectors)
 sd1(ahc0:1:0): with 8387 cyls, 10 heads, and an average 212 sectors/track
 (ahc0:2:0): "IBM DDRS-39130W S92A" type 0 fixed SCSI 2
 sd2(ahc0:2:0): Direct-Access 8715MB (17850000 512 byte sectors)
 sd2(ahc0:2:0): with 8387 cyls, 10 heads, and an average 212 sectors/track
 (ahc0:3:0): "IBM DDRS-39130W S92A" type 0 fixed SCSI 2
 sd3(ahc0:3:0): Direct-Access 8715MB (17850000 512 byte sectors)
 sd3(ahc0:3:0): with 8387 cyls, 10 heads, and an average 212 sectors/track
 (ahc0:4:0): "IBM DDRS-39130W S92A" type 0 fixed SCSI 2
 sd4(ahc0:4:0): Direct-Access 8715MB (17850000 512 byte sectors)
 sd4(ahc0:4:0): with 8387 cyls, 10 heads, and an average 212 sectors/track
 (ahc0:5:0): "EXABYTE EXB-85058HE-0000 0108" type 1 removable SCSI 2
 st0(ahc0:5:0): Sequential-Access density code 0x0,  drive empty
 fxp0 <Intel EtherExpress Pro 10/100B Ethernet> rev 1 int a irq 11 on pci0:11:0
 fxp0: Ethernet address 00:a0:c9:10:66:40, 10Mbps
 Probing for devices on PCI bus 1:
 Probing for devices on the ISA bus:
 sc0 at 0x60-0x6f irq 1 on motherboard
 sc0: VGA color <8 virtual consoles, flags=0x0>
 sio0 at 0x3f8-0x3ff irq 4 on isa
 sio0: type 16550A
 sio1 at 0x2f8-0x2ff irq 3 on isa
 sio1: type 16550A
 lpt0 at 0x378-0x37f irq 7 on isa
 lpt0: Interrupt-driven port
 lp0: TCP/IP capable interface
 psm0 at 0x60-0x64 irq 12 on motherboard
 psm0: model MouseMan+, device ID 0
 fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
 fdc0: FIFO enabled, 8 bytes threshold
 fd0: 1.44MB 3.5in
 npx0 flags 0x1 on motherboard
 npx0: INT 16 interface
 
 >ddb trace
 _vm_map_print(f01c2a11,0,ffffffff,efbffd6c,0) at _vm_map_print+0x68
 -db_command(f01ecb24,f01ec974,f0209930,f010147a) at _db_command+0x1d1
 _db_command_loop(1,0,efbffe28,f01baecb,c) at _db_command_loop+0x62
 _db_trap(c,0) at _db_trap+0xb0
 _kdb_trap(c,0) at _db_trap+0xb0
 _trap_fatal(efbffeb0,0,f1092e00,c,f1053700) at _trap_fatal+0x2b7
 _trap_pfault(efbffeb0,0,f0b82dc8,f0915230,f0b82dd0) at _trap_pfault+0x11c
 _trap(f1c80010,efbf0010,f0b82dd0,f0b82dd0,f0915230,efbfff08) at _trap+0x2ab
 calltrap() at calltrap+0x15
 --- trap 0xc, eip = 0xf01c2a11, esp = 0xefbffeec, ebp = 0xefbfff08 ---
 _pmap_remove_all(ec24000,efbfff2c,f01b19b5,ec24000,0) at _pmap_remove_all+0x26
 _pmap_page_protect(ec24000,f064871c,f01f9614,efbfff70) at _pmap_page_protect+0x26
 _vm_page_cache(f064871c,80000000,f01f9614,241000,bc3e4) at _vm_page_cache+0x51
 _vm_pageout_scan(f01f3d50,efbfff90,f010ccaa,f1092ed7,f01b2580) at _vm_pageout+0x190
 _vm_pageout(f1092ed7,f01b2580,f01f2a34,efbfffac,f010cc48) at _vm_pageout+0x190
 _kproc_start(f01f3d50,23df00,241000,0,1) at _kproc_start+0x32
 _main(efbfffb8,efbfff4,f01c0039,f0202394,f0245000,17fff000,f01c0039,f0202394,f0245000,
       17fff000,f01c012e,30,23df00,241000,241000,1,dd880407) at _main+0xcc
 begin() at begin+0x44
 
