NetBSD-Bugs archive

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

Re: kern/56413: bad mutex owner in soreceive



The following reply was made to PR kern/56413; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/56413: bad mutex owner in soreceive
Date: Tue, 10 Jan 2023 12:30:12 +0100

 I have filed two other reports probably showing the same error:
 PR port-macppc/56912 and PR port-powerpc/56941 - probably makes
 more sense to keep this all in a single PR - will close the other two.
 
 Today's variant of the issue happened while extracting *.tgz sets from
 an NFS share:
 
 [ 2566.1971149] Mutex error: mutex_vector_exit,752: assertion failed: MUTEX_OWNER(mtx->mtx_owner) == curthread
 
 [ 2566.2371317] lock address : 5fbcb080
 [ 2566.2471366] current cpu  :                  1
 [ 2566.2471366] current lwp  : 0x00000000144efd00
 [ 2566.2571418] owner field  : 0x000000005fb28340 wait/spin:                0/0
 
 [ 2566.2771540] panic: lock error: Mutex: mutex_vector_exit,752: assertion failed: MUTEX_OWNER(mtx->mtx_owner) == curthread: lock 0x5fbcb080 cpu 1 lwp 0x144efd00
 [ 2566.3071678] cpu1: Begin traceback...
 [ 2566.3071678] 0x1495ca90: at vpanic+0x158
 [ 2566.3171716] 0x1495cac0: at panic+0x50
 [ 2566.3271774] 0x1495cb00: at lockdebug_abort+0xf8
 [ 2566.3371820] 0x1495cba0: at mutex_spin_exit+0x104
 [ 2566.3471872] 0x1495cbb0: at soreceive+0x7dc
 [ 2566.3571917] 0x1495cc80: at nfs_request+0xea0
 [ 2566.3671976] 0x1495cdc0: at nfs_readrpc+0x1e4
 [ 2566.3772035] 0x1495ce30: at nfs_doio+0x7ec
 [ 2566.3872074] 0x1495cee0: at nfssvc_iod+0x2ac
 [ 2566.3972118] 0x1495cf20: at cpu_lwp_bootstrap+0xc
 [ 2566.4072175] 0x1495cfe8: at 0xfffffffc
 [ 2566.4172225] cpu1: End traceback...
 [ 2566.4272269] Failed to pause: cpu0
 Stopped in pid 0.549 (system) at        netbsd:vpanic+0x15c:    or      r3, r26,
  r26
 db{1}> ps/a
 PID   COMMAND               STRUCT PROC *            UAREA *     VMSPACE/VM_MAP
 1341  tar                        11d48740           12071000           10d16ab0
 1465  sh                         10466880           10714000           10b059c8
 1640  tcsh                       111a8180           10fa0000           10473720
 1078  login                      1145f780           12404000           10b05c68
 1077  getty                      10fbec40           10f10000           10d16110
 1067  getty                      111a8c80           11498000           10b05728
 1254  getty                      111a8700           10fb4000           10473d40
 1056  getty                      10466300           104c4000           104733a0
 1088  cron                       111a8440           10fa4000           10473e20
 1098  inetd                      10fbe6c0           10e91000           10d16b90
 1127  sshd                       1145f4c0           12340000           10b05e28
 1125  upsmon                     11d48a00           12152000           10d16570
 976   upsmon                     11d48cc0           12163000           10b05808
 942   upsd                       11d481c0           11c40000           10b05488
 929   usbhid-ups                 10fbe980           10ec0000           10d162d0
 973   powerd                     111a89c0           11030000           10b05648
 863   ntpd                       11d48480           11c50000           10b05568
 587   syslogd                    10ac93c0           10ca4000           10473aa0
 307   dhcpcd                     10fbe140           10d40000           10b05d48
 303   dhcpcd                     10ac9c00           10d30000           10b05b88
 305   dhcpcd                     10ac9940           10cc1000           10b05aa8
 304   dhcpcd                     10ac9680           10cb2000           10b052c8
 206   wdogctl                    10825340           1085a000           104738e0
 1     init                       10466040           1045c000           10473020
 0     system                       c232c0           14ac8000             c54a90
 
 db{1}> mach cpu
 CPU CPUID STATE CPUINFO  CPL INT MTX IPIS
   0 0x000 R-P-- 0xbe56c0   7   1   0 0x00000000
   1 0x001 ----- 0xbe6140   7  -1   0 0x00000000
 db{1}> mach cpu 0
 Stopped in pid 0.3 (system) at  netbsd:cpu_pause+0xa4:  b       netbsd:cpu_pause
 +0x74
 db{0}> bt
 0x10007a30: at ipi_intr+0xa4
 0x10007a50: at intr_deliver+0x98
 0x10007a90: at pic_handle_intr+0x108
 0x10007af0: at trapstart+0x6b0
 0x10007bc0: at pics+0x1c
 0x10007c00: at intr_deliver+0xc8
 0x10007c40: at pic_handle_intr+0x108
 0x10007ca0: at trapstart+0x6b0
 0x10007d70: at sysctl_net_inet_ip_forwsrcrt+0x114
 0x10007db0: at ipintr+0x68
 0x10007ea0: at softint_thread+0x1a4
 0x10007f20: at cpu_lwp_bootstrap+0xc
 0x10007fe8: at 0x932fafc
 
 Martin
 


Home | Main Index | Thread Index | Old Index