Date: Tue, 3 Jan 2006 12:41:04 GMT From: "Ricardo A. Reis" <ricardo.areis@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: threads/91266: [threads] Trying sleep, but thread marked as sleeping prohibited Message-ID: <200601031241.k03Cf4sp009447@www.freebsd.org> Resent-Message-ID: <200601031250.k03Co4Mt027589@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 91266 >Category: threads >Synopsis: [threads] Trying sleep, but thread marked as sleeping prohibited >Confidential: no >Severity: critical >Priority: medium >Responsible: freebsd-threads >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jan 03 12:50:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Ricardo A. Reis >Release: 7.0-CURRENT-SNAP010 >Organization: UNIFESP >Environment: FreeBSD myfreebsd.homeunix.org 7.0-CURRENT-SNAP010 FreeBSD 7.0-CURRENT-SNAP010 #0: Tue Dec 13 11:25:44 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: After send this pr "http://www.freebsd.org/cgi/query-pr.cgi?pr=91242" i resolved a update the system, but make buildworld caused severals reboots, when the system not reboot crash with "Trying sleep, but thread marked as sleeping prohibited" cat /usr/crash/info.10 Dump header from device /dev/ad2s1b Architecture: i386 Architecture Version: 2 Dump Length: 200867840B (191 MB) Blocksize: 512 Dumptime: Sat Dec 31 19:34:57 2005 Hostname: myfreebsd.homeunix.org Magic: FreeBSD Kernel Dump Version String: FreeBSD 7.0-CURRENT-SNAP010 #0: Tue Dec 13 11:25:44 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Panic String: Trying sleep, but thread marked as sleeping prohibited Dump Parity: 2578335322 Bounds: 10 Dump Status: good kgdb kernel.symbols /usr/crash/vmcore.10 [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: Trying sleep, but thread marked as sleeping prohibited cpuid = 0 KDB: enter: panic panic: from debugger cpuid = 0 Uptime: 34m41s Dumping 191 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 191MB (48880 pages) 175 159 143 127 111 95 79 (CTRL-C to abort) (CTRL-C to abort) (CTRL-C to abort) 63 (CTRL-C to abort) 47 31 15 #0 doadump () at pcpu.h:165 165 pcpu.h: No such file or directory. in pcpu.h #1 0xc064f09c in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:399 first_buf_printf = 1 #2 0xc064f3b1 in panic (fmt=0xc0842e0b "from debugger") at /usr/src/sys/kern/kern_shutdown.c:555 td = (struct thread *) 0xc1d6c780 bootopt = 260 newpanic = 0 ap = 0xc9e977d4 "\210xéÉø¤FÀ\027\222fÀ" buf = "Trying sleep, but thread marked as sleeping prohibited", '\0' <repeats 201 times> #3 0xc046a561 in db_panic (addr=-1067019753, have_addr=0, count=-1, modif=0xc9e977fc "") at /usr/src/sys/ddb/db_command.c:435 No locals. #4 0xc046a4f8 in db_command (last_cmdp=0xc092bfc4, cmd_table=0x0, aux_cmd_tablep=0xc08a6214, aux_cmd_tablep_end=0xc08a6230) at /usr/src/sys/ddb/db_command.c:404 cmd = (struct command *) 0xc0823be0 t = 0 modif = "\000xéÉèó~À\024xéÉ\030xéÉ\215\a\000\000\215\a\000\000Ï\a\000\000\000\000\000\000 Ð\233À\r\000\000\000 Ð\233À Ð\233À\r\000\000\000\001\000\000\000TxéÉ\033í~ÀTxéÉ4í~À\200ý\231À`\034\231Àx\000\000\000ÀÈ\222À\200ÇÖÁtxéÉ\224ÅFÀѧ\207ÀlÂFÀ\200ÇÖÁÀÈ\222À\036ºFÀ" addr = -1067019753 count = -1 have_addr = 0 result = 0 #5 0xc046a5c0 in db_command_loop () at /usr/src/sys/ddb/db_command.c:455 No locals. #6 0xc046c1d9 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:221 jb = {{_jb = {-907446092, -907446112, -907446040, 1, -1042888832, -1069104782, -1067011683, 10, -907445840, -907445868, 1, -1042888832}}} prev_jb = (void *) 0x0 bkpt = 0 #7 0xc0669510 in kdb_trap (type=3, code=0, tf=0xc9e97994) at /usr/src/sys/kern/subr_kdb.c:485 did_stop_cpus = 1 handled = -907445868 #8 0xc080d624 in trap (frame= {tf_fs = 8, tf_es = 40, tf_ds = 40, tf_edi = -1064839572, tf_esi = 1, tf_ebp = -907445804, tf_isp = -907445824, tf_ebx = -907445760, tf_edx = 0, tf_ecx = -1056755712, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1067019753, tf_cs = 32, tf_eflags = 150, tf_esp = -907445772, tf_ss = -1067125917}) at /usr/src/sys/i386/i386/trap.c:614 td = (struct thread *) 0xc1d6c780 p = (struct proc *) 0xc1d6badc sticks = 10 i = 0 ucode = 0 type = 3 code = 0 addr = 0 eva = 0 ksi = {ksi_link = {tqe_next = 0xc087a688, tqe_prev = 0xc088f180}, ksi_info = {si_signo = -1064703823, si_errno = -907445948, si_code = 1, si_pid = -907464704, si_uid = 3230200192, si_status = -907445916, si_addr = 0xc067315c, si_value = {sival_int = -1042888832, sival_ptr = 0xc1d6c780}, _reason = {_fault = {_trapno = -1041085608}, _timer = {_timerid = -1041085608, _overrun = 9}, _mesgq = {_mqd = -1041085608}, _poll = { _band = -1041085608}, __spare__ = {__spare1__ = -1041085608, __spare2__ = {9, 1, -1067047645, -1064022864, -907445888, -907445868, -907445856}}}}, ksi_flags = 11893, ksi_sigq = 0x0} #9 0xc07fa4da in calltrap () at /usr/src/sys/i386/i386/exception.s:137 No locals. #10 0xc0669217 in kdb_enter (msg=0x12 <Address 0x12 out of bounds>) at cpufunc.h:60 No locals. #11 0xc064f363 in panic (fmt=0xc087d66c "Trying sleep, but thread marked as sleeping prohibited") at /usr/src/sys/kern/kern_shutdown.c:539 td = (struct thread *) 0xc1d6c780 bootopt = 256 newpanic = 1 ap = 0xc9e97a00 "" buf = "Trying sleep, but thread marked as sleeping prohibited", '\0' <repeats 201 times> #12 0xc066e9c0 in sleepq_add (wchan=0xc0943688, lock=0xc09440c4, wmesg=0x12 <Address 0x12 out of bounds>, flags=1) at /usr/src/sys/kern/subr_sleepqueue.c:273 sc = (struct sleepqueue_chain *) 0xc09498e0 sq = (struct sleepqueue *) 0xc1033000 td = (struct thread *) 0xc1d6c780 #13 0xc0629801 in cv_wait_unlock (cvp=0xc0943688, mp=0xc09440c4) at /usr/src/sys/kern/kern_condvar.c:152 _giantcnt = 0 Giant__wf = 0xc087ae61 "/usr/src/sys/kern/kern_sx.c" Giant__wl = -907445668 td = (struct thread *) 0x0 __func__ = "cv_wait_unlock" #14 0xc062966a in cv_wait (cvp=0xc0943688, mp=0xc09440c4) at /usr/src/sys/kern/kern_condvar.c:112 mp__wf = 0x180 <Address 0x180 out of bounds> mp__wl = -907445632 #15 0xc0654fd8 in _sx_xlock (sx=0xc0943660, file=0xc08763cf "/usr/src/sys/kern/kern_acct.c", line=384) at /usr/src/sys/kern/kern_sx.c:175 __func__ = "_sx_xlock" #16 0xc0627900 in acctwatch (a=0x0) at /usr/src/sys/kern/kern_acct.c:384 sb = {f_version = 3387521732, f_type = 3227918093, f_flags = 13863794938430357634, f_bsize = 13971217180471510912, f_iosize = 13974503619000833993, f_blocks = 13974505132557035776, f_bfree = 3253692672, f_bavail = -4472238941018686724, f_files = 3253692672, f_ffree = -4582944733845161192, f_syncwrites = 13974505132534294784, f_asyncwrites = 0, f_syncreads = 13967570650157992160, f_asyncreads = 14549295517285744640, f_spare = { 13967570650157992160, 14549295637544828928, 13876831803784174603, 50496719072, 13967570646905913344, 13967556751643831584, 13863807792360029032, 50496718720, 13967570650158838528, 561597823708}, f_namemax = 3227916299, f_owner = 3252078464, f_fsid = {val = {-1042042112, 1548148384}}, f_charspare = " »ÖÁ\200ÇÖÁÔ{éÉ\204ZeÀ\200ÇÖÁ\000³ãÁ\006\000\000\000öVê0¨£\033¶\024\000ÀÿܺÖÁ!\b\000\000¶BL\222\aÅÔY\200ÇÖÁ!\b\000\000¶BL\222\aÅÔY\000³ãÁ\000³ãÁ", f_fstypename = "4\000\000\000\000\000\000\000ì{éÉ\001'fÀ", f_mntfromname = "\200ÇÖÁ\000³ãÁP&ãÁ\004|éÉ#%fÀ°L\224À\002\000\000\000=À\207Àg\002\000\000\200ÇÖÁ\020|éÉF\000\000\000°L\224À\034|éÉÁudÀ\200\233ÖÁL|éɸÁcÀ°L\224À\000\000\000\000\022|\207À\033\002\000", f_mntonname = "ܪãÁ#%fÀ°L\224À\000\000\000\000¨\212\222À\200\233ÖÁl|éÉðã\177À\200ÇÖÁ\026\000\000\000\000\000\000\000||éÉ#%fÀ°L\224À\002\000\000\000=À\207Àg\002\000\000\200ÇÖÁ\210|éÉF\002\000\000¤U\224À\224|éÉ"} vfslocked = 0 #17 0xc065c369 in softclock (dummy=0x0) at /usr/src/sys/kern/kern_timeout.c:290 c_func = (void (*)(void *)) 0xc06278e0 <acctwatch> c_arg = (void *) 0x0 c_mtx = (struct mtx *) 0x0 c_flags = 22 c = (struct callout *) 0xc1033000 bucket = (struct callout_tailq *) 0xc591d380 curticks = 2080686 steps = 0 depth = 1 mpcalls = 1 mtxcalls = 0 gcalls = 0 wakeup_cookie = 0 #18 0xc063c392 in ithread_execute_handlers (p=0xc1d6badc, ie=0xc1d69800) at /usr/src/sys/kern/kern_intr.c:662 ih = (struct intr_handler *) 0xc1d5d480 ihn = (struct intr_handler *) 0xc1e51a00 #19 0xc063c4c3 in ithread_loop (arg=0xc1d4b8f0) at /usr/src/sys/kern/kern_intr.c:745 ithd = (struct intr_thread *) 0xc1d4b8f0 ie = (struct intr_event *) 0xc1d69800 td = (struct thread *) 0xc1d6c780 p = (struct proc *) 0xc1d6badc __func__ = "ithread_loop" #20 0xc063b624 in fork_exit (callout=0xc063c45c <ithread_loop>, arg=0xc1d4b8f0, frame=0xc9e97d38) at /usr/src/sys/kern/kern_fork.c:790 p = (struct proc *) 0xc1d6badc td = (struct thread *) 0x0 #21 0xc07fa53c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:198 No locals. (kgdb) list *0xc07fa53c 0xc07fa53c is at /usr/src/sys/i386/i386/exception.s:199. 194 ENTRY(fork_trampoline) 195 pushl %esp /* trapframe pointer */ 196 pushl %ebx /* arg1 */ 197 pushl %esi /* function */ 198 call fork_exit 199 addl $12,%esp 200 /* cut from syscall */ 201 202 /* 203 * Return via doreti to handle ASTs. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.0-CURRENT-SNAP010 #0: Tue Dec 13 11:25:44 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD-K6(tm) 3D processor (501.14-MHz 586-class CPU) Origin = "AuthenticAMD" Id = 0x58c Stepping = 12 Features=0x8021bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,PGE,MMX> AMD Features=0x80000800<SYSCALL,3DNow> real memory = 201261056 (191 MB) avail memory = 187215872 (178 MB) K6-family MTRR support enabled (2 registers) npx0: [FAST] npx0: <math processor> on motherboard npx0: INT 16 interface cpu0 on motherboard pcib0: <Host to PCI bridge> pcibus 0 on motherboard pir0: <PCI Interrupt Routing Table: 8 Entries> on motherboard $PIR: BIOS IRQ 10 for 0.7.INTD does not match link 0x5 irq 9 pci0: <PCI bus> on pcib0 agp0: <VIA 82C597 (Apollo VP3) host to PCI bridge> mem 0xe8000000-0xebffffff at device 0.0 on pci0 pcib1: <PCI-PCI bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 $PIR: ROUTE_INTERRUPT failed. pci1: <display, VGA> at device 0.0 (no driver attached) isab0: <PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 82C596B UDMA66 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd000-0xd00f at device 7.1 on pci0 ata0: <ATA channel 0> on atapci0 ata1: <ATA channel 1> on atapci0 uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 9 at device 7.2 on pci0 uhci0: [GIANT-LOCKED] usb0: <VIA 83C572 USB controller> on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: <bridge, HOST-PCI> at device 7.3 (no driver attached) pcm0: <AudioPCI ES1370> port 0xd800-0xd83f irq 5 at device 9.0 on pci0 pcm0: es1370_wrcodec: timed out pcm0: <Playback: DAC1,DAC2 / Record: ADC> rl0: <RealTek 8139 10/100BaseTX> port 0xdc00-0xdcff mem 0xec000000-0xec0000ff irq 9 at device 10.0 on pci0 miibus0: <MII bus> on rl0 rlphy0: <RealTek internal media interface> on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:08:54:2f:f1:a3 vr0: <VIA VT6105 Rhine III 10/100BaseTX> port 0xe000-0xe0ff mem 0xec001000-0xec0010ff irq 9 at device 11.0 on pci0 miibus1: <MII bus> on vr0 ukphy0: <Generic IEEE 802.3u media interface> on miibus1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:40:f4:5f:1c:1b pmtimer0 on isa0 orm0: <ISA Option ROM> at iomem 0xc0000-0xc9fff pnpid ORM0000 on isa0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model MouseMan+, device ID 0 fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: <Parallel port bus> on ppc0 plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 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 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: <PNP0303> can't assign resources (port) unknown: <PNP0c01> can't assign resources (memory) unknown: <PNP0f13> can't assign resources (irq) unknown: <PNP0501> can't assign resources (port) unknown: <PNP0700> can't assign resources (port) unknown: <PNP0401> can't assign resources (port) unknown: <PNP0501> can't assign resources (port) Timecounter "TSC" frequency 501140884 Hz quality 800 Timecounters tick every 1.000 msec acd0: CDRW <HL-DT-ST GCE-8523B/1.01> at ata0-master UDMA33 ad1: 39205MB <Maxtor 2F040J0 VAM51JJ0> at ata0-slave UDMA66 ad2: 14324MB <QUANTUM FIREBALLlct10 15 A03.0900> at ata1-master UDMA66 Trying to mount root from ufs:/dev/ad2s1a WARNING: / was not properly dismounted WARNING: /mnt/backup was not properly dismounted WARNING: /usr was not properly dismounted >How-To-Repeat: cd /usr/src; make buildworld >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601031241.k03Cf4sp009447>