>Synopsis:   kernel panic when invoking ddb from another tty than ttyC0
>Category:   kernel
>Environment:
        System      : OpenBSD 6.8
        Details     : OpenBSD 6.8 (GENERIC) #97: Sun Oct  4 18:00:46 MDT 2020
                         
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
When I try to invoke ddb with Ctrl-Alt-Esc from another tty than ttyC0, the kernel panics.
        You will find panic message, traceback and ps output below.
        If needed, I still have the crash dump.
>How-To-Repeat:
        Enable ddb.console.
        Go to any tty except ttyC0.
        Enter Crtl-Alt-Esc.
>Fix:
        N/A


errors before panic message:
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9
splassert: assertwaitok: want 0 have 9

panic message:
panic: kernel diagnostic assertion "p->p_wchan == NULL" failed: file "/usr/src/sys/kern/kern_sched.c", line 353

traceback:
Stopped at      db_enter+0x10:  popq    %rbp
    TID    PID    UID     PRFLAGS     PFLAGS  CPU  COMMAND
db_enter() at db_enter+0x10
panic(ffffffff81ddb0f2) at panic+0x12a
__assert(ffffffff81e3fe94,ffffffff81dc952b,161,ffffffff81dc296e) at __assert+0x2b
sched_chooseproc() at sched_chooseproc+0x101
mi_switch() at mi_switch+0x109
msleep(ffff8000001f7280,ffff8000001f7298,20,ffffffff81e06c00,0) at msleep+0x101
taskq_next_work(ffff8000001f7280,ffff800022e46858) at taskq_next_work+0x61
taskq_thread(ffff8000001f7280) at taskq_thread+0x82
end trace frame: 0x0, count: 7

ps output:
ddb>    PID     TID   PPID    UID  S       FLAGS  WAIT          COMMAND
 46716  222641  59719      0  3    0x1000b3  ttyin         login_passwd
 62320  332948  67717   1000  3    0x1000b0  poll          ssh-agent
  8898  218895  67717   1000  3        0x82  select        tint2
 63549   66422  67717   1000  3        0x82  nanosleep     redshift
 90460  262322  67717   1000  3        0x82  poll          xcompmgr
 67717  150947  41045   1000  3    0x100082  poll          cwm
 41045  177573  94871   1000  3    0x10008a  pause         sh
 94871  276330  55185      0  3    0x100080  wait          xenodm
 39144  499998  80037      0  3    0x100080  netio         Xorg
 80037  386456  55185     35  3        0x92  poll          Xorg
 80037  462408  55185     35  3   0x4000092  poll          Xorg
 38954  305428      1      0  3    0x100083  ttyin         getty
 75488  428761      1      0  3    0x100083  ttyin         getty
  5109  349049      1      0  3    0x100083  ttyin         getty
 60876    3318      1      0  3    0x100083  ttyin         getty
 59719  521598      1      0  3        0x83  netio         login
 55185  191659      1      0  3        0x88  pause         xenodm
 26243   59952      1      0  3    0x100098  poll          cron
  5560   28593      1      0  3        0x80  kqread        apmd
 63659  502916      1     99  3    0x100090  poll          sndiod
 23271  107324      1    110  3    0x100090  poll          sndiod
 98469   32165  57416     95  3    0x100092  kqread        smtpd
 21012  225120  57416    103  3    0x100092  kqread        smtpd
 60831  405428  57416     95  3    0x100092  kqread        smtpd
 75376  197549  57416     95  3    0x100092  kqread        smtpd
 54403  119307  57416     95  3    0x100092  kqread        smtpd
 13460    9150  57416     95  3    0x100092  kqread        smtpd
 57416  468565      1      0  3    0x100080  kqread        smtpd
 89850   30114      1      0  3    0x100080  poll          ntpd
  7051  260526  81175     83  3    0x100092  poll          ntpd
 81175  348924      1     83  3    0x100092  poll          ntpd
  7581  421124      1     53  3        0x90  kqread        unbound
 54721  150640  12052     74  3    0x100092  bpf           pflogd
 12052  371337      1      0  3        0x80  netio         pflogd
 65117  334444  20904     73  3    0x100090  kqread        syslogd
 20904  387167      1      0  3    0x100082  netio         syslogd
 20616  204781  14397    115  3    0x100092  kqread        slaacd
 47806  135934  14397    115  3    0x100092  kqread        slaacd
 14397  157357      1      0  3    0x100080  kqread        slaacd
 50306  455059      0      0  3     0x14200  bored         i915-userptr-acq
 23119  433304      0      0  3     0x14200  bored         i915_flip
 79798   49595      0      0  3     0x14200  bored         i915_modeset
 81535  116161      0      0  3     0x14200  bored         i915-dp
 65323   57322      0      0  3     0x14200  bored         i915
 90264  143808      0      0  3     0x14200  bored         smr
  6645  288713      0      0  3     0x14200  pgzero        zerothread
  2859  403605      0      0  3     0x14200  aiodoned      aiodoned
 82486  330431      0      0  3     0x14200  syncer        update
 32653  328446      0      0  3     0x14200  cleaner       cleaner
 53574  267786      0      0  3     0x14200  reaper        reaper
 20504  227996      0      0  3     0x14200  pgdaemon      pagedaemon
 11930  315405      0      0  3     0x14200  bored         crynlk
 39309  492257      0      0  3     0x14200  bored         crypto
 10326  510000      0      0  3     0x14200  mmctsk        sdmmc0
 14222   39717      0      0  3     0x14200  bored         iwxns
 67636  385496      0      0  3     0x14200  usbtsk        usbtask
 45740  486117      0      0  3     0x14200  usbatsk       usbatsk
 54387  123202      0      0  3     0x14200  bored         drmtskl
 84701  298491      0      0  3     0x14200  bored         drmlwq
 58278  162282      0      0  3     0x14200  bored         drmlwq
 62754  137612      0      0  3     0x14200  bored         drmlwq
  8199  449641      0      0  3     0x14200  bored         drmlwq
 49549   65109      0      0  3     0x14200  bored         drmubwq
 79433   66166      0      0  3     0x14200  bored         drmubwq
 52520   82509      0      0  3     0x14200  bored         drmubwq
 23712  200288      0      0  3     0x14200  bored         drmubwq
 98636   13523      0      0  3     0x14200  bored         drmhpwq
 18095  449503      0      0  3     0x14200  bored         drmhpwq
 29772  187522      0      0  3     0x14200  bored         drmhpwq
 23830   53583      0      0  3     0x14200  bored         drmhpwq
 25799  337351      0      0  3     0x14200  bored         drmwq
 64472   77172      0      0  3     0x14200  bored         drmwq
 96098  312017      0      0  3     0x14200  bored         drmwq
*18081  268381      0      0  3     0x14200  bored         drmwq
 68860  369856      0      0  3  0x40014200  acpi0         acpi0
 69872  393429      0      0  3     0x14200  bored         sensors
 66928  499473      0      0  3     0x14200  bored         softnet
 89306  465307      0      0  3     0x14200  bored         systqmp
 47370  222396      0      0  3     0x14200  bored         systq
 62380  482781      0      0  3  0x40014200  bored         softclock
 90358   27321      0      0  2  0x40014200  wfct          idle0
     1  315226      0      0  3        0x82  wait          init
     0       0     -1      0  3     0x10200  scheduler     swapper


dmesg:
OpenBSD 6.8 (GENERIC) #97: Sun Oct  4 18:00:46 MDT 2020
    [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 8384339968 (7995MB)
avail mem = 8115294208 (7739MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.2 @ 0x97265000 (56 entries)
bios0: vendor INSYDE Corp. version "1.07.05" date 10/24/2019
bios0: Notebook NJ50_70CU
acpi0 at bios0: ACPI 5.1
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP UEFI SSDT SSDT LPIT WSMT SSDT DBGP DBG2 SSDT SSDT NHLT HPET APIC MCFG DMAR SSDT FPDT BGRT acpi0: wakeup devices XHC_(S3) HDAS(S4) RP01(S3) PXSX(S4) RP02(S3) PXSX(S4) RP03(S3) PXSX(S4) RP04(S3) PXSX(S4) RP05(S3) PXSX(S4) RP06(S3) PXSX(S4) RP07(S3) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 23999999 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz, 15446.74 MHz, 06-8e-0c
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus -1 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiprt5 at acpi0: bus -1 (RP05)
acpiprt6 at acpi0: bus -1 (RP06)
acpiprt7 at acpi0: bus -1 (RP07)
acpiprt8 at acpi0: bus -1 (RP08)
acpiprt9 at acpi0: bus 1 (RP09)
acpiprt10 at acpi0: bus 6 (RP10)
acpiprt11 at acpi0: bus -1 (RP11)
acpiprt12 at acpi0: bus -1 (RP12)
acpiprt13 at acpi0: bus -1 (RP13)
acpiprt14 at acpi0: bus -1 (RP14)
acpiprt15 at acpi0: bus -1 (RP15)
acpiprt16 at acpi0: bus -1 (RP16)
acpiprt17 at acpi0: bus -1 (RP17)
acpiprt18 at acpi0: bus -1 (RP18)
acpiprt19 at acpi0: bus -1 (RP19)
acpiprt20 at acpi0: bus -1 (RP20)
acpiprt21 at acpi0: bus -1 (RP21)
acpiprt22 at acpi0: bus -1 (RP22)
acpiprt23 at acpi0: bus -1 (RP23)
acpiprt24 at acpi0: bus -1 (RP24)
acpiec0 at acpi0
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
acpicmos0 at acpi0
"SYNA1202" at acpi0 not configured
"ANX7411" at acpi0 not configured
"INT34BB" at acpi0 not configured
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID0
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 not present
"PNP0C14" at acpi0 not configured
acpihid0 at acpi0: HIDD
"CLV0001" at acpi0 not configured
"CLV0002" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpipwrres0 at acpi0: V0PR
acpipwrres1 at acpi0: V1PR
acpipwrres2 at acpi0: V2PR
acpipwrres3 at acpi0: WRST
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33), C1(1000@1 mwait.1), PSS
acpitz0 at acpi0: critical temperature is 120 degC
acpipwrres4 at acpi0: PIN_
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: Enhanced SpeedStep 15446 MHz: speeds: 2501, 2500, 2400, 2300, 2100, 2000, 1800, 1700, 1500, 1300, 1200, 1000, 800, 700, 600, 400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 vendor "Intel", unknown product 0x9b71 rev 0x0c inteldrm0 at pci0 dev 2 function 0 vendor "Intel", unknown product 0x9b41 rev 0x02
drm0 at inteldrm0
inteldrm0: msi, COFFEELAKE, gen 9
vendor "Intel", unknown product 0x02f9 (class DASP subclass miscellaneous, rev 0x00) at pci0 dev 18 function 0 not configured xhci0 at pci0 dev 20 function 0 vendor "Intel", unknown product 0x02ed rev 0x00: msi, xHCI 1.10
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1 vendor "Intel", unknown product 0x02ef (class memory subclass RAM, rev 0x00) at pci0 dev 20 function 2 not configured
iwx0 at pci0 dev 20 function 3 "Intel Wi-Fi 6 AX201" rev 0x00, msix
dwiic0 at pci0 dev 21 function 0 vendor "Intel", unknown product 0x02e8 rev 0x00: apic 2 int 16
iic0 at dwiic0
ihidev0 at iic0 addr 0x2c , can't establish interrupt (polling), vendor 0x6cb product 0xcd65, SYNA1202
ihidev0: 14 report ids
imt0 at ihidev0: touchpad, 5 contacts
wsmouse0 at imt0 mux 0
ims0 at ihidev0 reportid 2: 2 buttons
wsmouse1 at ims0 mux 0
hid at ihidev0 reportid 6 not configured
hid at ihidev0 reportid 7 not configured
hid at ihidev0 reportid 9 not configured
hid at ihidev0 reportid 10 not configured
hid at ihidev0 reportid 11 not configured
hid at ihidev0 reportid 12 not configured
hid at ihidev0 reportid 13 not configured
hid at ihidev0 reportid 14 not configured
dwiic1 at pci0 dev 21 function 1 vendor "Intel", unknown product 0x02e9 rev 0x00: apic 2 int 17
iic1 at dwiic1
"ANX7411" at iic1 addr 0x42 not configured
vendor "Intel", unknown product 0x02e0 (class communications subclass miscellaneous, rev 0x00) at pci0 dev 22 function 0 not configured ahci0 at pci0 dev 23 function 0 vendor "Intel", unknown product 0x02d3 rev 0x00: msi, AHCI 1.3.1
ahci0: port 0: 6.0Gb/s
ahci0: port 1: 1.5Gb/s
ahci0: port 2: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, WDC WD5000LPCX-2, 01.0> naa.50014ee65cfa28d2
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus1 targ 1 lun 0: <HL-DT-ST, DVDRAM GUD0N, 1.00> removable
sd1 at scsibus1 targ 2 lun 0: <ATA, LDLC F6+M.2 240, S090> t10.ATA_LDLC_F6+M.2_240_03242220F0164_
sd1: 228936MB, 512 bytes/sector, 468862128 sectors, thin
ppb0 at pci0 dev 29 function 0 vendor "Intel", unknown product 0x02b0 rev 0xf0
pci1 at ppb0 bus 1
rtsx0 at pci1 dev 0 function 0 "Realtek RTL8411B Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
re0 at pci1 dev 0 function 1 "Realtek 8168" rev 0x12: RTL8411B (0x5c80), msi, address 80:fa:5b:7a:21:9f
rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0
ppb1 at pci0 dev 29 function 1 vendor "Intel", unknown product 0x02b1 rev 0xf0
pci2 at ppb1 bus 6
pcib0 at pci0 dev 31 function 0 vendor "Intel", unknown product 0x0284 rev 0x00 azalia0 at pci0 dev 31 function 3 vendor "Intel", unknown product 0x02c8 rev 0x00: msi
azalia0: codecs: Realtek/0x0293, Intel/0x280b, using Realtek/0x0293
audio0 at azalia0
vendor "Intel", unknown product 0x02a3 (class serial bus subclass SMBus, rev 0x00) at pci0 dev 31 function 4 not configured vendor "Intel", unknown product 0x02a4 (class serial bus unknown subclass 0x80, rev 0x00) at pci0 dev 31 function 5 not configured
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
uvideo0 at uhub0 port 1 configuration 1 interface 0 "Sonix Technology Co., Ltd. BisonCam,NB Pro" rev 2.00/6.01 addr 2
video0 at uvideo0
uhidev0 at uhub0 port 5 configuration 1 interface 0 "Cherry USB keyboard" rev 2.00/1.03 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub0 port 5 configuration 1 interface 1 "Cherry USB keyboard" rev 2.00/1.03 addr 3
uhidev1: iclass 3/0, 5 report ids
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=3, output=0, feature=0
uhid2 at uhidev1 reportid 5: input=0, output=0, feature=5
uhidev2 at uhub0 port 7 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/72.00 addr 4
uhidev2: iclass 3/1
ums0 at uhidev2: 3 buttons, Z dir
wsmouse2 at ums0 mux 0
ugen0 at uhub0 port 10 "Intel product 0x0026" rev 2.01/0.02 addr 5
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd1a (1109b61c9c14d27a.a) swap on sd1b dump on sd1b
WARNING: / was not properly unmounted
inteldrm0: 1920x1080, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
iwx0: hw rev 0x350, fw ver 48.1335886879.0, address 7c:b2:7d:dd:ad:56
wsmouse2 detached
ums0 detached
uhidev2 detached
uhidev2 at uhub0 port 7 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/72.00 addr 4
uhidev2: iclass 3/1
ums0 at uhidev2: 3 buttons, Z dir
wsmouse2 at ums0 mux 0

usbdevs:
Controller /dev/usb0:
addr 01: 8086:0000 Intel, xHCI root hub
         super speed, self powered, config 1, rev 1.00
         driver: uhub0
addr 02: 5986:9102 Sonix Technology Co., Ltd., BisonCam,NB Pro
         high speed, power 500 mA, config 1, rev 6.01
         driver: uvideo0
addr 03: 046a:b090 Cherry, USB keyboard
         low speed, power 100 mA, config 1, rev 1.03
         driver: uhidev0
         driver: uhidev1
addr 04: 046d:c077 Logitech, USB Optical Mouse
         low speed, power 100 mA, config 1, rev 72.00
         driver: uhidev2
addr 05: 8087:0026 Intel, product 0x0026
         full speed, self powered, config 1, rev 0.02
         driver: ugen0

Reply via email to