[PATCH] libebl: Add ebl_unwind_ret_mask.

Mark Wielaard mjw at redhat.com
Sun Jun 15 20:21:31 UTC 2014


On Sun, 2014-06-15 at 21:59 +0200, Kurt Roeckx wrote:
> On Sun, Jun 15, 2014 at 09:27:32PM +0200, Kurt Roeckx wrote:
> > 
> > I'm not sure what that code is doing there.  But it seems to be
> > looking at a 64 bit core file (x86_64, arm64, s390x) and then
> > create a 64 bit pointer is trying to dereference that.
> 
> That would be a pointer to a 64 bit object of course.  Sparc
> probably has stricter alignment requirements than the other
> arches.  I just wonder why it worked before.

Indeed. You seem to be right that we are trying to read possibly
unaligned data which would cause a bus error on sparc. There was even a
helpful FIXME in the code about it. Why we didn't see that before is a
mystery. But the attached patch should solve it. Could you test it?

Thanks,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libdwfl-linux-core-attach.c-handle-possible-unaligne.patch
Type: text/x-patch
Size: 4927 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/elfutils-devel/attachments/20140615/97dea6b4/attachment-0001.bin>


More information about the elfutils-devel mailing list