Navigation
Records in this category
- Can NetBSD/alpha run on systems with only NT (ARC) firmware?
- Can NetBSD/alpha use MILO to run on systems without SRM?
- Where do I get a copy of the SRM console for my machine?
- How do I get it to (not to) automatically boot multi-user?
- Why does my firmware not have the srm_fw file?
- Firmware upgrade for 3000/400 NetBSD
- Can NetBSD/alpha run Netscape?
- Can NetBSD/alpha run Netscape?
- What video cards are supported by X11?
- I just got a kernel trap, but my machine is still running!!
- Nasty message from the kernel saying something about unaligned accesses
- Can NetBSD/alpha boot diskless?
- How do I make a hard disk bootable in NetBSD/Alpha?
- How do I burn the cdhdtape install binary (to a CD) under MS Windows?
- Some Digital Unix programs fail with SIGSYS
- What is ELF?
- A dynamically loaded module at run-time couldn't find symbols from my program image.
- No need for ldconfig or for ld.so.conf!
- My program can't find its shared library
- How do I tell if my system is ELF?
Tags
Sticky FAQs
NetBSD
Nasty message from the kernel saying something about unaligned accesses
Nothing is wrong with the machine. This happens when programs illegally cast types or make various other type-unsafe assumptions. Unlike the x86 and vax, risc processors require data items to be aligned. The compilers do this automatically, but some programs are so badly written that they override the compiler's choices and force the compiler to accept type-unsafe constructs.
The NetBSD kernel will fix these up on the fly, though it may slow your application down. To fix each unaligned access fault requires:
- Overhead of taking an unaligned access fault.
- Overhead of fixup.
- Additional overhead for (2) because access must be across a protection boundary.
Using sysctl(8), the action can be tuned to one of:
- Silently fixup the unaligned access.
- Print out a message and fixup the unaligned access.
- Silently send the process a SIGBUS.
- Print out a message and send the process a SIGBUS.
The default action is equivalent to:
<?php
#
?><?php
sysctl -w machdep.unaligned_print=1
?>
<?php
#
?><?php
sysctl -w machdep.unaligned_fix=1
?>
<?php
#
?><?php
sysctl -w machdep.unaligned_sigbus=0
?>
An unaligned access performed by the kernel will always cause a panic.
Tags: kernel, NetBSD/alpha, sysctl
Related entries:
- How to rebuild Solaris Device Tree
- Fedora 11 upgradation
- up2date tutorial
- Veritas Cluster - Commands
- LastLog Editor - Unix LogFiles
Last update: 2009-08-03 18:17
AuthorLuke Francis
Revision: 1.0
You cannot comment on this entry