NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

port-hpcmips/38139: hpcmips 4.99.55: mutex_vector_enter: locking against myself



>Number:         38139
>Category:       port-hpcmips
>Synopsis:       hpcmips 4.99.55: mutex_vector_enter: locking against myself
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-hpcmips-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 02 16:10:00 +0000 2008
>Originator:     Risto Sainio
>Release:        -current == 4.99.55
>Organization:
>Environment:
NetBSD 4.99.55 (TX3922) #3: Sun Mar  2 17:08:14 CET 2008
        root@vrsa95:/usr/objdir_current/sys/arch/hpcmips/compile/TX3922


build.sh started: Sun Mar  2 16:56:30 CET 2008
NetBSD version:   4.99.55
MACHINE:          hpcmips
MACHINE_ARCH:     mipsel
Build platform:   NetBSD 4.0 i386
HOST_SH:          /bin/sh
TOOLDIR path:     /usr/src_current/../tooldir_current
DESTDIR path:     /usr/src_current/../destdir_current
RELEASEDIR path:  /usr/src_current/../releasedir_current
      makewrapper:      /usr/src_current/../tooldir_current/bin/nbmake-hpcmips
         Updated /usr/src_current/../tooldir_current/bin/nbmake-hpcmips
Building kernel without building new tools
Building kernel:  TX3922
         Build directory:  
/usr/src_current/../objdir_current/sys/arch/hpcmips/compile/TX39
         Kernels built from TX3922:
          
/usr/src_current/../objdir_current/sys/arch/hpcmips/compile/TX3922/netbsd
         build.sh ended:   Sun Mar  2 17:08:22 CET 2008

>Description:
copying a file to fs on wd-device panics the kernel. The wd-device is a CF-card 
in PCMCIA-slot. The hardware is a Fujitsu Pencentra 200. The rootfs is 
NFS-mounted so that this problem does not effect my testing. AFAIR, the 
4.0-released kernel did not have this problem.

The kernel drops into db:
Mutex error: mutex_vector_enter: locking against myself

lock address : 0x0000000083a57b10
current cpu  :                  0
current lwp  : 0x00000000836f3200
owner field  : 0x00000000836f3200 wait/spin:                0/0

panic: lock error
Stopped in pid 298.1 (rsync) at netbsd:cpu_Debugger+0x4:  jr      ra
                bdslot: nop

db> trace
cpu_Debugger+4 (83fef000,1,5,0) ra 8019bb5c sz 0
panic+210 (83fef000,1,1,0) ra 80195124 sz 48
lockdebug_abort+84 (83fef000,1,1,0) ra 80174744 sz 56
mutex_vector_enter+ac (83fef000,1,1,0) ra 801c2e28 sz 40
biodone2+34 (83fef000,1,1,0) ra 8021bb0c sz 32
wddone+2dc (83fef000,1,1,0) ra 8021c618 sz 48
wdc_ata_bio_done+9c (83fef000,1,1,0) ra 8021ce74 sz 40
wdc_ata_bio_intr+238 (83fef000,1,1,0) ra 800a39b4 sz 56
wdcintr+94 (83fef000,1,1,0) ra 80230814 sz 32
plumicu_intr+fc (83fef000,1,1,0) ra 8022b14c sz 48
cpu_intr+150 (83fef000,1,1,0) ra 801fe08c sz 40
mips1_KernIntr+84 (83a57b10,0,ffffff77,0) ra 801da01c sz 128
genfs_getpages+100c (ce0b3c60,0,ffffff77,0) ra 801d65c4 sz 280
VOP_GETPAGES+60 (83a57b10,0,2a6000,0) ra 8012ff90 sz 64
ubc_alloc+3e8 (83a57b10,0,2a6000,0) ra 0 sz 104
User-level: pid 298.1

db> ps
 PID           PPID     PGRP        UID S   FLAGS LWPS          COMMAND    WAIT
>298            314      307          0 2       0    1            rsync
 314            307      307          0 2       0    1            rsync
 307            262      307          0 2  0x4000    1            rsync  select
 262            271      262          0 2  0x4000    1              csh   pause
 271            272      271        500 2  0x4100    1               su    wait
 272            278      272        500 2  0x4000    1               sh    wait
 278            269      269        500 2   0x100    1             sshd  select
 269            238      269          0 2  0x4101    1             sshd   netio
 259              1      259          0 2  0x4000    1            getty     tty
 264              1      264          0 2  0x4000    1            getty     tty
 265              1      265          0 2       0    1             cron nanoslp
 245              1      245          0 2       0    1            inetd  kqread
 238              1      238          0 2       0    1             sshd  select
 107              1      107          0 2       0    1          syslogd  kqread
 1                0        1          0 2  0x4001    1             init    wait
 0               -1        0          0 2 0x20002   25           system       *


db> reboot
cpu_reboot+34 (0,0,802f0000,ce0b36e4) ra 8007ad94 sz 24
db_reboot_cmd+4c (0,0,802f0000,ce0b36e4) ra 8007aa74 sz 32
db_command+30c (0,0,802f0000,ce0b36e4) ra 8007abc4 sz 168
db_command_loop+108 (0,0,802f0000,ce0b36e4) ra 8007da48 sz 88
db_trap+118 (0,0,802f0000,ce0b36e4) ra 801fff18 sz 32
kdb_trap+48 (0,0,802f0000,ce0b36e4) ra 80202fdc sz 32
trap+4f8 (ff10,0,802f0000,ce0b36e4) ra 801fdd80 sz 120
mips1_KernGenException+c0 (83fef000,1,5,0) ra 8019bb5c sz 128
panic+210 (83fef000,1,1,0) ra 80195124 sz 48
lockdebug_abort+84 (83fef000,1,1,0) ra 80174744 sz 56
mutex_vector_enter+ac (83fef000,1,1,0) ra 801c2e28 sz 40
biodone2+34 (83fef000,1,1,0) ra 8021bb0c sz 32
wddone+2dc (83fef000,1,1,0) ra 8021c618 sz 48
wdc_ata_bio_done+9c (83fef000,1,1,0) ra 8021ce74 sz 40
wdc_ata_bio_intr+238 (83fef000,1,1,0) ra 800a39b4 sz 56
wdcintr+94 (83fef000,1,1,0) ra 80230814 sz 32
plumicu_intr+fc (83fef000,1,1,0) ra 8022b14c sz 48
cpu_intr+150 (83fef000,1,1,0) ra 801fe08c sz 40
mips1_KernIntr+84 (83a57b10,0,ffffff77,0) ra 801da01c sz 128
genfs_getpages+100c (ce0b3c60,0,ffffff77,0) ra 801d65c4 sz 280
VOP_GETPAGES+60 (83a57b10,0,2a6000,0) ra 8012ff90 sz 64
ubc_alloc+3e8 (83a57b10,0,2a6000,0) ra 0 sz 104
User-level: pid 298.1
kloader: kernel file name: /netbsd

>How-To-Repeat:
rsa02# mount /dev/wd0a /mnt
rsa02# rsync  -avH  /nfsroot/ /mnt
building file list ... done
./
netbsd

>Fix:



Home | Main Index | Thread Index | Old Index