Enable basic backtracing with glog

This will have an occasional deadlock, but it should be very infrequent.
The backtrace is significantly more helpful than the deadlock.

Change-Id: Iaad7f8becf2cf6b5d4d3e971d8f99f3dc69a50f3
diff --git a/aos/init.cc b/aos/init.cc
index ac18413..e506d86 100644
--- a/aos/init.cc
+++ b/aos/init.cc
@@ -40,6 +40,7 @@
 void InitStart() {
   ::aos::logging::Init();
   WriteCoreDumps();
+  google::InstallFailureSignalHandler();
 }
 
 const char *const kNoRealtimeEnvironmentVariable = "AOS_NO_REALTIME";
diff --git a/third_party/google-glog/bazel/glog.bzl b/third_party/google-glog/bazel/glog.bzl
index 6437619..d674fb4 100644
--- a/third_party/google-glog/bazel/glog.bzl
+++ b/third_party/google-glog/bazel/glog.bzl
@@ -68,6 +68,7 @@
             '-DHAVE_STRING_H',
             # Enable dumping stacktrace upon sigaction.
             '-DHAVE_SIGACTION',
+            '-DHAVE_EXECINFO_H',
             # For logging.cc.
             '-DHAVE_PREAD',
             '-DHAVE___ATTRIBUTE__',