Bug 272119 - bnxt: instapanic with debug kernel
Summary: bnxt: instapanic with debug kernel
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2023-06-21 01:53 UTC by Alan Somers
Modified: 2023-11-09 10:59 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer freebsd_triage 2023-06-21 01:53:35 UTC
When I boot a system based on 13.1-RELEASE with a debug kernel, it instapanics while probing PCI devices.  The panic happens early in the boot, before any RC scripts are run.  So it's independent of my system configuration, and also I can't get a core dump.

Here is the stack trace printed to the serial console

panic: general protection fault
cpuid = 0
time = 1
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffffff82f3b580
vpanic() at vpanic+0x17f/frame 0xffffffff82f3b5d0
panic() at panic+0x43/frame 0xffffffff82f3b630
trap_fatal() at trap_fatal+0x385/frame 0xffffffff82f3b690
calltrap() at calltrap+0x8/frame 0xffffffff82f3b690
--- trap 0x9, rip = 0xffffffff80c757e0, rsp = 0xffffffff82f3b760, rbp = 0xffffffff82f3b7b0 ---
taskqgroup_attach() at taskqgroup_attach+0x150/frame 0xffffffff82f3b7b0
bnxt_attach_pre() at bnxt_attach_pre+0x78c/frame 0xffffffff82f3b820
iflib_device_register() at iflib_device_register+0x134/frame 0xffffffff82f3b8b0
iflib_device_attach() at iflib_device_attach+0xb5/frame 0xffffffff82f3b8e0
device_attach() at device_attach+0x3c1/frame 0xffffffff82f3b920
device_probe_and_attach() at device_probe_and_attach+0x70/frame 0xffffffff82f3b950
bus_generic_attach() at bus_generic_attach+0x18/frame 0xffffffff82f3b970
pci_attach() at pci_attach+0xe0/frame 0xffffffff82f3b9b0
acpi_pci_attach() at acpi_pci_attach+0x19/frame 0xffffffff82f3ba00
device_attach() at device_attach+0x3c1/frame 0xffffffff82f3ba40
device_probe_and_attach() at device_probe_and_attach+0x70/frame 0xffffffff82f3ba70
bus_generic_attach() at bus_generic_attach+0x18/frame 0xffffffff82f3ba90
acpi_pcib_pci_attach() at acpi_pcib_pci_attach+0xa0/frame 0xffffffff82f3bad0
device_attach() at device_attach+0x3c1/frame 0xffffffff82f3bb10
device_probe_and_attach() at device_probe_and_attach+0x70/frame 0xffffffff82f3bb40
bus_generic_attach() at bus_generic_attach+0x18/frame 0xffffffff82f3bb60
pci_attach() at pci_attach+0xe0/frame 0xffffffff82f3bba0
acpi_pci_attach() at acpi_pci_attach+0x19/frame 0xffffffff82f3bbf0
device_attach() at device_attach+0x3c1/frame 0xffffffff82f3bc30
device_probe_and_attach() at device_probe_and_attach+0x70/frame 0xffffffff82f3bc60
bus_generic_attach() at bus_generic_attach+0x18/frame 0xffffffff82f3bc80
acpi_pcib_acpi_attach() at acpi_pcib_acpi_attach+0x42d/frame 0xffffffff82f3bce0
device_attach() at device_attach+0x3c1/frame 0xffffffff82f3bd20
device_probe_and_attach() at device_probe_and_attach+0x70/frame 0xffffffff82f3bd50
bus_generic_attach() at bus_generic_attach+0x18/frame 0xffffffff82f3bd70
acpi_probe_children() at acpi_probe_children+0x207/frame 0xffffffff82f3bdd0
acpi_attach() at acpi_attach+0x9a6/frame 0xffffffff82f3be60
device_attach() at device_attach+0x3c1/frame 0xffffffff82f3bea0
device_probe_and_attach() at device_probe_and_attach+0x70/frame 0xffffffff82f3bed0
bus_generic_attach() at bus_generic_attach+0x18/frame 0xffffffff82f3bef0
device_attach() at device_attach+0x3c1/frame 0xffffffff82f3bf30
device_probe_and_attach() at device_probe_and_attach+0x70/frame 0xffffffff82f3bf60
bus_generic_new_pass() at bus_generic_new_pass+0xed/frame 0xffffffff82f3bf90
bus_set_pass() at bus_set_pass+0x46/frame 0xffffffff82f3bfc0
configure() at configure+0x9/frame 0xffffffff82f3bfd0
mi_startup() at mi_startup+0xdc/frame 0xffffffff82f3bff0
btext() at btext+0x22
Comment 1 Mina Galić freebsd_triage 2023-06-21 06:35:35 UTC
13.1 is going EoL soon. but: what's the chance any of that code has been touched between 13.1 and 13.2 (or, now)
Comment 2 Eugene Grosbein freebsd_committer freebsd_triage 2023-11-09 10:59:35 UTC
dumpdev works if set via loader.conf or loader prompt, e.g.:

dumpdev=/dev/ada0s1b