Reinstall All Homebrew Packages
After upgrading to OS X Sierra I was unable to start MariaDB (or MySQL). Long story short, I ended up rebuilding openssl
which fixed the signal 4 error, likely due to changes in the compiler. I decided that recompiling all the packages would be a good idea to prevent any future issues, and after some digging found this script which I modifying slightly.
[remote_content url="https://gist.githubusercontent.com/doublesharp/0c9fadc082a3d03758c1/raw/brew-rebuild" decode_atts="true" htmlentities="true"]