title: How to determine the cause for "BUS-Error"
body: <p>I'm working on a variscite board with a yocto distribution and python 2.7.3.  </p>
  
  <p>I get sometimes a <strong>Bus error</strong> message from the python interpreter.<br>
  My program runs normally at least some hours or days before the error ocours.<br>
  But when I get it once, I get it directly when I try to restart my program.<br>
  I have to reboot before the system works again.  </p>
  
  <p>My program uses only a serial port, a bit usb communication and some tcp sockets.  </p>
  
  <p>I can switch to another hardware and get the same problems.  </p>
  
  <p>I also used the python selftest with<br>
  <code>python -c "from test import testall"</code></p>
  
  <p>And I get errors for these two tests</p>
  
  <blockquote>
    <p>test_getattr (test.test_builtin.BuiltinTest) ... ERROR test_nameprep
    (test.test_codecs.NameprepTest) ... ERROR</p>
  </blockquote>
  
  <p>And the selftest stops always at </p>
  
  <blockquote>
    <p>test_callback_register_double (ctypes.test.test_callbacks.SampleCallbacksTestCase) ... Segmentation
    fault</p>
  </blockquote>
  
  <p>But when the systems runs some hours the selftests stops earlier at</p>
  
  <blockquote>
    <p>ctypes.macholib.dyld
    Bus error</p>
  </blockquote>
  
  <p>I checked the RAM with memtester, it seems to be okay.<br>
  How I can find the cause for the problems?</p>