Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash with mismatched CTF archive #103

Open
thesamesam opened this issue Sep 7, 2024 · 0 comments
Open

Crash with mismatched CTF archive #103

thesamesam opened this issue Sep 7, 2024 · 0 comments

Comments

@thesamesam
Copy link

This happens sometimes after rebuilding the kernel and the CTF archive doesn't match the running kernel.

(gdb) bt
#0  0x00007ffff7eaf157 in dt_btf_add_to_ctf (dtp=dtp@entry=0x555555561350, btf=btf@entry=0x55555cd11b40, ctf=ctf@entry=0x55555cd4d6c0, type_id=25) at libdtrace/dt_btf.c:386
#1  0x00007ffff7eaf079 in dt_btf_add_to_ctf (dtp=dtp@entry=0x555555561350, btf=btf@entry=0x55555cd11b40, ctf=ctf@entry=0x55555cd4d6c0, type_id=<optimized out>, type_id@entry=148898)
    at libdtrace/dt_btf.c:597
#2  0x00007ffff7eafb1a in dt_btf_to_ctf (dtp=0x555555561350, dmp=<optimized out>, btf=0x55555cd11b40) at libdtrace/dt_btf.c:750
#3  0x00007ffff7eafc51 in dt_btf_module_ctf (dtp=dtp@entry=0x555555561350, dmp=dmp@entry=0x555556bf14d0) at libdtrace/dt_btf.c:806
#4  0x00007ffff7eebda2 in dt_kern_module_ctf_from_btf (dtp=0x555555561350, dmp=0x555556bf14d0) at libdtrace/dt_module.c:848
#5  dt_kern_module_find_ctf (dtp=0x555555561350, dmp=0x555556bf14d0) at libdtrace/dt_module.c:1023
#6  dt_module_load (dtp=dtp@entry=0x555555561350, dmp=dmp@entry=0x555556bf14d0) at libdtrace/dt_module.c:403
#7  0x00007ffff7eed946 in dtrace_lookup_by_name (dtp=dtp@entry=0x555555561350, object=object@entry=0xfffffffffffffffe <error: Cannot access memory at address 0xfffffffffffffffe>,
    name=name@entry=0x555556d86590 "event_show", symp=<optimized out>, symp@entry=0x0, sip=sip@entry=0x7fffffffdee0) at libdtrace/dt_module.c:1658
#8  0x00007ffff7f1215c in populate (dtp=0x555555561350) at libdtrace/dt_prov_fbt.c:126
#9  0x00007ffff7eee66b in dtrace_init (dtp=0x555555561350) at libdtrace/dt_open.c:1218
#10 0x0000555555555f8a in main (argc=2, argv=0x7fffffffe388) at cmd/dtrace.c:1343
(gdb) frame 0
#0  0x00007ffff7eaf157 in dt_btf_add_to_ctf (dtp=dtp@entry=0x555555561350, btf=btf@entry=0x55555cd11b40, ctf=ctf@entry=0x55555cd4d6c0, type_id=25) at libdtrace/dt_btf.c:386
386                             return dtp->dt_shared_btf->ctfids[type_id];
(gdb) p type_id
$1 = 25
(gdb) p dtp->dt_shared_btf
$2 = (struct dt_btf *) 0x5555569ef0f0
(gdb) p *dtp->dt_shared_btf
$3 = {data = 0x7ffff4e00010, size = 6610139, hdr = 0x7ffff4e00010, sdata = 0x7ffff51a62a0 "", ssize = 0, type_cnt = 148895, types = 0x555557093140, ctfids = 0x0}
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant