NetBSD-Bugs archive

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

Re: port-powerpc/56941: process lock confusion?



The following reply was made to PR port-powerpc/56941; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: port-powerpc/56941: process lock confusion?
Date: Tue, 30 Aug 2022 19:43:37 +0200

 I think I saw another instance of this, with even more confusing ps output -
 another thread of this process is exiting (like in the original report)
 and the current (panicing) thread is attributed as icmp_wqinput/0.
 
 It doesn't make much sense to me.
 
 Martin
 
 [ 7914.5574286] Mutex error: mutex_vector_exit,755: assertion failed: MUTEX_OWNER(mtx->mtx_owner) == curthread
 
 [ 7914.5774446] lock address : 0x0000000000c21380
 [ 7914.5874434] current cpu  :                  1
 [ 7914.5974461] current lwp  : 0x0000000011114700
 [ 7914.6074514] owner field  : 000000000000000000 wait/spin:                0/0
 
 [ 7914.6174563] panic: lock error: Mutex: mutex_vector_exit,755: assertion failed: MUTEX_OWNER(mtx->mtx_owner) == curthread: lock 0xc21380 cpu 1 lwp 0x11114700
 [ 7914.6474718] cpu1: Begin traceback...
 [ 7914.6574751] 0x10dfdd50: at vpanic+0x158
 [ 7914.6674804] 0x10dfdd80: at panic+0x50
 [ 7914.6774870] 0x10dfddc0: at lockdebug_abort+0xe4
 [ 7914.6874916] 0x10dfdde0: at mutex_spin_exit+0x104
 [ 7914.6974985] 0x10dfddf0: at lwp_exit+0x164
 [ 7914.7075003] 0x10dfde50: at lwp_userret+0x17c
 [ 7914.7175058] 0x10dfdeb0: at syscall+0x510
 
 Stopped in pid 8641.11136 (rump_server) at      netbsd:vpanic+0x15c:    or      
 r3, r26, r26
 [..]
 8641  5526 2   1  10000000           1e8c6640        rump_server
 8641 >11136 7   1    100100           11114700     icmp_wqinput/0
 8641  7896 5   0    100100           1b449400           (zombie)
 [..]
 14493>25439 7   0     40100           1e3936c0        rump_server
 [..]
 db{1}> bt/a 0x0000000011114700
 trace: pid 8641 lid 11136 at 0x10dfdd60
 0x00930000: at 0x2c15fffc
 0x40820170: at 0x40215bc
 saved LR(0xdead7ffb) is invalid.
 db{1}> bt/a 1e3936c0
 trace: pid 14493 lid 25439 at 0x183a7d70
 
 full ps output:
 
 db{1}> ps
 PID    LID S CPU     FLAGS       STRUCT LWP *               NAME WAIT
 5181  5181 3   0       180           1cb17400          rump.halt netio
 19256 19256 3   0       180           256e8d00                 sh wait
 8954  7384 3   0       180           1cdd1d00        rump_server parked
 8954  4350 3   0       180           1ec51980        rump_server parked
 8954  19733 2   1       100           1e8c6340        rump_server
 8954  21882 3   0       180           28e43340        vmem_rehash parked
 8954  20694 5   0  10000100           2a026080           (zombie)
 8954  1269 5   1       100           10ece640           (zombie)
 8954  7814 3   0       180           29161640         pmfsuspend parked
 8954    38 3   1       180           28d00680           pmfevent parked
 8954  1260 3   0       180           29057340            rt_free parked
 8954  6799 3   1       180           1bbac940    key_timehandler parked
 8954  16234 3   1       180           151a2700    carp6_wqinput/0 parked
 8954  25964 3   0       180           29097400    carp6_wqinput/1 parked
 8954  21161 3   1       180           29ac4400     carp_wqinput/0 parked
 8954  10852 3   0       180           1e353680     carp_wqinput/1 parked
 8954  28721 3   1       180           1ea373c0     icmp_wqinput/0 parked
 8954  8160 3   0       180           29ac4d00     icmp_wqinput/1 parked
 8954  25365 3   1       180           28d50040           rt_timer parked
 8954  21068 3   1       180           28c40640    ipflow_slowtimo parked
 8954  13103 3   0       180           29fe73c0             ifwdog parked
 8954  24419 3   1       180           15633100            iflnkst parked
 8954  20692 3   0       180           29ac4100            ioflush nanoslp
 8954  24252 3   1       180           1e6453c0             vdrain parked
 8954  24430 3   0       180           1db02d00            pdaemon parked
 8954  19715 3   0       180           28f24080          entbutler parked
 8954  22179 3   1       180           28fa0a00            xcall/1 parked
 8954  3254 3   0       180           1b0b86c0             sipbnc parked
 8954  24649 3   1       180           28cc03c0           rumpclk1 nanoslp
 8954  24028 3   1       180           290e19c0            xcall/0 parked
 8954  14207 3   0       180           1cdd1a00             rsi1/0 parked
 8954  19973 3   0       180           29121980             rsi0/0 parked
 8954  22282 3   1       180           151a2100             rsi1/3 parked
 8954  21252 3   1       180           28d50640             rsi0/3 parked
 8954  9630 3   1       180           369aed00             rsi1/2 parked
 8954  17784 3   1       180           1bfae700             rsi0/2 parked
 8954  7607 3   1       180           151a2d00             sipbnc parked
 8954  18236 3   1       180           1e967c80           rumpclk0 nanoslp
 8954  22395 3   0       180           1ec51c80             rsi1/1 parked
 8954  20313 3   0       180           2a026680             rsi0/1 parked
 8954  8954 3   1       180           291a0700        rump_server psem
 8641  5526 2   1  10000000           1e8c6640        rump_server
 8641 >11136 7   1    100100           11114700     icmp_wqinput/0
 8641  7896 5   0    100100           1b449400           (zombie)
 14493 26016 3   1       180           1e6450c0        rump_server parked
 14493 26018 3   1       180           1ce12040        rump_server parked
 14493 22948 3   1       180           1de956c0        rump_server parked
 14493 2470 3   1       180           1cae09c0        rump_server parked
 14493 3496 3   1       180           1e3d2700        rump_server parked
 14493 2474 3   1       180           3791b640        rump_server parked
 14493 19884 3   1       180           378edd00        rump_server parked
 14493 28078 3   1       180           1cb17d00        rump_server parked
 14493 26544 3   0       180           1e3d2400        rump_server parked
 14493 16818 3   0       180           1e2d7680        rump_server parked
 14493 2484 3   0       180           1cd810c0        rump_server parked
 14493 20918 3   0       180           14278700        rump_server parked
 14493 17336 3   0       180           1e8c6040        rump_server parked
 14493 14778 3   0       180           1db30940        rump_server parked
 14493  956 3   0       180           1ce12340        rump_server parked
 14493 2494 3   1       180           1e686d00        rump_server parked
 14493 2496 3   1       180           147dec40        rump_server parked
 14493 3522 3   0       180           2563c0c0        rump_server parked
 14493 28100 3   0       180           157f5340        rump_server parked
 14493 28102 3   0       180           28fd70c0        rump_server parked
 14493 19400 3   0       180           29017980        rump_server parked
 14493 27594 3   0       180           28fd76c0        rump_server parked
 14493 27596 3   0       180           1ca96080        rump_server parked
 14493 29646 3   0       180           1e3d2a00        rump_server parked
 14493 21456 3   0       180           29017380        rump_server parked
 14493 24530 3   0       180           1b449100        rump_server parked
 14493 5076 3   0       180           1b0b80c0        rump_server parked
 14493 5078 3   0       180           1e474c40        rump_server parked
 14493 20440 3   0       180           1cd81cc0        rump_server parked
 14493 5082 3   0       180           1079dcc0        rump_server parked
 14493 5084 3   0       180           28e43640        rump_server parked
 14493 17886 3   0       180           29fa0a00        rump_server parked
 14493 14816 3   0       180           28ed66c0        rump_server parked
 14493 15842 3   0       180           1e307040        rump_server parked
 14493 4068 3   0       180           15457080        rump_server parked
 14493 4070 3   0       180           1ea370c0        rump_server parked
 14493 3560 3   0       180           379c8c80        rump_server parked
 14493 28650 3   0       180           28fd7cc0        rump_server parked
 14493 16364 3   0       180           1b0b83c0        rump_server parked
 14493 17390 3   0       180           1cd816c0        rump_server parked
 14493 15957 3   0       180           378ed100        rump_server parked
 14493 28247 3   0       180           299a0080        rump_server parked
 14493 18010 3   0       180           299e7940        rump_server parked
 14493 21595 3   0       180           2a0e0640        rump_server parked
 14493 16989 3   0       180           28b80a00        rump_server parked
 14493 24671 3   0       180           28b80400        rump_server parked
 14493 2657 3   0       180           28d50940        rump_server parked
 14493 2659 3   0       180           28d83100        rump_server parked
 14493 25191 3   0       180           1e9b6c40        rump_server parked
 14493 17515 3   0       180           379c8380        rump_server parked
 14493 2671 3   0       180           29097a00        rump_server parked
 14493 14320 3   0       180           29057c40        rump_server parked
 14493 2675 3   0       180           1b449a00        rump_server parked
 14493 2679 3   0       180           28f24380        rump_server parked
 14493 2682 3   0       180           1ca96980        rump_server parked
 14493 27263 3   0       180           1de950c0        rump_server parked
 14493 13443 3   0       180           1b10ecc0        rump_server parked
 14493 17031 3   0       180           1baf5680        rump_server parked
 14493 15499 3   0       180           3791bc40        rump_server parked
 14493 15502 3   0       180           28e83a00        rump_server parked
 14493 22363 3   1       180           1e413040        rump_server parked
 14493 16733 3   1       180           1cdd1100        rump_server parked
 14493>25439 7   0     40100           1e3936c0        rump_server
 14493 2401 3   1       180           291a0400        rump_server parked
 14493 2403 3   1       180           1e9b6640        rump_server parked
 14493 13157 3   0       180           256e8a00        rump_server parked
 14493 24935 3   0       180           1e9206c0        rump_server parked
 14493 20841 3   1       180           28d83a00        rump_server parked
 14493 18283 3   0       180           28c05380        rump_server parked
 14493 2413 3   1       180           10ece940        rump_server parked
 14493 2415 3   0       180           142a8c80        rump_server parked
 14493 16374 3   1       180           14278a00        rump_server parked
 14493 2417 3   0       180           1be24cc0        rump_server parked
 14493 2419 3   0       180           1cff6340        rump_server parked
 14493 2421 3   0       180           1ea379c0        rump_server parked
 14493 2423 3   1       180           1e686700        rump_server parked
 14493 2425 3   0       180           13078680        rump_server parked
 14493 2427 3   1       180           28bc50c0        rump_server parked
 14493 2429 3   0       180           290e10c0        rump_server parked
 14493 27007 3   1       180           369ae400        rump_server parked
 14493 17399 3   1       180           29121380        rump_server parked
 14493 15757 3   0       180           14278d00        rump_server parked
 14493 17307 3   0       180           28e04380        rump_server parked
 14493 27043 3   0       180           1bfaea00        rump_server parked
 14493 16376 3   1       180           1cd33c80        rump_server parked
 14493 17335 3   1       180           15457680        rump_server parked
 14493 15801 3   1       180           28dc30c0        rump_server parked
 14493 27071 3   1       180           1b10e9c0        rump_server parked
 14493 3523 3   1       180           3781a080        rump_server parked
 14493 28615 3   1       180           1e686a00        rump_server parked
 14493 26571 3   1       180           369ae100        rump_server parked
 14493 21455 3   1       180           1b10e3c0        rump_server parked
 14493 24019 3   1       180           1e353c80        rump_server parked
 14493 28631 3   1       180           28cc06c0        rump_server parked
 14493 21979 3   1       180           28dc33c0        rump_server parked
 14493 27615 3   1       180           28e04680        rump_server parked
 14493 14819 3   1       180           28e43940        rump_server parked
 14493 25063 3   1       180           29fa0d00        rump_server parked
 14493 3563 3   0       180           29fa0100        rump_server parked
 14493 17391 3   1       180           28ed63c0        rump_server parked
 14493 15859 3   1       180           28f24680        rump_server parked
 14493 16378 3   1       180           28f65940        rump_server parked
 14493 14844 3   1       180           28fa0d00        rump_server parked
 14493 25163 3   1       180           28fa0100        rump_server parked
 14493 26444 3   0       180           28fd73c0        rump_server parked
 14493 1910 3   1       180           29017680        rump_server parked
 14493 16724 3   1       180           29057940        rump_server parked
 14493 23655 3   1       180           29097d00        rump_server parked
 14493 19372 3   1       180           1de95cc0        rump_server parked
 14493 15341 3   1       180           378ed400        rump_server parked
 14493 1814 3   1       180           378ed700        rump_server parked
 14493 3048 3   0       180           37968980        rump_server parked
 14493 14379 3   1       180           28c40040        rump_server parked
 14493 14585 3   1       180           256e8100        rump_server parked
 14493 13866 3   0       180           1de959c0        rump_server parked
 14493 15249 3   1       180           2563c9c0        rump_server parked
 14493 24624 3   0       180           12f38d00        rump_server parked
 14493 22738 3   1       180           3796b9c0        rump_server parked
 14493 1313 3   1       180           1ec51380        rump_server parked
 14493 1308 3   1       180           28e83400        rump_server parked
 14493 14078 3   0       180           37968c80        rump_server parked
 14493 2750 3   1       180           1cae06c0        rump_server parked
 14493 1662 3   1       180           1db02100        rump_server parked
 14493 1660 3   1       180           377cb0c0        rump_server parked
 14493 1659 3   1       180           1e2d7c80        rump_server parked
 14493 14438 3   1       180           1e393cc0        rump_server parked
 14493  781 3   1       180           2563c3c0        rump_server parked
 14493 25034 3   0       180           145ff6c0        rump_server parked
 14493 13036 3   0       180           1ba5a680        vmem_rehash parked
 14493 24879 3   1       180           1bfae400            ioflush nanoslp
 14493 19305 3   0       180           1b449700             vdrain parked
 14493 14817 3   0       180           2565d080            pdaemon parked
 14493 13747 3   1       1c0           1b972940          entbutler parked
 14493 24652 3   1       180           145ff3c0            xcall/1 parked
 14493 25287 3   1       180           1bfae100             sipbnc parked
 14493 15035 3   1       180           1be246c0           rumpclk1 nanoslp
 14493 22304 3   0       180           1bac9680            xcall/0 parked
 14493 13926 3   1       180           15457c80             rsi1/0 parked
 14493 13620 3   0       180           1b449d00             rsi0/0 parked
 14493 11504 3   1       180           15457380             rsi1/3 parked
 14493 13705 3   0       180           1ba5a980             rsi0/3 parked
 14493 12587 3   1       180           2563ccc0             rsi1/2 parked
 14493 17746 3   1       180           147de640             rsi0/2 parked
 14493 13456 3   1       180           1b0b89c0             sipbnc parked
 14493 16350 3   1       1c0           1b972c40           rumpclk0 parked
 14493 13048 3   1       180           2565d380             rsi1/1 parked
 14493 13905 3   1       180           134fc640             rsi0/1 parked
 14493 14493 3   1       180           1baf5380        rump_server psem
 4396  4396 3   0       180           134fc340               tail kqueue
 3166  3166 3   1       180           134fcc40               tcsh pause
 3416  3416 3   0       1c0           12f38100               rxvt select
 3152  3152 3   0       180           10ece340               tcsh pause
 2632  2632 3   1       180           12f38700               sshd poll
 2509  2509 3   0       180           134fc040               sshd poll
 1750  1750 3   0       180           1088e680                tee pipe_rd
 1756  1756 3   1       180           104a4400         atf-report pipe_rd
 1748  1748 3   1       180           104a7c40                tee pipe_rd
 1510  1510 3   1       180           11114400            atf-run poll
 1754  1754 3   1       180           1079d9c0                 sh wait
 1594  1594 3   0       180           12f38400                 sh wait
 1219  1219 3   0       180           1079d6c0              getty ttyraw
 1074  1074 3   1       180           1079d3c0              getty nanoslp
 1192  1192 3   1       180           1079d0c0              getty nanoslp
 1218  1218 3   0       180           13078c80              getty nanoslp
 1083  1083 3   1       180           104a7340              getty nanoslp
 1256  1256 3   1       180           13078980               cron nanoslp
 1259  1259 3   0       180           10ecec40              inetd kqueue
 1061  1061 3   1       180           10c973c0               sshd poll
 957    957 3   0       180           11114d00             upsmon nanoslp
 958    958 3   0       180           1088e380             upsmon pipe_rd
 948    948 3   1       180           11114100               upsd poll
 945    945 3   0       180           11114a00         usbhid-ups select
 989    989 3   1       180           10ece040             powerd kqueue
 801    801 3   0       180           10c97cc0               ntpd pause
 740    740 3   1       180           10c979c0            syslogd kqueue
 313    313 3   1       180           10c976c0             dhcpcd poll
 312    312 3   1       180           1088ec80             dhcpcd poll
 311    311 3   1       180           10c970c0             dhcpcd poll
 307    307 3   1       180           1088e080             dhcpcd poll
 209    209 3   1       180           1088e980            wdogctl nanoslp
 1        1 3   1       180           10439cc0               init wait
 0     26029 5   0       200           13078080           (zombie)
 0      213 3   0       200           104a4700            physiod physiod
 0      192 3   0       200           104a7040          pooldrain pooldrain
 0      167 2   1       240           104a4d00            ioflush
 0      166 3   1       200           104a4a00           pgdaemon pgdaemon
 0      171 3   1       200           103c8700          swwreboot swwreboot
 0      170 3   0       200           104a4100          atapibus0 sccomp
 0       31 3   1       200           103c8a00             npfgc0 npfgcw
 0      126 3   1       200           103c8400               usb4 usbevt
 0      125 3   0       200           103c8100               usb3 usbevt
 0      124 3   0       200           5f83fcc0               usb2 usbevt
 0      123 3   1       200           5f83f9c0               usb1 usbevt
 0      122 3   1       200           103c8d00               usb0 usbevt
 0      121 3   1       200           104399c0            rt_free rt_free
 0      120 3   1       200           104396c0              unpgc unpgc
 0      119 3   1       200           104393c0    key_timehandler key_timehandler
 
 0      118 3   1       200           104390c0    icmp6_wqinput/1 icmp6_wqinput
 0      117 3   0       200           10429c80    icmp6_wqinput/0 icmp6_wqinput
 0      116 3   1       200           10429980          nd6_timer nd6_timer
 0      115 3   1       200           10429680    carp6_wqinput/1 carp6_wqinput
 0      114 3   0       200           10429380    carp6_wqinput/0 carp6_wqinput
 0      113 3   1       200           10429080     carp_wqinput/1 carp_wqinput
 0      112 3   0       200           103e8c40     carp_wqinput/0 carp_wqinput
 0      111 3   1       200           103e8940     icmp_wqinput/1 icmp_wqinput
 0      110 3   0       200           103e8640     icmp_wqinput/0 icmp_wqinput
 0      109 3   1       200           103e8040           rt_timer rt_timer
 0      108 3   1       200           103e8340        vmem_rehash vmem_rehash
 0       99 3   1       200           5f83f6c0          entbutler entropy
 0       98 3   0       380           5f83f3c0           fw1probe ieee1394
 0       97 3   0       200           5f83f0c0          cardslot0 evexit
 0       96 3   0       200           5f86bc80            atabus2 atath
 0       30 3   1       240           5f86b980            atabus1 atath
 0       29 3   0       240           5f86b680            atabus0 atath
 0       28 3   1       200           5f86b380               iic1 iicintr
 0       27 3   1       200           5f86b080                pmu wait
 0       26 3   0       380           5f8f2c40           fw0probe ieee1394
 0       25 3   0       200           5f8f2940         usbtask-dr usbtsk
 0       24 3   0       200           5f8f2640         usbtask-hc usbtsk
 0       23 3   1       200           5f8f2340               iic0 iicintr
 0       22 3   1       200           5f8f2040            xcall/1 xcall
 0       21 1   1       200           5f901d00          softser/1
 0       20 1   1     40200           5f901a00          softclk/1
 0       19 1   1       200           5f901700          softbio/1
 0       18 1   1       200           5f901400          softnet/1
 0       17 1   1       201           5f901100             idle/1
 0       16 3   0       200           5f90fcc0             sysmon smtaskq
 0       15 3   0       200           5f90f9c0         pmfsuspend pmfsuspend
 0       14 3   0       200           5f90f6c0           pmfevent pmfevent
 0       13 3   0       200           5f90f3c0         sopendfree sopendfr
 0       12 3   0       200           5f90f0c0             ifwdog ifwdog
 0       11 3   0       200           5fb1ec80            iflnkst iflnkst
 0       10 3   0       200           5fb1e980           nfssilly nfssilly
 0        9 3   0       200           5fb1e680             vdrain vdrain
 0        8 3   0       200           5fb1e380          modunload mod_unld
 0        7 3   0       200           5fb1e080            xcall/0 xcall
 0        6 1   0     40200           5fb28c40          softser/0
 0        5 1   0     40200           5fb28940          softclk/0
 0        4 1   0       200           5fb28640          softbio/0
 0        3 1   0     40200           5fb28340          softnet/0
 0        2 1   0       201           5fb28040             idle/0
 0        0 3   1       200             c20c00            swapper uvm
 
 


Home | Main Index | Thread Index | Old Index