This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/5637] Misaligned accesses in staprun for ia64 when stapio access denied
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 21 Jan 2008 17:19:34 -0000
- Subject: [Bug runtime/5637] Misaligned accesses in staprun for ia64 when stapio access denied
- References: <20080117232352.5637.wcohen@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From dsmith at redhat dot com 2008-01-21 17:19 -------
(In reply to comment #5)
> It looks like there are some steps that could be generating pointers that are
> unaligned in runtime/staprun/symbols.c:send_module:
>
> len = get_sections(mname, data + sizeof(int32_t),
> sizeof(data) - sizeof(int32_t));
>
> This character pointer ("data_sizeof(int32_t)") above appears to be generating
> an unaligned access in get_sections as it is type casted into a struct in
> get_sections. What is the purposeof the adding "sizeof(int32_t)"?
The purpose of adding 'sizeof(int32_t)' is to get past the command of
'STP_MODULE' which was added in the line before you quoted:
*(int32_t *)data = STP_MODULE;
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5637
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.