I had a look at the logs but that doesn't contain much information.
$this->bbcode_second_pass_code('', 'sudo journalctl -u dnsmasq --since=2016-02-25
[...]
Feb 25 21:22:35 alarmpi systemd[1]: dnsmasq.service: Main process exited, code=killed, status=11/SEGV
Feb 25 21:22:35 alarmpi systemd[1]: dnsmasq.service: Unit entered failed state.
Feb 25 21:22:35 alarmpi systemd[1]: dnsmasq.service: Failed with result 'signal'.
[...]')
How can I figure out what happened?