-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clang segfaults when compiling boost::rtree for x86_64 (r14, r14b, r15 beta1) #363
Comments
Here's the crash in our CI build, using r15beta1: https://circleci.com/gh/mapbox/mapbox-gl-native/718 |
And here's the LLVM issue I filed a while ago: https://bugs.llvm.org/show_bug.cgi?id=32330 |
thanks. probably always worth filing a bug here in addition to the llvm one so that @pirama-arumuga-nainar and @stephenhines can help chase down the llvm bug. |
I can verify that this happens in the newer compiler in AOSP as well. However, it does not reproduce in upstream ToT. The backtrace for AOSP failure is below. We can try a debug build to get more info and then search for a possible upstream revision that fixes this. #0 0x00000000022e4b93 in llvm::TargetLowering::makeLibCall(llvm::SelectionDAG&, llvm::RTLIB::Libcall, llvm::EVT, llvm::ArrayRefllvm::SDValue, bool, llvm::SDLoc const&, bool, bool) const () |
Here's the backtrace from a debug clang. It's related to 128-bit long double but I don't see any changes to upstream that may be fixing this assert. #4 0x0000000006ec0625 in llvm::DAGTypeLegalizer::GetSoftenedFloat ( |
To update, Chih-hung from our team figured out that r289043 as the change that fixes the segfault. It'll be included in the Clang in the stable r15. He's also trying to figure out if r289043 just masks the underlying issue, and if so, coming up with a proper fix. |
@pirama-arumuga-nainar: assign it back to me when we have a clang with the fix available and I'll pull it into the NDK. |
A fix by Chih-hung is pending upstream review: https://reviews.llvm.org/D32102 |
We picked up this patch in the latest update. I've just merged that into r15 for beta 2. |
I'm observing a Clang segfault when compiling
boost::rtree
(from the Geometry package).This crash only occurs for x86_64, and only in Release mode (
-O2
and higher).I tested
r14
,r14b
, andr15beta1
and they all suffer from this issue, since they all use the same compiler buildAndroid clang version 3.8.275480 (based on LLVM 3.8.275480)
. The last good version is r13b, which is usingAndroid clang version 3.8.256229 (based on LLVM 3.8.256229)
.A minimal example is at https://github.com/kkaefer/android-boost-rtree with the code that triggers the segfault being
(https://github.com/kkaefer/android-boost-rtree/blob/master/app/src/main/cpp/native-lib.cpp#L8-L12)
The text was updated successfully, but these errors were encountered: