Re: Extending coredump note section to contain filenames

From: H. Peter Anvin
Date: Mon Mar 12 2012 - 18:21:09 EST


On 03/12/2012 09:53 AM, Jan Kratochvil wrote:
>
>> Why we don't save library names in coredump?
>
> Because they are useless. If you have a filename there how to find which
> content it should match? Even if you verify the file is still there with the
> same content there is a race it can no longer be true when you read the core
> file 5 seconds later.
>
> The build-id mapping server above always works and without races.
>

It seems to me that there would be value in having *both*.

In particular, for libraries which aren't installed in standard system
directories (because they are test versions or mapped with dlopen()) it
would be good to have a hint of where to find them. The build-id can
then tell you if you have the right version.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/