Are DDB custom function hooks broken in head?

From: Sean Bruno <sbruno_at_ignoranthack.me>
Date: Wed, 15 Jul 2015 13:24:46 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

I added a couple of DDB_HOOKS to em(4) recently and they definitely used
to work.  :-)


KDB: enter: Break to debugger
[ thread pid 11 tid 100006 ]
Stopped at      kdb_alt_break_internal+0x197:   movq    $0,kdb_why
db> help
ahd_dump        ahd_in          ahd_out         ahd_pause
ahd_sunit       ahd_unpause     alltrace        b
break           bt              c               call
capture         continue        countfreebufs   d
delete          dhwatch         dump            dwatch
em_dump_queue   em_reset_dev    examine         findstack
gdb             halt            hwatch          kill
match           next            p               panic
print           ps              reboot          reset
run             s               script          scripts
search          set             show            step
t               textdump        thread          trace
unscript        until           w               watch
watchdog        where           write           x
db> call em_dump_queue
Symbol not found
KDB: reentering
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame
0xfffffe00f7128160
kdb_reenter() at kdb_reenter+0x33/frame 0xfffffe00f7128170
db_term() at db_term+0x88/frame 0xfffffe00f7128190
db_unary() at db_unary+0x74/frame 0xfffffe00f71281b0
db_mult_expr() at db_mult_expr+0x1b/frame 0xfffffe00f71281f0
db_add_expr() at db_add_expr+0x1b/frame 0xfffffe00f7128230
db_expression() at db_expression+0x1d/frame 0xfffffe00f7128280
db_fncall() at db_fncall+0x17/frame 0xfffffe00f7128320
db_command() at db_command+0x361/frame 0xfffffe00f71283e0
db_command_loop() at db_command_loop+0x64/frame 0xfffffe00f71283f0
db_trap() at db_trap+0xdb/frame 0xfffffe00f7128480
kdb_trap() at kdb_trap+0x194/frame 0xfffffe00f7128510
trap() at trap+0x4a1/frame 0xfffffe00f7128720
calltrap() at calltrap+0x8/frame 0xfffffe00f7128720
- --- trap 0x3, rip = 0xffffffff80716767, rsp = 0xfffffe00f71287e0, rbp
= 0xfffffe00f7128810 ---
kdb_alt_break_internal() at kdb_alt_break_internal+0x197/frame
0xfffffe00f7128810
kdb_alt_break() at kdb_alt_break+0xb/frame 0xfffffe00f7128820
uart_intr_rxready() at uart_intr_rxready+0x99/frame 0xfffffe00f7128850
uart_intr() at uart_intr+0x111/frame 0xfffffe00f7128890
intr_event_handle() at intr_event_handle+0x9c/frame 0xfffffe00f71288e0
intr_execute_handlers() at intr_execute_handlers+0x48/frame
0xfffffe00f7128910
lapic_handle_intr() at lapic_handle_intr+0x68/frame 0xfffffe00f7128950
Xapic_isr1() at Xapic_isr1+0xba/frame 0xfffffe00f7128950
- --- interrupt, rip = 0xffffffff80aa29f6, rsp = 0xfffffe00f7128a10, rbp
= 0xfffffe00f7128a20 ---
acpi_cpu_c1() at acpi_cpu_c1+0x6/frame 0xfffffe00f7128a20
acpi_cpu_idle() at acpi_cpu_idle+0x304/frame 0xfffffe00f7128a70
cpu_idle_acpi() at cpu_idle_acpi+0x3f/frame 0xfffffe00f7128a90
cpu_idle() at cpu_idle+0x92/frame 0xfffffe00f7128ab0
sched_idletd() at sched_idletd+0x4d5/frame 0xfffffe00f7128bb0
fork_exit() at fork_exit+0x84/frame 0xfffffe00f7128bf0
fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe00f7128bf0
- --- trap 0, rip = 0, rsp = 0xfffffe00f7128cb0, rbp = 0 ---
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQF8BAEBCgBmBQJVpsGOXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx
MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5kQA4IALLPfpIQp+O5FdZ+kz3neWE5
mISnUcMC37EAwFyqjXOo8ocbzpdrn44jhNlRnCU6kQm9VHJQn7pAkLXeeBNG8YF4
n9Scit5JNF9RyU5zePiGQZ862VoxEPS82h0c4EwoHJygAuL9t+7KVWAhekfnolRB
eEuCMyT8o2eUBV2lcjPltJMAB2MlWY7tFR3u+Zdr6V13oNXvLbSCQThDxwJZFbZ8
Ej+0DL4qH+Pt1uQSqLDoPIJjgL2kTgQ4ZzuKyxiCLwC0HEfD0viF11H2Qr3H9hTy
j6hP2ZMemSmWGTWKiH7v92yp7iZu+KUFZ+PC7SasMEO8T229JNP+/7H038h5MNE=
=0wOm
-----END PGP SIGNATURE-----
Received on Wed Jul 15 2015 - 18:24:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:58 UTC