panic: Invalid priority <number> on timeshare runq

From: David Wolfskill <david_at_catwhisker.org>
Date: Mon, 10 Mar 2008 08:49:47 -0700
I got this on both my build machine and my laptop (each i386 arch) this
morning, though with different "<number>" values -- the build machine
had 155; the laptop had 136.  It's slightly easier for me to get the
console output from the build machine (because I didn't have the serial
console connected for my laptop during the last boot).

Note that CURRENT ran OK (modulo LORs) up to today, so I should be able
to produce a complete list of all source files that changed easily
enough.  (I'll get that list a bit later, after my laptop finishes
coming back up cleanly.)

The panic did not occur until rather late in the single-to-multi-user
transition:

/boot/kernel/acpi.ko text=0x53f4c data=0x25e0+0x186c syms=[0x4+0x8a20+0x4+0xbbc7]
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
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 8.0-CURRENT #63: Mon Mar 10 07:34:28 PDT 2008
    root_at_freebeast.catwhisker.org:/common/S4/obj/usr/src/sys/FREEBEAST
WARNING: WITNESS option enabled, expect reduced performance.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel Pentium III (846.33-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x683  Stepping = 3
  Features=0x387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory  = 2147418112 (2047 MB)
avail memory = 2093940736 (1996 MB)
ACPI APIC Table: <Intel  N440BX  >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  1
 cpu1 (AP): APIC ID:  0
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
...
Mounting local file systems:.
Setting hostname: freebeast.catwhisker.org.
net.inet6.ip6.auto_linklocal: 1 -> 0
fxp0: link state changed to UP
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 
        inet6 ::1 prefixlen 128 
        inet 127.0.0.1 netmask 0xff000000 
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8<VLAN_MTU>
        ether 00:d0:b7:a8:64:76
        inet 172.16.8.10 netmask 0xffffff00 broadcast 172.16.8.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
add net default: gateway 172.16.8.1
Additional routing options:.
Starting devd.
hw.acpi.cpu.cx_lowest: C1
sysctl: hw.acpi.cpu.cx_lowest: Invalid argument
Additional IP options:.
Mounting NFS file systems:.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat /usr/local/lib/nss /usr/local/lib/pth
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout
Clearing /tmp (X related).
Creating and/or trimming log files:.
Starting syslogd.
Checking for core dump on /dev/da0s4b...
savecore: no dumps found
Initial i386 initialization:.
Additional ABI support: linux.
Starting rpcbind.
NFS access cache time=60
Setting NIS domain: lmdhw.com.
Starting ypbind.
Starting amd.
Starting mountd.
Starting nfsd.
Starting cvsupd.
Starting local daemons:.
Starting lpd.
Updating motd.
Mounting late file systems:.
Starting ntpd.
Configuring syscons: blanktime.
Starting sshd.
Starting cron.
Local package initialization:.
panic: Invalid priority 155 on timeshare runq
cpuid = 1
KDB: enter: panic
[thread pid 718 tid 100068 ]
Stopped at      kdb_enter+0x3a: movl    $0,kdb_why
db> bt
Tracing pid 718 tid 100068 td 0xc58208c0
kdb_enter(c0af2a73,c0af2a73,c0af4976,e7a3c938,1,...) at kdb_enter+0x3a
panic(c0af4976,9b,c0af449e,183,c0c167c0,...) at panic+0x12c
sched_switch(c58208c0,0,6,184,6c4a2d63,...) at sched_switch+0x1d4
mi_switch(6,0,c0af483e,b6,0,...) at mi_switch+0x223
critical_exit(c4f20b00,0,728,c58208c0,c4f20b00,...) at critical_exit+0x99
intr_execute_handlers(c4f08f34,e7a3c9fc,e7a3ca98,c0a46a74,32,...) at intr_execute_handlers+0x14b
lapic_handle_intr(32,e7a3c9fc) at lapic_handle_intr+0x3f
Xapic_isr1() at Xapic_isr1+0x34
--- interrupt, eip = 0xc0a5da09, esp = 0xe7a3ca3c, ebp = 0xe7a3ca98 ---
generic_bzero(c1450780,0,102,c535b23c,1f,...) at generic_bzero+0x11
selfdalloc(c535b9f4,40,c4ef6300,c58208c0,c075e03c,...) at selfdalloc+0x34
kern_select(c58208c0,a,bfbfed7c,0,0,0,47d55534,bfbfec28) at kern_select+0x39a
select(c58208c0,e7a3ccfc,14,c0af8a86,c0ba9ff8,...) at select+0x5e
syscall(e7a3cd38) at syscall+0x2b3
Xint0x80_syscall() at Xint0x80_syscall+0x20
--- syscall (93, FreeBSD ELF32, select), eip = 0x28317af3, esp = 0xbfbfed5c, ebp = 0xbfbfee18 ---
db> ps
  pid  ppid  pgrp   uid   state   wmesg     wchan    cmd
  761   760    31     0  R+      CPU 0               sysctl
  760   759    31     0  S+      piperd   0xc5360610 sh
  759    31    31     0  S+      wait     0xc59992ac sh
  752     1   752     0  Ss      nanslp   0xc0c146e4 cron
  746     1   746    25  Ss      pause    0xc599a864 sendmail
  742     1   742     0  Ss      select   0xc52a58e8 sendmail
  736     1   736     0  Ss      select   0xc53027e8 sshd
  718     1   718     0  Rs                          ntpd
  694     1   694     0  Ss      select   0xc5118d68 lpd
  660     1   660  1002  Ss      select   0xc52a5168 cvsupd
  632   628   628     0  S       -        0xc529f400 nfsd
  631   628   628     0  S       -        0xc52aaa00 nfsd
  630   628   628     0  S       -        0xc52aac00 nfsd
  629   628   628     0  S       -        0xc52b9800 nfsd
  628     1   628     0  Ss      select   0xc53013e8 nfsd
  626     1   626     0  Ss      select   0xc53013a8 mountd
  587     1   587     0  Ss      select   0xc52a4de8 amd
  579     1   579     0  Ss      select   0xc5324228 ypbind
  565     1   565     0  Ss      select   0xc52eca68 rpcbind
  545     1   545     0  Ss      select   0xc52ece28 syslogd
  515     0     0     0  SL      mdwait   0xc5346800 [md0]
  475     1   475     0  Ss      select   0xc52a5768 devd
  170     1   170     0  Ss      pause    0xc581fb10 adjkerntz
   31     1    31     0  Ss+     wait     0xc5354ab0 sh
   30     0     0     0  SL      sdflush  0xc0c71710 [softdepflush]
   29     0     0     0  SL      syncer   0xc0c1450c [syncer]
   28     0     0     0  SL      vlruwt   0xc502c804 [vnlru]
   27     0     0     0  SL      psleep   0xc0c65e64 [bufdaemon]
   26     0     0     0  SL      pgzero   0xc0c72300 [pagezero]
   25     0     0     0  SL      psleep   0xc0c71f1c [vmdaemon]
   24     0     0     0  SL      psleep   0xc0c71ee4 [pagedaemon]
   23     0     0     0  SL      waiting_ 0xc0c67c0c [sctp_iterator]
   22     0     0     0  SL      -        0xc507763c [fdc0]
   21     0     0     0  SL      usbtsk   0xc0c11db4 [usbtask-dr]
   20     0     0     0  SL      usbtsk   0xc0c11da0 [usbtask-hc]
   19     0     0     0  SL      usbevt   0xc509c210 [usb0]
   18     0     0     0  SL      idle     0xc5026200 [aic_recovery1]
   17     0     0     0  SL      idle     0xc5026200 [aic_recovery1]
   16     0     0     0  SL      idle     0xc5026400 [aic_recovery0]
   15     0     0     0  SL      idle     0xc5026400 [aic_recovery0]
   14     0     0     0  SL      -        0xc4f6f100 [kqueue taskq]
    9     0     0     0  SL      -        0xc4f6f380 [thread taskq]
    8     0     0     0  SL      -        0xc4f6f400 [acpi_task_2]
    7     0     0     0  SL      -        0xc4f6f400 [acpi_task_1]
    6     0     0     0  SL      -        0xc4f6f400 [acpi_task_0]
    5     0     0     0  SL      ccb_scan 0xc0be3494 [xpt_thrd]
   13     0     0     0  SL      -        0xc0c14514 [yarrow]
    4     0     0     0  SL      -        0xc0c1250c [g_down]
    3     0     0     0  SL      -        0xc0c12508 [g_up]
    2     0     0     0  SL      -        0xc0c12500 [g_event]
   12     0     0     0  RL      (threaded)          intr
100037                   I                           [irq7: ppbus0 ppc0]
100036                   I                           [swi0: sio]
100034                   I                           [irq1: atkbd0]
100030                   I                           [irq15: ata1]
100029                   I                           [irq14: ata0]
100028                   RunQ                        [irq21: fxp0 uhci0]
100024                   I                           [irq19: ahc0 ahc1]
100022                   I                           [irq9: acpi0]
100020                   I                           [swi6: task queue]
100019                   I                           [swi6: Giant taskq]
100014                   I                           [swi5: +]
100013                   I                           [swi2: cambio]
100007                   I                           [swi3: vm]
100006                   I                           [swi4: clock sio]
100005                   I                           [swi1: net]
   11     0     0     0  RL      (threaded)          idle
100004                   CanRun                      [idle: cpu0]
100003                   CanRun                      [idle: cpu1]
    1     0     1     0  SLs     wait     0xc4f23ab0 [init]
   10     0     0     0  SL      audit_wo 0xc0c7116c [audit]
    0     0     0     0  WLs                         [swapper]
db> 

I'll leave the build machine as-is for now; I have access to its
serial console from remote locations, so as time permits during the
work day, I should be able to poke at it as necessary or advisable,
and until this evening (I'm in the US/Pacific time zone), it does
not have any critical workload.

I also have a local private mirror of the FreeBSD CVS repository handy,
and am reasonably comfortable hacking sources, given a bit of direction.

Peace,
david
-- 
David H. Wolfskill				david_at_catwhisker.org
I submit that "conspiracy" would be an appropriate collective noun for cats.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Received on Mon Mar 10 2008 - 14:49:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:28 UTC