Re: Crash loading dtraceall

From: Larry Rosenman <ler_at_FreeBSD.org>
Date: Wed, 08 May 2019 17:47:08 -0500
On 05/08/2019 5:29 pm, Mark Johnston wrote:
> 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.
> 


(kgdb) bt
#0  __curthread () at /usr/src/sys/amd64/include/pcpu.h:241
#1  doadump (textdump=1) at /usr/src/sys/kern/kern_shutdown.c:383
#2  0xffffffff80496320 in kern_reboot (howto=260) at 
/usr/src/sys/kern/kern_shutdown.c:470
#3  0xffffffff80496799 in vpanic (fmt=<optimized out>, ap=<optimized 
out>) at /usr/src/sys/kern/kern_shutdown.c:896
#4  0xffffffff804964d3 in panic (fmt=<unavailable>) at 
/usr/src/sys/kern/kern_shutdown.c:823
#5  0xffffffff80767314 in trap_fatal (frame=0xfffffe00d74d7cd0, eva=0) 
at /usr/src/sys/amd64/amd64/trap.c:946
#6  0xffffffff80767379 in trap_pfault (frame=0xfffffe00d74d7cd0, 
usermode=0) at /usr/src/sys/amd64/amd64/trap.c:765
#7  0xffffffff80766964 in trap (frame=0xfffffe00d74d7cd0) at 
/usr/src/sys/amd64/amd64/trap.c:441
#8  <signal handler called>
#9  fbt_provide_module_function (lf=0xfffff800020ff000, symindx=30763, 
symval=0xfffffe00d74d7e00, opaque=0xfffffe00d74d7e50) at 
/usr/src/sys/cddl/dev/fbt/x86/fbt_isa.c:191
#10 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
#11 0xffffffff825ca33e in fbt_provide_module (arg=<optimized out>, 
lf=0xfffff800020ff000) at /usr/src/sys/cddl/dev/fbt/fbt.c:204
#12 0xffffffff825ca242 in fbt_linker_file_cb (lf=0xffffffff825cbe45, 
arg=0xffffffff812c9541) at /usr/src/sys/cddl/dev/fbt/fbt.c:1103
#13 0xffffffff8046d772 in linker_file_foreach 
(predicate=0xffffffff825ca230 <fbt_linker_file_cb>, context=0x0) at 
/usr/src/sys/kern/kern_linker.c:594
#14 0xffffffff8046cb58 in linker_file_sysinit (lf=0xfffff80002a5da00) at 
/usr/src/sys/kern/kern_linker.c:236
#15 linker_load_file (filename=<optimized out>, result=<optimized out>) 
at /usr/src/sys/kern/kern_linker.c:462
#16 linker_load_module (kldname=<optimized out>, 
modname=0xffffffff81d792ae "fbt", parent=<optimized out>, 
verinfo=<optimized out>, lfpp=0x0) at 
/usr/src/sys/kern/kern_linker.c:2110
#17 0xffffffff8046f1bd in linker_load_dependencies 
(lf=0xfffff8002389a400) at /usr/src/sys/kern/kern_linker.c:2200
#18 0xffffffff80797f3e in link_elf_load_file (cls=<optimized out>, 
filename=0xfffff80003d592c0 "/boot/kernel/dtraceall.ko", 
result=0xfffffe00d74d8898) at /usr/src/sys/kern/link_elf_obj.c:1010
#19 0xffffffff8046c96f in LINKER_LOAD_FILE (cls=0xffffffff80acccc0 
<link_elf_class>, filename=<optimized out>, result=0x0) at 
./linker_if.h:180
#20 linker_load_file (filename=<optimized out>, result=<optimized out>) 
at /usr/src/sys/kern/kern_linker.c:447
#21 linker_load_module (kldname=<optimized out>, 
modname=0xfffff800231a7800 "dtraceall", parent=<optimized out>, 
verinfo=<optimized out>, lfpp=0xfffffe00d74d8a38) at 
/usr/src/sys/kern/kern_linker.c:2110
#22 0xffffffff8046e297 in kern_kldload (td=0xfffff80114df9000, 
file=<optimized out>, fileid=0xfffffe00d74d8a74) at 
/usr/src/sys/kern/kern_linker.c:1089
#23 0xffffffff8046e35b in sys_kldload (td=0xfffff80114df9000, 
uap=<optimized out>) at /usr/src/sys/kern/kern_linker.c:1115
#24 0xffffffff80767ddc in syscallenter (td=0xfffff80114df9000) at 
/usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:135
#25 amd64_syscall (td=0xfffff80114df9000, traced=0) at 
/usr/src/sys/amd64/amd64/trap.c:1166
#26 <signal handler called>
#27 0x00000008002de43a in ?? ()
Backtrace stopped: Cannot access memory at address 0x7fffffffe658
(kgdb) fr 9
#9  fbt_provide_module_function (lf=0xfffff800020ff000, symindx=30763, 
symval=0xfffffe00d74d7e00, opaque=0xfffffe00d74d7e50) at 
/usr/src/sys/cddl/dev/fbt/x86/fbt_isa.c:191
191			if (*instr == FBT_PUSHL_EBP)
(kgdb) print *lf
$1 = {ops = 0xfffff800020f6000, refs = 202, userrefs = 1, flags = 1, 
link = {tqe_next = 0xfffff800020fec00, tqe_prev = 0xffffffff80c767d0 
<linker_files>}, filename = 0xfffff80002101030 "kernel",
   pathname = 0xfffff80002104080 "/boot/kernel/kernel", id = 1, address = 
0xffffffff80200000 "\177ELF\002\001\001\t", size = 17612816, ctors_addr 
= 0x0, ctors_size = 0, ndeps = 0, deps = 0x0, common = {stqh_first = 
0x0,
     stqh_last = 0xfffff800020ff070}, modules = {tqh_first = 
0xfffff800020e5800, tqh_last = 0xfffff80002116790}, loaded = {tqe_next = 
0x0, tqe_prev = 0x0}, loadcnt = 1, nenabled = 0, fbt_nentries = 25062}
(kgdb)


-- 
Larry Rosenman                     http://people.freebsd.org/~ler
Phone: +1 214-642-9640                 E-Mail: ler_at_FreeBSD.org
US Mail: 5708 Sabbia Dr, Round Rock, TX 78665-2106
Received on Wed May 08 2019 - 20:47:10 UTC

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