Date: 3 Mar 2004 13:16:55 -0000 From: itetcu@apropo.ro To: freebsd-current@freebsd.org Subject: panic: Negative nice count. at line 414 in file /usr/src/sys/kern/sched_ule.c Message-ID: <20040303131655.24317.qmail@apropo.ro>
next in thread | raw e-mail | index | archive | help
---- Exuse formating --> webmail. bl.spamcop.net and so mx1.freebsd.org is nicely blocking a major .ro ISP ---- Hi, I got the system dropping to debugger when running portsdb -Uu and I did a rtprio 16 on a make -B describe DIRPRFX=archivers/. itetcu@it> /usr/src/sys/i386/conf [13:18:42] 0 # ident /usr/src/sys/kern/sched_ule.c /usr/src/sys/kern/sched_ule.c: $FreeBSD: src/sys/kern/sched_ule.c,v 1.99 2004/02/01 10:38:13 jeff Exp $ Is this fixed in /src/sys/kern/sched_ule.c v1.100, 2004/02/27 ? All references about this that I could find where from April 2003. itetcu@it> /home/itetcu/projects/vmcores [12:32:27] 0 # gdb -k KSE1_2003_02_12.debug vmcore.5 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 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-undermydesk-freebsd\"... panic: Negative nice count. panic messages: --- panic: Negative nice count. at line 414 in file /usr/src/sys/kern/sched_ule.c cpuid = 0; Debugger(\"panic\") Dumping 511 MB 16 32 48[CTRL-C to abort] [CTRL-C to abort] [CTRL-C to abort] 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320 336 352 368 384 400 416 432 448 464 480 496 --- Reading symbols from /usr/obj/usr/src/sys/KSE1/modules/usr/src/sys/modules/ipfw/ipfw.ko.debug.. .done. Loaded symbols for /usr/obj/usr/src/sys/KSE1/modules/usr/src/sys/modules/ipfw/ipfw.ko.debug Reading symbols from /boot/kernel/if_rl.ko...done. Loaded symbols for /boot/kernel/if_rl.ko Reading symbols from /boot/kernel/miibus.ko...done. Loaded symbols for /boot/kernel/miibus.ko Reading symbols from /boot/kernel/snd_via8233.ko...done. Loaded symbols for /boot/kernel/snd_via8233.ko Reading symbols from /boot/kernel/snd_pcm.ko...done. Loaded symbols for /boot/kernel/snd_pcm.ko Reading symbols from /usr/obj/usr/src/sys/KSE1/modules/usr/src/sys/modules/dummynet/dummynet.ko.debug...done. Loaded symbols for /usr/obj/usr/src/sys/KSE1/modules/usr/src/sys/modules/dummynet/dummynet. ko.debug Reading symbols from /boot/kernel/acpi.ko...done. Loaded symbols for /boot/kernel/acpi.ko Reading symbols from /boot/kernel/logo_saver.ko...done. Loaded symbols for /boot/kernel/logo_saver.ko Reading symbols from /usr/obj/usr/src/sys/KSE1/modules/usr/src/sys/modules/linux/linux.ko. debug...done. Loaded symbols for /usr/obj/usr/src/sys/KSE1/modules/usr/src/sys/modules/linux/linux.ko.debug #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 240 dumping++; (kgdb) where #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 #1 0xc043c525 in db_fncall (dummy1=0, dummy2=0, dummy3=0, dummy4=0xd99327b0 \"àèkÀ\") at /usr/src/sys/ddb/db_command.c:548 #2 0xc043c2aa in db_command (last_cmdp=0xc06bdf80, cmd_table=0x0, aux_cmd_tablep=0xc0690120, aux_cmd_tablep_end=0xc0690124) at /usr/src/sys/ddb/db_command.c:346 #3 0xc043c3c8 in db_command_loop () at /usr/src/sys/ddb/db_command.c:472 #4 0xc043f1b9 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_trap.c:73 #5 0xc0629743 in kdb_trap (type=3, code=0, regs=0xd99328f0) at /usr/src/sys/i386/i386/db_interface.c:171 #6 0xc063e379 in trap (frame= {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = -1066976699, tf_esi = 1, tf_ebp = -644667076, tf_isp = -644667108, tf_ebx = 0, tf_edx = 0, tf_ecx = -1056882688, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1067279810, tf_cs = 8, tf_eflags = 150, tf_esp = -1066889009, tf_ss = -1066982020}) at /usr/src/sys/i386/i386/trap.c:579 #7 0xc0629a3e in Debugger (msg=0x0) at machine/cpufunc.h:65 #8 0xc04d3404 in __panic (file=0xc0673a27 \"/usr/src/sys/kern/sched_ule.c\", line=414, fmt=0xc0673a45 \"Negative nice count.\") at /usr/src/sys/kern/kern_shutdown.c:536 #9 0xc04e71c8 in kseq_nice_rem (kseq=0xc06c7d40, nice=0) at /usr/src/sys/kern/sched_ule.c: 414 #10 0xc04e70e7 in kseq_load_rem (kseq=0x0, ke=0xc06c7d40) at /usr/src/sys/kern/sched_ule. c:392 #11 0xc04e8a89 in sched_clock (td=0xc47382a0) at /usr/src/sys/kern/sched_ule.c:1458 #12 0xc04af1b9 in statclock (frame=0xd9932a50) at /usr/src/sys/kern/kern_clock.c:434 #13 0xc064187f in rtcintr (frame=0xd9932a50) at /usr/src/sys/i386/isa/clock.c:380 #14 0xc062eb53 in intr_execute_handlers (isrc=0xc43838ec, iframe=0xd9932a50) at /usr/src/sys/i386/i386/intr_machdep.c:192 #15 0xc063168a in lapic_handle_intr (frame= {if_vec = 56, if_fs = 24, if_es = 16, if_ds = 16, if_edi = 9, if_esi = -1056734764, if_ebp = -644666720, if_ebx = -1066595424, if_edx = -999062880, if_ecx = 1, if_eax = 582, if_eip = -1068656334, if_cs = 8, if_eflags = 582, if_esp = -1066595424, if_ss = -1056734764}) at /usr/src/sys/i386/i386/local_apic.c:488 #16 0xc0625ee3 in Xapic_isr1 () at {standard input}:36 #17 0xc04c95a0 in _mtx_unlock_spin_flags (m=0xc06d0ba0, opts=0, file=0x0, line=0) at /usr/src/sys/kern/kern_mutex.c:378 #18 0xc04fbd52 in witness_checkorder (lock=0xc10381d4, flags=9, file=0xc0686b41 \"/usr/src/sys/vm/uma_core.c\", line=1410) at /usr/src/sys/kern/subr_witness.c:870 #19 0xc04c925a in _mtx_lock_flags (m=0xc06d0ba0, opts=0, file=---Can\'t read userspace from dump, or kernel process--- ) at /usr/src/sys/kern/kern_mutex.c:249 #20 0xc0605fe7 in uma_zalloc_arg (zone=0xc10381d4, udata=0x0, flags=1) at /usr/src/sys/vm/uma_core.c:1410 ---Type <return> to continue, or q <return> to quit--- #21 0xc063a50e in get_pv_entry () at /usr/src/sys/vm/uma.h:234 #22 0xc063a644 in pmap_insert_entry (pmap=0xc46db714, va=0, mpte=0x0, m=0xc11df180) at /usr/src/sys/i386/i386/pmap.c:1567 #23 0xc063aedf in pmap_enter (pmap=0xc46db714, va=134635520, m=0xc11df180, prot=7 \'\\a\', wired=0) at /usr/src/sys/i386/i386/pmap.c:2023 #24 0xc05f0f3b in vm_fault (map=0xc46db674, vaddr=134635520, fault_type=2 \'\\002\', fault_flags=8) at /usr/src/sys/vm/vm_fault.c:897 #25 0xc063e556 in trap_pfault (frame=0xd9932d48, usermode=1, eva=134635520) at /usr/src/sys/i386/i386/trap.c:710 #26 0xc063e101 in trap (frame= {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 134635520, tf_esi = 14, tf_ebp = -1077942168, tf_isp = -644665996, tf_ebx = 4096, tf_edx = 0, tf_ecx = 1024, tf_eax = -791621424, tf_trapno = 12, tf_err = 6, tf_eip = 672775767, tf_cs = 31, tf_eflags = 66070, tf_esp = -1077942224, tf_ss = 47}) at /usr/src/sys/i386/i386/trap.c:319 #27 0x2819be57 in ?? () ---Can\'t read userspace from dump, or kernel process--- call kseq_print(0) in debugger produce: kseq: load 1 load TIMESHARE: -1 load transferable: 1 nicemin: 0 nicecounts 0=-1 0x9 itetcu@it> /usr/src/sys/i386/conf [12:38:51] 0 # uname -a FreeBSD it.buh.cameradicommercio.ro 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Thu Feb 12 14:45:34 EET 2004 itetcu@it.buh.cameradicommercio.ro:/usr/obj/usr/src/sys/KSE1 i386 It is a UP system. machine i386 #cpu I486_CPU #cpu I586_CPU cpu I686_CPU ident KSE1 options CPU_ATHLON_SSE_HACK options NPX_DEBUG makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options BREAK_TO_DEBUGGER #options SCHED_4BSD #4BSD scheduler options SCHED_ULE #firts try, huh :) options INET #InterNETworking options INET6 #IPv6 communications protocols 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 MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem (requires PSEUDOFS) options PSEUDOFS #Pseudo-filesystem framework options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 #Compatible with FreeBSD4 options SCSI_DELAY=15000 #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 extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. options HZ=1000 options IPFIREWALL_VERBOSE # Debugging for use in -current options DDB #Enable the kernel debugger options INVARIANTS #Enable calls of extra sanity checking options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS options WITNESS #Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN #Don\'t run witness on spinlocks for speed # To make an SMP kernel, the next two are needed options SMP # Symmetric MultiProcessor Kernel device apic # I/O APIC device isa device eisa device pci # Floppy drives device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives device ataraid # ATA RAID drives device atapicd # ATAPI CDROM drives options ATA_STATIC_ID #Static device numbering # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device vga # VGA video card driver device splash # Splash screen and screen saver support # syscons is the default console driver, resembling an SCO console device sc # Floating point support - do not disable. device npx # Add suspend/resume support for the i8254. device pmtimer ____________________________ http://email.apropo.ro - Mail GRATIS cu 15 MB spatiu, filtru antispam si access POP3 !
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040303131655.24317.qmail>