Merge "Log errors from loading public libraries" am: 6b74258818 am: 1508020656

am: d6fc63c8ef

Change-Id: I43b87946ed091d14f1353a311f7b38ded5db6790
This commit is contained in:
Dimitry Ivanov 2017-02-06 21:21:33 +00:00 committed by android-build-merger
commit 9292140989

View file

@ -246,7 +246,9 @@ class LibraryNamespaces {
// For now we rely on CTS test to catch things like this but
// it should probably be addressed in the future.
for (const auto& soname : sonames) {
dlopen(soname.c_str(), RTLD_NOW | RTLD_NODELETE);
LOG_ALWAYS_FATAL_IF(dlopen(soname.c_str(), RTLD_NOW | RTLD_NODELETE) == nullptr,
"Error preloading public library %s: %s",
soname.c_str(), dlerror());
}
public_libraries_ = base::Join(sonames, ':');