https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287566

--- Comment #3 from polyduekes <[email protected]> ---
(In reply to Konstantin Belousov from comment #1)
upon doing p *((struct thread *)0xfffff801f4573740) i get a long list and i can
see that td_proc = 0xfffffe00b4139040 but upon doing p *((struct thread
*)0xfffff801f4573740)->td_proc) kgdb gives "Junk after end of expression."
sorry, i am not really familiar with kernel debugging, but when you ask to
switch to that thread, do you mean the thread with tid 102658? if yes then the
bt would be

(kgdb) thread find 102658 
Thread 1087 has target id 'Thread 102658'
(kgdb) thread 1087
[Switching to thread 1087 (Thread 102658)]
#0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
57              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct
pcpu,
(kgdb) bt
#0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:57
#1  doadump (textdump=<optimized out>) at /usr/src/sys/kern/kern_shutdown.c:405
#2  0xffffffff80b5a56b in kern_reboot (howto=260) at
/usr/src/sys/kern/kern_shutdown.c:523
#3  0xffffffff80b5aa69 in vpanic (fmt=0xffffffff81148989 "sleeping thread holds
%s", ap=ap@entry=0xfffffe00b507dc70)
    at /usr/src/sys/kern/kern_shutdown.c:967
#4  0xffffffff80b5a8a3 in panic (fmt=<unavailable>) at
/usr/src/sys/kern/kern_shutdown.c:891
#5  0xffffffff80bc1a3f in propagate_priority (td=0xfffff801f4573740) at
/usr/src/sys/kern/subr_turnstile.c:249
#6  0xffffffff80bc2527 in turnstile_wait (ts=ts@entry=0xfffff8017e66e540,
owner=owner@entry=0xfffff801f4573740, 
    queue=queue@entry=0) at /usr/src/sys/kern/subr_turnstile.c:807
#7  0xffffffff80b35ec5 in __mtx_lock_sleep (c=c@entry=0xfffffe00b4139180,
v=<optimized out>)
    at /usr/src/sys/kern/kern_mutex.c:668
#8  0xffffffff80b702cc in kern_thr_exit (td=td@entry=0xfffff8018e44e000) at
/usr/src/sys/kern/kern_thr.c:345
#9  0xffffffff80b70247 in sys_thr_exit (td=0xfffff8018e44e000, td@entry=<error
reading variable: value is not available>, 
    uap=0xfffff8018e44e400, uap@entry=<error reading variable: value is not
available>) at /usr/src/sys/kern/kern_thr.c:321
#10 0xffffffff8104e789 in syscallenter (td=0xfffff8018e44e000) at
/usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:165
#11 amd64_syscall (td=0xfffff8018e44e000, traced=0) at
/usr/src/sys/amd64/amd64/trap.c:1241
#12 <signal handler called>
#13 0x0000000853df5fda in ?? ()
Backtrace stopped: Cannot access memory at address 0x9727b9a88

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to