$ 0 0 More Information I enabled core dumps and can now see that the error is a SIGSEGV in output_gpio() when called by pwm_thread().