From nobody@FreeBSD.org  Wed Sep 22 18:38:06 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D650816A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Sep 2004 18:38:06 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B14E843D5E
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Sep 2004 18:38:06 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8MIc60w074439
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 22 Sep 2004 18:38:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i8MIc6DN074437;
	Wed, 22 Sep 2004 18:38:06 GMT
	(envelope-from nobody)
Message-Id: <200409221838.i8MIc6DN074437@www.freebsd.org>
Date: Wed, 22 Sep 2004 18:38:06 GMT
From: James William Pye <flaw@rhid.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [panic] clist reservation botch
X-Send-Pr-Version: www-2.3

>Number:         72007
>Category:       kern
>Synopsis:       [panic] clist reservation botch [4.10]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    linimon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 22 18:40:23 GMT 2004
>Closed-Date:    Thu May 03 10:09:25 GMT 2007
>Last-Modified:  Thu May 03 10:09:25 GMT 2007
>Originator:     James William Pye
>Release:        4.10-STABLE
>Organization:
rhid development
>Environment:
FreeBSD void 4.10-STABLE FreeBSD 4.10-STABLE #2: Thu Sep  9 22:15:43 MST 2004     root@void:/files/src/freebsd/RELENG_4/sys/compile/void  i386
>Description:
Occasional panic in cblock_alloc, /sys/kern/tty_subr.c

Sorry, this and some references is all I have for you.

When I get more information I will provide it. Please DO NOT close this
under a feedback timeout! Others have had this problem, perhaps from
different sources. Also note that it is normally infrequent
so it might be a month or two before I can give more information.

Sadly, my virtual memory is less than my physical memory, thus causing:

dumpon: sysctl: kern.dumpdev: No space left on device

Anyway to remedy this without altering partition sizes?


Some googling shows that others have had this problem:

http://yoichi.geiin.org/d/?date=0426
   Can't read it, except the panic message.

http://adam.kungfoohampster.com/lists/freebsd-questions/msg08491.shtml
   A short thread.

http://lists.freebsd.org/pipermail/freebsd-current/2004-January/018523.html
   Perhaps the most useful, with a traceback from a core.(5.2)

http://docs.freebsd.org/cgi/mid.cgi?Pine.NEB.3.96L.1020423214839.55944J-100000

http://www.freebsd.org/cgi/query-pr.cgi?pr=61191
http://www.freebsd.org/cgi/query-pr.cgi?pr=43314
   Duplicates?



Kernel config:

ident    void
maxusers 0

machine  i386

cpu      I686_CPU
options  CPU_ENABLE_SSE
#options CPU_SUSP_HLT

#options DEBUG
#makeoptions   DEBUG=-g    #Build kernel with gdb(1) debug symbols
#makeoptions CONF_CFLAGS=-fno-builtin

options     INCLUDE_CONFIG_FILE
options     KTRACE
options     COMPAT_43       #Compatible with BSD 4.3 [KEEP THIS!]
options     UCONSOLE        #Allow users to grab the console
options     USERCONFIG      #boot -c editor
options     VISUAL_USERCONFIG   #visual boot -c editor
options     ICMP_BANDLIM        #Rate limit bad replies

options     P1003_1B
options     _KPOSIX_PRIORITY_SCHEDULING

options     KBD_INSTALL_CDEV    # install a CDEV entry in /dev
options     AHC_REG_PRETTY_PRINT

device   agp
device   radeondrm
device bktr0

# Allow applications running in user space to control the Local Descriptor
# Table (LDT).  This is required by some ports.  Future versions of FreeBSD
# may require this option for some programs in the base system.
options  USER_LDT        #allow user-level control of i386 ldt


# System V shared memory and tunable parameters
options  SYSVSHM     # include support for shared memory
options  SHMMAXPGS=1025  # max amount of shared memory pages (4k on i386)
options  SHMALL=1025 # max amount of shared memory (bytes)
options  SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)"

# max shared memory segment size (bytes)
options  SHMMIN=2    # min shared memory segment size (bytes)
options  SHMMNI=66   # max number of shared memory identifiers
options  SHMSEG=9    # max shared memory segments per process

# System V semaphores and tunable parameters
options  SYSVSEM     # include support for semaphores
options  SEMMAP=31   # amount of entries in semaphore map
options  SEMMNI=120  # number of semaphore identifiers in the system
options  SEMMNS=120  # number of semaphores in the system
options  SEMMNU=31   # number of undo structures in the system
options  SEMMSL=61   # max number of semaphores per id
options  SEMOPM=101  # max number of operations per semop call
options  SEMUME=11   # max number of undo entries per process

options  SYSVMSG     # include support for message queues
options  MSGMNB=2049 # max characters per message queue
options  MSGMNI=41   # max number of message queue identifiers
options  MSGSEG=2049 # max number of message segments in the system
options  MSGSSZ=16   # size of a message segment MUST be power of 2
options  MSGTQL=41   # max amount of messages in the system


options  FFS         #Berkeley Fast Filesystem
options  FFS_ROOT    #FFS usable as root device [keep this!]
options  PROCFS

options  SOFTUPDATES    #Enable FFS soft updates support
options  UFS_DIRHASH


options  MFS         #Memory Filesystem
options  MD_ROOT        #MD is a potential root device

options  NFS
options  NFS_ROOT
options  NFS_NOSERVER

options  CD9660
options  CD9660_ROOT

options  FDESC
options  KERNFS
options  NULLFS


#NETWORKING

options  INET            #InterNETworking
options  INET6           #IPv6 communications protocols
options  RANDOM_IP_ID
options  IPSEC           #IP security
options  IPSEC_ESP       #IP security (crypto; define w/ IPSEC)

options  IPFIREWALL
options  IPFIREWALL_FORWARD
options  IPDIVERT
options  DUMMYNET #depends on IPFIREWALL
options  IPFIREWALL_VERBOSE
options  IPFIREWALL_VERBOSE_LIMIT=100


device   eisa
device   pci
device   isa


# Floppy drives
device      fdc0  at isa? port IO_FD1 irq 6 drq 2
device      fd0   at fdc0 drive 0


# ATA and ATAPI devices

device      ata0  at isa? port IO_WD1 irq 14
device      ata1  at isa? port IO_WD2 irq 15
device      ata
device      atadisk        # ATA disk drives
device      atapicd        # ATAPI CDROM drives
device      atapifd        # ATAPI floppy drives
device      atapist        # ATAPI tape drives
options     ATA_STATIC_ID     #Static device numbering

# SCSI stuff demanded by umass
device      scbus    # SCSI bus (required)
device      da    # Direct Access (disks)
device      sa    # Sequential Access (tape etc)
device      cd    # CD
device      pass     # Passthrough device (direct SCSI access)

# atkbdc0 controls both the keyboard and the PS/2 mouse
device      atkbdc0  at isa? port IO_KBD
device      atkbd0   at atkbdc? irq 1 flags 0x1
device      psm0  at atkbdc? irq 12

device      vga0  at isa?

pseudo-device  splash

# syscons is the default console driver, resembling an SCO console
device   sc0   at isa? flags 0x100
options  SC_ALT_MOUSE_IMAGE

options  SC_NORM_ATTR="(FG_WHITE|BG_BLACK)"
options  SC_NORM_REV_ATTR="(FG_BLACK|BG_LIGHTGREY)"
options  SC_KERNEL_CONS_ATTR="(FG_RED|BG_BLACK)"
options  SC_KERNEL_CONS_REV_ATTR="(FG_BLACK|BG_LIGHTGREY)"
options  SC_HISTORY_SIZE=400

# Floating point support - do not disable.
device      npx0  at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device      apm0    at nexus? disable flags 0x20 # Advanced Power Management

# Serial (COM) ports
device      sio0  at isa? port IO_COM1 flags 0x10 irq 4
device      sio1  at isa? port IO_COM2 irq 3
# Parallel port
device      ppc0  at isa? irq 7
device      ppbus    # Parallel port bus (required)
device      lpt      # Printer
device      plip     # TCP/IP over parallel
device      ppi      # Parallel port interface device


device      miibus      # MII bus support

device      dc    # DEC/Intel 21143 and various workalikes
device      sis   # Silicon Integrated Systems SiS 900/SiS 7016

pseudo-device  speaker
pseudo-device  loop     # Network loopback
pseudo-device  ether    # Ethernet support
pseudo-device  ppp 1    # Kernel PPP
pseudo-device  tun      # Packet tunnel.
pseudo-device  pty      # Pseudo-ttys (telnet etc)
pseudo-device  snp 3    # snoop devices
pseudo-device  md       # Memory "disks"
pseudo-device  gif   2  # IPv6 and IPv4 tunneling
pseudo-device  faith 1  # IPv6-to-IPv4 relaying (translation)

pseudo-device  bpf      #Berkeley packet filter
device      uhci     # UHCI PCI->USB interface
device      ohci     # OHCI PCI->USB interface
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      uscanner # Scanners


part of dmesg after panic:

> panic: clist reservation botch
> 
> syncing disks... 17 1 
> Copyright (c) 1992-2004 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.10-STABLE #2: Thu Sep  9 22:15:43 MST 2004
>     root@void:/files/src/freebsd/RELENG_4/sys/compile/void
> Timecounter "i8254"  frequency 1193182 Hz
> CPU: AMD Duron(tm) Processor (1294.50-MHz 686-class CPU)
>   Origin = "AuthenticAMD"  Id = 0x671  Stepping = 1
>   Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
>   AMD Features=0xc0400000<AMIE,DSP,3DNow!>
> real memory  = 536805376 (524224K bytes)
> avail memory = 518070272 (505928K bytes)
> Preloaded elf kernel "kernel" at 0xc041b000.
> Preloaded elf module "linux.ko" at 0xc041b09c.
> Preloaded elf module "snd_ich.ko" at 0xc041b13c.
> Preloaded elf module "snd_pcm.ko" at 0xc041b1dc.
> Pentium Pro MTRR support enabled
> md0: Malloc disk
> Using $PIR table, 9 entries at 0xc00f78c0
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> pcib0: <Host to PCI bridge> on motherboard
> pci0: <PCI bus> on pcib0
> agp0: <SIS Generic host to PCI bridge> mem 0xd0000000-0xd3ffffff at device 0.0 on pci0
> pcib2: <PCI to PCI bridge (vendor=1039 device=0001)> at device 1.0 on pci0
> pci1: <PCI bus> on pcib2
> drm0: <ATI Radeon If R250 9000> port 0x9800-0x98ff mem 0xcfdf0000-0xcfdfffff,0xc8000000-0xcbffffff irq 0 at device 0.0 on pci1
> info: [drm] AGP at 0xd0000000 64MB
> info: [drm] Initialized radeon 1.8.0 20020828 on minor 0
> pci1: <ATI model 496e graphics accelerator> at 0.1
> isab0: <SiS 85c503 PCI-ISA bridge> at device 2.0 on pci0
> isa0: <ISA bus> on isab0
> ohci0: <SiS 5571 USB controller> mem 0xcfffe000-0xcfffefff irq 12 at device 2.2 on pci0
> usb0: OHCI version 1.0, legacy support
> usb0: <SiS 5571 USB controller> on ohci0
> usb0: USB revision 1.0
> uhub0: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 3 ports with 3 removable, self powered
> ohci1: <SiS 5571 USB controller> mem 0xcffff000-0xcfffffff irq 5 at device 2.3 on pci0
> usb1: OHCI version 1.0, legacy support
> usb1: <SiS 5571 USB controller> on ohci1
> usb1: USB revision 1.0
> uhub1: SiS OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub1: 3 ports with 3 removable, self powered
> atapci0: <SiS 5591 ATA100 controller> port 0xff00-0xff0f at device 2.5 on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> pcm0: <SiS 7012> port 0xd800-0xd83f,0xdc00-0xdcff irq 10 at device 2.7 on pci0
> pcm0: <C-Media Electronics CMI9738 AC97 Codec>
> sis0: <SiS 900 10/100BaseTX> port 0xd400-0xd4ff mem 0xcfffd000-0xcfffdfff irq 15 at device 3.0 on pci0
> sis0: Ethernet address: 00:0a:e6:a7:1a:5a
> miibus0: <MII bus> on sis0
> rlphy0: <RTL8201L 10/100 media interface> on miibus0
> rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> dc0: <ADMtek AN985 10/100BaseTX> port 0xd000-0xd0ff mem 0xcfffcc00-0xcfffcfff irq 10 at device 13.0 on pci0
> dc0: Ethernet address: 00:04:5a:89:0e:a7
> miibus1: <MII bus> on dc0
> ukphy0: <Generic IEEE 802.3u media interface> on miibus1
> ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> dc1: <82c169 PNIC 10/100BaseTX> port 0xcc00-0xccff mem 0xcfffcb00-0xcfffcbff irq 12 at device 15.0 on pci0
> dc1: Ethernet address: 00:02:e3:08:39:30
> miibus2: <MII bus> on dc1
> ukphy1: <Generic IEEE 802.3u media interface> on miibus2
> ukphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> uhci0: <VIA 83C572 USB controller> port 0xc400-0xc41f irq 11 at device 19.0 on pci0
> usb2: <VIA 83C572 USB controller> on uhci0
> 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
> uhub3: Mitsumi Electric Hub in Apple Extended USB Keyboard, class 9/0, rev 1.10/1.22, addr 2
> uhub3: 3 ports with 2 removable, bus powered
> ukbd0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 3, iclass 3/1
> kbd1 at ukbd0
> uhid0: Mitsumi Electric Apple Extended USB Keyboard, rev 1.10/1.22, addr 3, iclass 3/0
> ums0: B16_b_02 USB-PS/2 Optical Mouse, rev 2.00/98.02, addr 4, iclass 3/1
> ums0: 4 buttons and Z dir.
> uhci1: <VIA 83C572 USB controller> port 0xc800-0xc81f irq 11 at device 19.1 on pci0
> usb3: <VIA 83C572 USB controller> on uhci1
> usb3: USB revision 1.0
> uhub4: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub4: 2 ports with 2 removable, self powered
> pci0: <USB controller> at 19.2 irq 10
> pcib1: <SiS 5591 host to AGP bridge> on motherboard
> pci2: <PCI bus> on pcib1
> orm0: <Option ROMs> at iomem 0xc0000-0xcafff,0xcb000-0xd2fff on isa0
> pmtimer0 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> flags 0x1 irq 1 on atkbdc0
> kbd0 at atkbd0
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
> sio0: type 16550A
> sio1 at port 0x2f8-0x2ff irq 3 on isa0
> sio1: type 16550A
> ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
> ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
> ppi0: <Parallel I/O> on ppbus0
> plip0: <PLIP network interface> on ppbus0
> lpt0: <Printer> on ppbus0
> lpt0: Interrupt-driven port
> DUMMYNET initialized (011031)
> IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, logging limited to 100 packets/entry by default
> IPsec: Initialized Security Association Processing.
> ad0: 9787MB <QUANTUM FIREBALLlct10 10> [19885/16/63] at ata0-master UDMA66
> acd0: CD-RW <LITE-ON LTR-52246S> at ata0-slave PIO4
> Mounting root from ufs:/dev/ad0s1a
> WARNING: / was not properly dismounted
> dumpon: 
> sysctl: kern.dumpdev
> : 
> No space left on device
> swapon: adding /dev/ad0s1b as swap device
> Automatic boot in progress...
>How-To-Repeat:
moon phase has to be just so.
>Fix:
unknown
>Release-Note:
>Audit-Trail:

From: Simon Walton <simonw@matteworld.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/72007: [panic] clist reservation botch [4.10]
Date: Mon, 16 May 2005 13:58:19 -0700

    Also seen here on a dual-Xeon machine running 4.10:
 
 GNU gdb 4.18 (FreeBSD)
 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"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs
 Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf
 
 SMP 4 cpus
 IdlePTD at physical address 0x005dd000
 initial pcb at physical address 0x00503700
 panicstr: clist reservation botch
 panic messages:
 ---
 panic: clist reservation botch
 mp_lock = 00000001; cpuid = 0; lapic.id = 00000000
 boot() called on cpu#0
 
 syncing disks... 
 done
 Uptime: 3d2h41m3s
 
 dumping to dev #da/0x20001, offset 2065440
 dump 1023 852 681 510 339 168 failed. Error was Socket is not connected 
 ---
 #0  dumpsys () at ../../kern/kern_shutdown.c:487
 487             if (dumping++) {
 (kgdb) bt
 #0  dumpsys () at ../../kern/kern_shutdown.c:487
 #1  0xc024a00c in boot (howto=256) at ../../kern/kern_shutdown.c:316
 #2  0xc024a474 in poweroff_wait (junk=0xc046d5a4, howto=-1068710048)
     at ../../kern/kern_shutdown.c:595
 #3  0xc0264f15 in cblock_free_cblocks (number=6) at ../../kern/tty_subr.c:103
 #4  0xc0264f6d in clist_free_cblocks (clistp=0xc3857e1c) at ../../kern/tty_subr.c:208
 #5  0xc025ff66 in ttyclose (tp=0xc3857e00) at ../../kern/tty.c:246
 #6  0xc03b6312 in sioclose (dev=0xc32d6600, flag=7, mode=8192, p=0xe929b2a0)
     at ../../isa/sio.c:1669
 #7  0xc028566b in spec_close (ap=0xe92d4e40) at ../../miscfs/specfs/spec_vnops.c:591
 #8  0xc033dca2 in ufsspec_close (ap=0xe92d4e40) at ../../ufs/ufs/ufs_vnops.c:1854
 #9  0xc033e2d9 in ufs_vnoperatespec (ap=0xe92d4e40) at ../../ufs/ufs/ufs_vnops.c:2394
 #10 0xc0280f64 in vn_close (vp=0xe974db40, flags=7, cred=0xc1edc900, p=0xe929b2a0)
     at vnode_if.h:218
 #11 0xc0281902 in vn_closefile (fp=0xc37fd240, p=0xe929b2a0) at ../../kern/vfs_vnops.c:693
 #12 0xc023f800 in fdrop (fp=0xc37fd240, p=0xe929b2a0) at ../../sys/file.h:218
 #13 0xc023f744 in closef (fp=0xc37fd240, p=0xe929b2a0) at ../../kern/kern_descrip.c:1441
 #14 0xc023e853 in close (p=0xe929b2a0, uap=0xe92d4f80) at ../../kern/kern_descrip.c:623
 #15 0xc03a4ad9 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077936672, 
       tf_esi = -1077936680, tf_ebp = -1077936816, tf_isp = -382906412, tf_ebx = 1, 
       tf_edx = -1077936824, tf_ecx = 16, tf_eax = 6, tf_trapno = 7, tf_err = 2, 
       tf_eip = 672010512, tf_cs = 31, tf_eflags = 643, tf_esp = -1077936860, tf_ss = 47})
     at ../../i386/i386/trap.c:1175
 #16 0xc038efbb in Xint0x80_syscall ()
 #17 0x804887e in ?? ()
 #18 0x8048656 in ?? ()
 (kgdb)
 
 
 
Problem started occuring after USB serial adapters were added to the
system. This dump was instigated by a regular serial line, but others
have been caused by the USB serial driver. I tried updating the USB
subsystem to the lastest version but it didn't help.
 
 Simon Walton
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Sat Apr 28 09:15:59 UTC 2007 
State-Changed-Why:  
Does this problem still recur with 6.2? 


Responsible-Changed-From-To: freebsd-bugs->linimon 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Apr 28 09:15:59 UTC 2007 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=72007 
State-Changed-From-To: feedback->closed 
State-Changed-By: linimon 
State-Changed-When: Thu May 3 10:08:49 UTC 2007 
State-Changed-Why:  
Submitter's email times out. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=72007 
>Unformatted:
