I am trying very hard to get a bus error.
One way is misaligned access and I have tried the examples given here and here, but no error for me - the programs execute just fine.
Is there some situation which is sure to produce a bus error?
Bus errors can only be invoked on hardware platforms that:
You probably do not have access to such a system.