Index: lldb/test/API/commands/log/basic/TestLogging.py =================================================================== --- lldb/test/API/commands/log/basic/TestLogging.py +++ lldb/test/API/commands/log/basic/TestLogging.py @@ -93,8 +93,6 @@ # Enable all log options and check that nothing crashes. @skipIfWindows - # TODO: figure out why it segfaults - @skipIfFreeBSD def test_all_log_options(self): if (os.path.exists(self.log_file)): os.remove(self.log_file) Index: llvm/lib/Support/Unix/Path.inc =================================================================== --- llvm/lib/Support/Unix/Path.inc +++ llvm/lib/Support/Unix/Path.inc @@ -147,6 +147,9 @@ static char * getprogpath(char ret[PATH_MAX], const char *bin) { + if (bin == nullptr) + return nullptr; + /* First approach: absolute path. */ if (bin[0] == '/') { if (test_dir(ret, "/", bin) == 0)