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

HATAYAMA Daisuke d.hatayama at jp.fujitsu.com
Thu May 10 00:24:03 UTC 2012


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?

Thanks.
HATAYAMA, Daisuke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-arm-fix-segfault-at-notesize-calculation.patch
Type: text/x-patch
Size: 859 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20120510/6cb6c1db/attachment.bin>


More information about the Crash-utility mailing list