tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: SIGBUS + coredump



On 19.01.2019 18:32, Jason Thorpe wrote:
> 
> 
>> On Jan 19, 2019, at 8:55 AM, David Holland <dholland-tech%netbsd.org@localhost> wrote:
>>
>> That's equivalent to writing out zeros (but more efficient) -- I would
>> say the page shouldn't appear in the dump at all on the grounds that
>> it doesn't actually exist.
>>
>> Whether it's ok to have an empty segment, I dunno. See if gdb chokes
>> on it :-)
> 
> Hm, then perhaps I'm misremembering how this is supposed to be represented in the core.  The issue is that there *is* a mapping at the virtual address, but that fault can't be serviced.  Making it appear as zeros or ZFOD gives the wrong impression to the person doing the debugging.
> 
> -- thorpej
> 

I will skip these inaccessible segments (mappings) in a core(5) file
generator.

From a debugger point of view, skipping it is perhaps more verbose that
it's not accessible.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index