From owner-freebsd-current@freebsd.org Wed Jul 15 20:24:50 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 823079A20E3 for ; Wed, 15 Jul 2015 20:24:50 +0000 (UTC) (envelope-from sbruno@ignoranthack.me) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5168C1FDB for ; Wed, 15 Jul 2015 20:24:49 +0000 (UTC) (envelope-from sbruno@ignoranthack.me) Received: from [192.168.200.214] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 97F98193DA3 for ; Wed, 15 Jul 2015 20:24:47 +0000 (UTC) Message-ID: <55A6C18E.1010108@ignoranthack.me> Date: Wed, 15 Jul 2015 13:24:46 -0700 From: Sean Bruno Reply-To: sbruno@freebsd.org User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: FreeBSD current Subject: Are DDB custom function hooks broken in head? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jul 2015 20:24:50 -0000 -----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-----