RE: New panic in main-n253273-a52d8d4a6c6:

From: Michael Jung <mikej_at_paymentallianceintl.com>
Date: Mon, 21 Feb 2022 23:42:28 UTC
Hi:

I was trying to remember what I did that was odd when this crash occurred then it
hit me.  You can repeat this panic by doing:

# watch -I -W pts/0

Here is another panic that happened write after issuing "watch" for comparison.

http://mail.mikej.com/core.txt.1

http://mail.mikej.com/info.1

http://mail.mikej.com/vmcore.1

--mikej

-----Original Message-----
From: Michael Jung
Sent: Monday, February 21, 2022 6:22 PM
To: 'Hans Petter Selasky' <hps@selasky.org>; freebsd-current <freebsd-current@freebsd.org>
Subject: RE: New panic in main-n253273-a52d8d4a6c6:



-----Original Message-----
From: Hans Petter Selasky [mailto:hps@selasky.org]
Sent: Monday, February 21, 2022 8:53 AM
To: Michael Jung <mikej@paymentallianceintl.com>; freebsd-current <freebsd-current@freebsd.org>
Subject: Re: New panic in main-n253273-a52d8d4a6c6:

On 2/21/22 14:07, Michael Jung wrote:
> (kgdb) fram 16
> #16 0xffffffff80bad587 in closefp_impl (fdp=0xfffffe012b7c0430, fd=4, fp=0xfffff801cc119280, td=0xfffffe00df8d0560, audit=true) at /usr/src/sys/kern/kern_descrip.c:1300
> 1300            error = closef(fp, td);
>
> (kgdb) print /x *fdp
> $1 = {fd_files = 0xfffffe00df6d9000, fd_map = 0xfffff80001bb1800, fd_freefile = 0x4, fd_refcnt = 0x1, fd_holdcnt = 0x1, fd_sx = {lock_object = {lo_name = 0xffffffff8124f6a9, lo_flags = 0x2330000, lo_data = 0x0,
>        lo_witness = 0xfffff8041eb94000}, sx_lock = 0x1}, fd_kqlist =
> {tqh_first = 0x0, tqh_last = 0x0}, fd_holdleaderscount = 0x0,
> fd_holdleaderswakeup = 0x0}
> (kgdb)

Can you also:

print /x *fp

in the same frame?

--HPS



Unread portion of the kernel message buffer:
panic: refcount 0xfffff801cc119284 wraparound cpuid = 7 time = 1645382575
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0119a83c80
vpanic() at vpanic+0x17f/frame 0xfffffe0119a83cd0
panic() at panic+0x43/frame 0xfffffe0119a83d30
fdclose() at fdclose/frame 0xfffffe0119a83dc0
closefp_impl() at closefp_impl+0x77/frame 0xfffffe0119a83e00
amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe0119a83f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe0119a83f30
--- syscall (6, FreeBSD ELF64, sys_close), rip = 0x3309a531b62a, rsp = 0x3309a2802bc8, rbp = 0x3309a2803000 ---
KDB: enter: panic

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,


(kgdb) frame 16
#16 0xffffffff80bad587 in closefp_impl (fdp=0xfffffe012b7c0430, fd=4, fp=0xfffff801cc119280, td=0xfffffe00df8d0560, audit=true) at /usr/src/sys/kern/kern_descrip.c:1300
1300            error = closef(fp, td);


(kgdb) print /x *fp
$1 = {f_flag = 0x5, f_count = 0xffffffff, f_data = 0xfffff800158b0400, f_ops = 0xffffffff81b052d0, f_vnode = 0xfffff800d9156000, f_cred = 0xfffff801d81be400, f_type = 0x1, f_vnread_flags = 0x0, {f_seqcount = {0x0,
      0x0}, f_pipegen = 0x0}, f_nextoff = {0x0, 0x0}, f_vnun = {fvn_cdevpriv = 0x0, fvn_advice = 0x0}, f_offset = 0x0}
(kgdb)




CONFIDENTIALITY NOTE: This message is intended only for the use
of the individual or entity to whom it is addressed and may
contain information that is privileged, confidential, and
exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby
notified that any dissemination, distribution or copying
of this communication is strictly prohibited. If you have
received this transmission in error, please notify us by
telephone at (502) 212-4000 or notify us at PAI, Dept. 99,
2101 High Wickham Place, Suite 101, Louisville, KY 40245

Disclaimer

The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.