maidsafe-archive / MaidSafe

This is the super-project in which each MaidSafe library resides. Some information is common to all libraries, and is detailed here. Library-specific information can be found in each library's wiki.
Other
583 stars 102 forks source link

With UBSan enabled with clang 3.4, passport.proto segfaults during build #116

Closed ned14 closed 10 years ago

ned14 commented 10 years ago

Branch add_tsan_build_support now has UBSan turned on by default where the compiler supports it. Unfortunately this causes the build to segfault like this:

[ 42%] Generated files from passport.proto Segmentation fault (core dumped) make[2]: * [GeneratedProtoFiles/maidsafe/passport/detail/passport.pb.cc] Error 139 make[1]: * [src/passport/CMakeFiles/maidsafe_passport.dir/all] Error 2 make: *\ [all] Error 2

It definitely is NOT the thread sanitiser as disabling UBSan using -DNO_UBSAN=TRUE allows the build to succeed.

ned14 commented 10 years ago

Fixed using a nasty hack in b68aec789e5bb93e8de9ea4833158a01513153f7