This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/5637] Misaligned accesses in staprun for ia64 when stapio access denied


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]