This is an archive of the discontinued LLVM Phabricator instance.

Fix crash on invalid
ClosedPublic

Authored by rafael on Dec 13 2017, 5:55 PM.

Details

Reviewers
ruiu

Diff Detail

Event Timeline

rafael created this revision.Dec 13 2017, 5:55 PM
ruiu accepted this revision.Dec 13 2017, 7:30 PM

LGTM. Thanks!

This revision is now accepted and ready to land.Dec 13 2017, 7:30 PM
hans added a subscriber: hans.Dec 14 2017, 8:51 AM

This fixes the assert, now we error on it, which breaks our build all the same. It's a pre-built .so, which I'm not sure exactly where it comes from:

FAILED: libwidevinecdmadapter.so
../../../../../../../../work/llvm/build.goma/bin/clang++ -shared libwidevinecdm.so -Wl,--fatal-warnings -Wl,--build-id=sha1 -fPIC -Wl,-z,noexecstack -Wl,-z,now -Wl,-z,relro -Wl,-z,defs -Wl,--no-as-needed -lpthread -Wl,--as-needed -fuse-ld=lld -Wl,--icf=all -flto=thin -Wl,--thinlto-jobs=8 -Wl,--thinlto-cache-dir=thinlto-cache -Wl,--thinlto-cache-policy,cache_size=10\% -Wl,--lto-O0 -fwhole-program-vtables -m64 -Werror -Wl,-O1 -Wl,--gc-sections -Wl,--gdb-index -nostdlib++ --sysroot=../../build/linux/debian_stretch_amd64-sysroot -L../../build/linux/debian_stretch_amd64-sysroot/lib/x86_64-linux-gnu -Wl,-rpath-link=../../build/linux/debian_stretch_amd64-sysroot/lib/x86_64-linux-gnu -L../../build/linux/debian_stretch_amd64-sysroot/usr/lib/x86_64-linux-gnu -Wl,-rpath-link=../../build/linux/debian_stretch_amd64-sysroot/usr/lib/x86_64-linux-gnu -fsanitize=cfi-vcall -Wl,-rpath=\$ORIGIN/. -Wl,-rpath-link=. -o "./libwidevinecdmadapter.so" -Wl,-soname="libwidevinecdmadapter.so" @"./libwidevinecdmadapter.so.rsp"
/usr/local/google/work/chromium/src/out/release/../../../../../../../../work/llvm/build.goma/bin/ld.lld: error: Found local symbol '_ZN8tcmalloc11ThreadCache17threadlocal_heap_E' in global part of symbol table in file libwidevinecdm.so
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Maybe the erorr could be downgraded to a warning? (We'd need to not treat warnings as errors for this target on our side I suppose)

hans added a comment.Dec 14 2017, 1:01 PM

Can we revert r319127 until this is fixed?

This blocks Chromium from updating LLVM.

hans added a subscriber: pcc.Dec 14 2017, 1:06 PM

pcc: Do you have any input on how we can fix this?

espindola closed this revision.Mar 14 2018, 3:08 PM
espindola added a subscriber: espindola.

r320667