Re: ktrace on NFSroot failing?

From: Rick Macklem <rmacklem_at_uoguelph.ca>
Date: Mon, 28 Mar 2022 22:38:46 UTC
John Baldwin <jhb@FreeBSD.org> wrote:
> On 3/10/22 8:14 AM, Mateusz Guzik wrote:
>> On 3/10/22, Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> wrote:
>>> Hi,
>>>
>>> I am having a weird issue with ktrace on an nfsroot machine:
>>>
>>> root:/tmp # ktrace sleep 1
>>> root:/tmp # kdump
>>> -559038242  Events dropped.
>>> kdump: bogus length 0xdeadc0de
>>>
>>> Anyone seen something like this before?
>>>
>>
>> I just did a quick check and it definitely fails on nfs mounts:
>> # ktrace pwd
>> /root/mjg
>> # kdump
>> -559038242  Events dropped.
>> kdump: bogus length 0xdeadc0de
>>
>> I don't have time to look into it this week though.
I have committed the patch (that was attached to a previous email)
to main, since bz@ confirmed via email that it fixed the ktrace problem
for him.

>Possibly related: core dumps are no longer working for me on NFS
>mounts.  I get a 0 byte foo.core instead of a valid core dump.
If core dumps still fail for a main with the patch, please let us know,
so we can investigate further.

Thanks and sorry for the breakage, rick

--
John Baldwin