Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Sep 2007 16:38:20 +1000
From:      Peter Kostouros <kpeter@melbpc.org.au>
To:        freebsd-current@FreeBSD.ORG
Subject:   [panic] sched_priority: invalid interactive priority 124 score -4
Message-ID:  <46F609DC.3070809@melbpc.org.au>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi

I received the abovementioned panic on a system csup'ed and build a few 
hours ago and have attached a debug session I hope will help.

Note that I am using the ULE scheduler: version of sched_ule.c is 1.208 
(2007/09/22).

Let me know if I can provide further information.

-- 

Regards

Peter

As always the organisation disavows knowledge of this email


[-- Attachment #2 --]
--- GENERIC	2007-07-14 10:52:03.000000000 +1000
+++ BARON	2007-09-15 21:52:05.000000000 +1000
@@ -18,17 +18,16 @@
 #
 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.473 2007/07/01 21:47:45 njl Exp $
 
-cpu		I486_CPU
-cpu		I586_CPU
 cpu		I686_CPU
-ident		GENERIC
+ident		BARON
 
 # To statically compile in device wiring instead of /boot/device.hints
 #hints		"GENERIC.hints"		# Default places to look for devices.
 
 makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
 
-options 	SCHED_4BSD		# 4BSD scheduler
+#options 	SCHED_4BSD		# 4BSD scheduler
+options         SCHED_ULE
 options 	PREEMPTION		# Enable kernel thread preemption
 options 	INET			# InterNETworking
 options 	INET6			# IPv6 communications protocols
@@ -305,9 +304,46 @@
 device		rue		# RealTek RTL8150 USB Ethernet
 
 # FireWire support
-device		firewire	# FireWire bus code
-device		sbp		# SCSI over FireWire (Requires scbus and da)
-device		fwe		# Ethernet over FireWire (non-standard!)
-device		fwip		# IP over FireWire (RFC 2734,3146)
-device		dcons		# Dumb console driver
-device		dcons_crom	# Configuration ROM for dcons
+#device		firewire	# FireWire bus code
+#device		sbp		# SCSI over FireWire (Requires scbus and da)
+#device		fwe		# Ethernet over FireWire (non-standard!)
+#device		fwip		# IP over FireWire (RFC 2734,3146)
+#device		dcons		# Dumb console driver
+#device		dcons_crom	# Configuration ROM for dcons
+
+#
+# BARON
+#
+device          sound
+device          snd_emu10kx
+
+#
+# Options to enable ATAPI devices access through SCSI subsystem 
+#
+device          atapicam
+device          ata
+device          scbus
+device          cd
+device          pass
+
+#
+# Alternate queuing of network packets
+#
+options         ALTQ
+options         ALTQ_CBQ
+options         ALTQ_RED
+options         ALTQ_RIO
+options         ALTQ_HFSC
+options         ALTQ_CDNR
+options         ALTQ_PRIQ
+options         ALTQ_NOPCC
+options         ALTQ_DEBUG
+
+#
+# Kernel tracing
+#
+options         KTR
+options         ALQ
+options         KTR_ALQ
+options         KTR_ENTRIES=131072
+options         KTR_COMPILE=(KTR_LOCK|KTR_PROC|KTR_INTR|KTR_CALLOUT|KTR_UMA|KTR_SYSC)

[-- Attachment #3 --]
Script started on Sun Sep 23 13:33:31 2007
baron# kgdb -c /var/charash/vmvmcore.164 -f /boot/kernel/kernel

[GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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-marcel-freebsd".

Unread portion of the kernel message buffer:
panic: sched_priority: invalid interactive priority 124 score -4
cpuid = 0
Uptime: 11m1s
Physical memory: 1003 MB
Dumping 112 MB: (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  97 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  81 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  65 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  49 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  33 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  17 (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  (CTRL-C to abort)  1

#0  doadump () at pcpu.h:195
195	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) where
#0  doadump () at pcpu.h:195
#1  0xc078405e in boot (howto=260) at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_shutdown.c:409
#2  0xc0784320 in panic (fmt=Variable "fmt" is not available.
) at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_shutdown.c:563
#3  0xc07a1afb in sched_priority (td=0xc4b28880) at /mnt/cvs/FreeBSD/usr/src/sys/kern/sched_ule.c:1418
#4  0xc07a3457 in sched_nice (p=0xc4b27aa0, nice=4) at /mnt/cvs/FreeBSD/usr/src/sys/kern/sched_ule.c:1909
#5  0xc0781259 in donice (td=0xc4b28880, p=0xc4b27aa0, n=4) at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_resource.c:267
#6  0xc0781310 in setpriority (td=0xc4b28880, uap=0xe4e7fcfc) at /mnt/cvs/FreeBSD/usr/src/sys/kern/kern_resource.c:187
#7  0xc0a41953 in syscall (frame=0xe4e7fd38) at /mnt/cvs/FreeBSD/usr/src/sys/i386/i386/trap.c:1008
#8  0xc0a28070 in Xint0x80_syscall () at /mnt/cvs/FreeBSD/usr/src/sys/i386/i386/exception.s:196
#9  0x00000033 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) up 3
#3  0xc07a1afb in sched_priority (td=0xc4b28880) at /mnt/cvs/FreeBSD/usr/src/sys/kern/sched_ule.c:1418
/mnt/cvs/FreeBSD/usr/src/sys/kern/sched_ule.c:1418:37743:beg:0xc07a1afb
(kgdb) l
1413		score = sched_interact_score(td) - td->td_proc->p_nice;
1414		if (score < sched_interact) {
1415			pri = PRI_MIN_REALTIME;
1416			pri += ((PRI_MAX_REALTIME - PRI_MIN_REALTIME) / sched_interact)
1417			    * score;
1418			KASSERT(pri >= PRI_MIN_REALTIME && pri <= PRI_MAX_REALTIME,
1419			    ("sched_priority: invalid interactive priority %d score %d",
1420			    pri, score));
1421		} else {
1422			pri = SCHED_PRI_MIN;
(kgdb) p td
$1 = (struct thread *) 0xc4b28880
(kgdb) p td*
$2 = {td_lock = 0xc127fb00, td_proc = 0xc4b27aa0, td_plist = {tqe_next = 0x0, tqe_prev = 0xc4b27aa8}, td_slpq = {tqe_next = 0x0, 
    tqe_prev = 0xc4707330}, td_lockq = {tqe_next = 0x0, tqe_prev = 0xe708fa18}, td_selq = {tqh_first = 0x0, tqh_last = 0xc4b288a0}, 
  td_sleepqueue = 0xc4707330, td_turnstile = 0xc4712d70, td_umtxq = 0xc4b2a300, td_tid = 100052, td_sigqueue = {sq_signals = {__bits = {
        0, 0, 0, 0}}, sq_kill = {__bits = {0, 0, 0, 0}}, sq_list = {tqh_first = 0x0, tqh_last = 0xc4b288d8}, sq_proc = 0xc4b27aa0, 
    sq_flags = 1}, td_flags = 65542, td_inhibitors = 0, td_pflags = 0, td_dupfd = 0, td_sqqueue = 0, td_wchan = 0x0, td_wmesg = 0x0, 
  td_lastcpu = 0 '\0', td_oncpu = 0 '\0', td_owepreempt = 0 '\0', td_locks = 1, td_tsqueue = 0 '\0', td_blocked = 0x0, td_lockname = 0x0, 
  td_contested = {lh_first = 0x0}, td_sleeplocks = 0xc12c9128, td_intr_nesting_level = 0, td_pinned = 2, td_mailbox = 0x0, 
  td_ucred = 0xc46ed500, td_standin = 0x0, td_upcall = 0x0, td_estcpu = 0, td_slptick = 0, td_ru = {ru_utime = {tv_sec = 0, tv_usec = 0}, 
    ru_stime = {tv_sec = 0, tv_usec = 0}, ru_maxrss = 316, ru_ixrss = 4, ru_idrss = 4, ru_isrss = 128, ru_minflt = 78, ru_majflt = 0, 
    ru_nswap = 0, ru_inblock = 0, ru_oublock = 0, ru_msgsnd = 0, ru_msgrcv = 0, ru_nsignals = 0, ru_nvcsw = 2, ru_nivcsw = 0}, 
  td_runtime = 3545268, td_pticks = 0, td_sticks = 1, td_iticks = 0, td_uticks = 0, td_uuticks = 0, td_usticks = 0, td_intrval = 0, 
  td_oldsigmask = {__bits = {0, 0, 0, 0}}, td_sigmask = {__bits = {0, 0, 0, 0}}, td_generation = 2, td_sigstk = {ss_sp = 0x0, 
    ss_size = 0, ss_flags = 4}, td_kflags = 0, td_xsig = 0, td_profil_addr = 0, td_profil_ticks = 0, td_name = '\0' <repeats 19 times>, 
  td_base_pri = 128 '\200', td_priority = 128 '\200', td_pri_class = 3 '\003', td_user_pri = 128 '\200', td_base_user_pri = 128 '\200', 
  td_pcb = 0xe4e7fd90, td_state = TDS_RUNNING, td_retval = {0, 102}, td_slpcallout = {c_links = {sle = {sle_next = 0x0}, tqe = {
        tqe_next = 0x0, tqe_prev = 0xd8714be8}}, c_time = 591475, c_arg = 0xc4b28880, c_func = 0xc07b5f80 <sleepq_timeout>, c_mtx = 0x0, 
    c_flags = 18}, td_frame = 0xe4e7fd38, td_kstack_obj = 0xc1c5f2d0, td_kstack = 3840401408, td_kstack_pages = 2, 
  td_altkstack_obj = 0x0, td_altkstack = 0, td_altkstack_pages = 0, td_critnest = 2, td_md = {md_spinlock_count = 2, 
    md_saved_flags = 582}, td_sched = 0xc4b28a64, td_ar = 0x0, td_syscalls = 7073}
(kgdb) p *td->td_proc)(
$3 = {p_list = {le_next = 0xc4b27000, le_prev = 0xc4b277f8}, p_threads = {tqh_first = 0xc4b28880, tqh_last = 0xc4b28888}, p_upcalls = {
    tqh_first = 0x0, tqh_last = 0xc4b27ab0}, p_slock = {lock_object = {lo_name = 0xc0adcfa1 "process slock", 
      lo_type = 0xc0adcfa1 "process slock", lo_flags = 720896, lo_witness_data = {lod_list = {stqe_next = 0x0}, lod_witness = 0x0}}, 
    mtx_lock = 3300034688, mtx_recurse = 0}, p_ucred = 0xc46ed500, p_fd = 0xc4b91200, p_fdtol = 0x0, p_stats = 0xc4b1e800, 
  p_limit = 0xc5bf4200, p_limco = {c_links = {sle = {sle_next = 0x0}, tqe = {tqe_next = 0x0, tqe_prev = 0x0}}, c_time = 0, c_arg = 0x0, 
    c_func = 0, c_mtx = 0xc4b27b30, c_flags = 0}, p_sigacts = 0xc713b000, p_flag = 268451842, p_state = PRS_NORMAL, p_pid = 22000, 
  p_hash = {le_next = 0x0, le_prev = 0xc47027c0}, p_pglist = {le_next = 0xc4c46aa0, le_prev = 0xc5efc078}, p_pptr = 0xc5efc000, 
  p_sibling = {le_next = 0x0, le_prev = 0xc5efc08c}, p_children = {lh_first = 0x0}, p_mtx = {lock_object = {
      lo_name = 0xc0adcf94 "process lock", lo_type = 0xc0adcf94 "process lock", lo_flags = 21168128, lo_witness_data = {lod_list = {
          stqe_next = 0xc128ca00}, lod_witness = 0xc128ca00}}, mtx_lock = 3300034688, mtx_recurse = 0}, p_ksi = 0xc4adddc0, p_sigqueue = {
    sq_signals = {__bits = {0, 0, 0, 0}}, sq_kill = {__bits = {0, 0, 0, 0}}, sq_list = {tqh_first = 0x0, tqh_last = 0xc4b27b6c}, 
    sq_proc = 0xc4b27aa0, sq_flags = 1}, p_oppid = 0, p_vmspace = 0xc47169f8, p_swtick = 600010, p_realtimer = {it_interval = {
      tv_sec = 0, tv_usec = 0}, it_value = {tv_sec = 0, tv_usec = 0}}, p_ru = {ru_utime = {tv_sec = 0, tv_usec = 0}, ru_stime = {
      tv_sec = 0, tv_usec = 0}, ru_maxrss = 0, ru_ixrss = 0, ru_idrss = 0, ru_isrss = 0, ru_minflt = 0, ru_majflt = 0, ru_nswap = 0, 
    ru_inblock = 0, ru_oublock = 0, ru_msgsnd = 0, ru_msgrcv = 0, ru_nsignals = 0, ru_nvcsw = 0, ru_nivcsw = 0}, p_rux = {
    rux_runtime = 0, rux_uticks = 0, rux_sticks = 0, rux_iticks = 0, rux_uu = 0, rux_su = 0, rux_tu = 0}, p_crux = {
    rux_runtime = 6776420, rux_uticks = 0, rux_sticks = 0, rux_iticks = 0, rux_uu = 0, rux_su = 0, rux_tu = 0}, p_profthreads = 0, 
  p_exitthreads = 0, p_traceflag = 0, p_tracevp = 0x0, p_tracecred = 0x0, p_textvp = 0xc6c99330, p_lock = 0 '\0', p_sigiolst = {
    slh_first = 0x0}, p_sigparent = 20, p_sig = 0, p_code = 0, p_stops = 0, p_stype = 0, p_step = 0 '\0', p_pfsflags = 0 '\0', 
  p_nlminfo = 0x0, p_aioinfo = 0x0, p_singlethread = 0x0, p_suspcount = 0, p_xthread = 0x0, p_boundary_count = 0, p_pendingcnt = 0, 
  p_itimers = 0x0, p_numupcalls = 0, p_upsleeps = 0, p_completed = 0x0, p_nextupcall = 0, p_upquantum = 0, p_magic = 3203398350, 
  p_comm = "nice\000er", '\0' <repeats 12 times>, p_pgrp = 0xc5a74b40, p_sysent = 0xc0bbfd20, p_args = 0xc596c1a0, 
  p_cpulimit = 9223372036854775807, p_nice = 4 '\004', p_xstat = 0, p_klist = {kl_list = {slh_first = 0x0}, 
    kl_lock = 0xc075c7b0 <knlist_mtx_lock>, kl_unlock = 0xc075c7e0 <knlist_mtx_unlock>, kl_locked = 0xc075fbc0 <knlist_mtx_locked>, 
    kl_lockarg = 0xc4b27b30}, p_numthreads = 1, p_md = {md_ldt = 0x0}, p_itcallout = {c_links = {sle = {sle_next = 0x0}, tqe = {
        tqe_next = 0x0, tqe_prev = 0x0}}, c_time = 0, c_arg = 0x0, c_func = 0, c_mtx = 0x0, c_flags = 16}, p_acflag = 0, p_peers = 0x0, 
  p_leader = 0xc4b27aa0, p_emuldata = 0x0, p_label = 0x0, p_sched = 0xc4b27d48, p_ktr = {stqh_first = 0x0, stqh_last = 0xc4b27d3c}, 
  p_mqnotifier = {lh_first = 0x0}}
(kgdb) quit
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46F609DC.3070809>