[minicoredumper] [PATCH] Read the stack pointer from the 28th field of /proc/PID/stat

John Ogness john.ogness at linutronix.de
Mon Jan 8 20:15:25 CET 2018


On 2018-01-08, Łukasz Stelmach <l.stelmach at samsung.com> wrote:
>>> since Linix v4.9 (commit 0a1eb2d4 precisely) esp and eip values has
>>> been set to 0 in the stat file. I am working around this problem.
>>
>> This problem has already been identified and fixed. The original
>> proposal (by Marco Felsch) was to manually retrieve this information
>> [0]. However, this required manually implementing all platforms Linux
>> supported.
>
> I almost finished this for ARM and Intel on Friday myself ;-) I wonder
> if it could be included as an option?

But why? The kernel provides this information for us already.

> There are configurations where /proc is inaccessible for minicordumper
> due to MAC (SMACK, SELinux etc.)  restrictions.

The minicoredumper relies on /proc for more information than the stack
pointer. It would be a new requirement if /proc is not available and we
would need to carefully look at everything that would need to be
implemented.

John Ogness



More information about the minicoredumper mailing list