[Crash-utility] ARM: gcore, arm_regsets causes segfault

Lei Wen adrian.wenl at gmail.com
Sun May 13 15:06:10 UTC 2012


Hi HATAYAMA,

On Thu, May 10, 2012 at 8:24 AM, HATAYAMA Daisuke
<d.hatayama at jp.fujitsu.com> wrote:
> From: Per Fransson <per.fransson.ml at gmail.com>
> Subject: [Crash-utility] ARM: gcore, arm_regsets causes segfault
> Date: Wed, 9 May 2012 18:01:56 +0200
>
>> Hi,
>>
>> The for loop in
>>
>>    libgcore/gcore_coredump.c:fill_thread_core_info()
>>
>> does a
>>
>>    notesize(struct memelfnote *)
>>
>> where memelfnote->name points to the name of the corresponding
>> arm_regset member (except REGSET_GPR).
>>
>> But notesize calls strlen on those strings and
>>
>>    arm_regsets[REGSET_VFP]->name == 0x0
>>
>> making it segfault.
>>
>> Regards,
>> Per
>>
>
> Hello Fransson,
>
> Thanks for your report.
>
> Lei, could you review and test attached patch?


I'm ok with this patch, and it pass my local test.

Thanks,
Lei




More information about the Crash-utility mailing list