Re: Crash loading dtraceall

From: Mark Johnston <markj_at_freebsd.org>
Date: Wed, 8 May 2019 18:29:32 -0400
On Wed, May 08, 2019 at 03:52:45PM -0500, Larry Rosenman wrote:
> Greetings,
> 
>     Somewhere between r346483 and r347241 loading dtraceall causes a
>     crash.  I have the cores and kernels. 
> 
>     It's hard for me to bisect more than this, as the box is remote. 
> 
>     What more do you need?  (this dump is fropm r347355). 

Please visit frame 8 and print *lf.

> Loaded symbols for /boot/kernel/fbt.ko
> #0  doadump (textdump=1) at src/sys/amd64/include/pcpu.h:241
> 241             __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (OFFSETOF_CURTHREAD));
> (kgdb) #0  doadump (textdump=1) at src/sys/amd64/include/pcpu.h:241
> #1  0xffffffff80496320 in kern_reboot (howto=260)
>     at /usr/src/sys/kern/kern_shutdown.c:470
> #2  0xffffffff80496799 in vpanic (fmt=<value optimized out>,
>     ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:896
> #3  0xffffffff804964d3 in panic (fmt=<value optimized out>)
>     at /usr/src/sys/kern/kern_shutdown.c:823
> #4  0xffffffff80767314 in trap_fatal (frame=0xfffffe00d74d7cd0, eva=0)
>     at /usr/src/sys/amd64/amd64/trap.c:946
> #5  0xffffffff80767379 in trap_pfault (frame=0xfffffe00d74d7cd0, usermode=0)
>     at src/sys/amd64/include/pcpu.h:241
> #6  0xffffffff80766964 in trap (frame=0xfffffe00d74d7cd0)
>     at /usr/src/sys/amd64/amd64/trap.c:441
> #7  0xffffffff80740805 in calltrap ()
>     at /usr/src/sys/amd64/amd64/exception.S:232
> #8  0xffffffff825cb5ea in fbt_provide_module_function (lf=0xfffff800020ff000,
>     symindx=30763, symval=0xfffffe00d74d7e00, opaque=0xfffffe00d74d7e50)
>     at /usr/src/sys/cddl/dev/fbt/x86/fbt_isa.c:190
> #9  0xffffffff804bf8f7 in link_elf_each_function_nameval (
>     file=0xfffff800020ff000,
>     callback=0xffffffff825cb570 <fbt_provide_module_function>,
>     opaque=0xfffffe00d74d7e50) at /usr/src/sys/kern/link_elf.c:1513
> #10 0xffffffff825ca33e in fbt_provide_module (arg=<value optimized out>,
>     lf=0xfffff800020ff000) at /usr/src/sys/cddl/dev/fbt/fbt.c:204
> #11 0xffffffff825ca242 in fbt_linker_file_cb (lf=<value optimized out>,
>     arg=<value optimized out>) at /usr/src/sys/cddl/dev/fbt/fbt.c:1103
> #12 0xffffffff8046d772 in linker_file_foreach (
>     predicate=0xffffffff825ca230 <fbt_linker_file_cb>, context=0x0)
>     at /usr/src/sys/kern/kern_linker.c:594
> #13 0xffffffff8046cb58 in linker_load_module (kldname=<value optimized out>,
>     modname=0xffffffff81d792ae "fbt", parent=<value optimized out>,
>     verinfo=<value optimized out>, lfpp=0x0)
>     at /usr/src/sys/kern/kern_linker.c:236
> #14 0xffffffff8046f1bd in linker_load_dependencies (lf=0xfffff8002389a400)
>     at /usr/src/sys/kern/kern_linker.c:2200
> #15 0xffffffff80797f3e in link_elf_load_file (cls=<value optimized out>,
>     filename=0xfffff80003d592c0 "/boot/kernel/dtraceall.ko",
>     result=0xfffffe00d74d8898) at /usr/src/sys/kern/link_elf_obj.c:1010
> #16 0xffffffff8046c96f in linker_load_module (kldname=<value optimized out>,
>     modname=0xfffff800231a7800 "dtraceall", parent=<value optimized out>,
>     verinfo=<value optimized out>, lfpp=0xfffffe00d74d8a38) at linker_if.h:180
> #17 0xffffffff8046e297 in kern_kldload (td=0xfffff80114df9000,
>     file=<value optimized out>, fileid=0xfffffe00d74d8a74)
>     at /usr/src/sys/kern/kern_linker.c:1089
> #18 0xffffffff8046e35b in sys_kldload (td=0xfffff80114df9000,
>     uap=<value optimized out>) at /usr/src/sys/kern/kern_linker.c:1115
> #19 0xffffffff80767ddc in amd64_syscall (td=0xfffff80114df9000, traced=0)
>     at src/sys/amd64/amd64/../../kern/subr_syscall.c:135
> #20 0xffffffff807410ed in fast_syscall_common ()
>     at /usr/src/sys/amd64/amd64/exception.S:504
> #21 0x00000008002de43a in ?? ()
> Previous frame inner to this frame (corrupt stack?)
> Current language:  auto; currently minimal
> (kgdb)
> -- 
> Larry Rosenman                         https://people.FreeBSD.org/~ler/
> Phone: +1 214-642-9640                 E-Mail: ler_at_FreeBSD.org
> US Mail: 5708 Sabbia Drive, Round Rock, TX 78665-2106
Received on Wed May 08 2019 - 20:29:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:20 UTC