This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/57862] invalid read struct uint32_t member (ARMV5)
- From: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 09 Jul 2013 09:59:50 +0000
- Subject: [Bug c/57862] invalid read struct uint32_t member (ARMV5)
- Auto-submitted: auto-generated
- References: <bug-57862-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57862
--- Comment #1 from Mikael Pettersson <mikpe at it dot uu.se> ---
This has all the indications of a mis-aligned memory access. Since you're on
Linux, please make sure that the 'User faults' field in /proc/cpu/alignment
shows a value of 2 (fixup) or 3 (fixup+warn). You can 'echo 3 >
/proc/cpu/alignment'
in your startup scripts to ensure this setting, or you can hack it into the
kernel source's arch/arm/mm/alignment.c (which is what I do).