Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-49880

ASAN error in map-reduce test

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      One of the sanitizer logs contains:

      /opt/gcc-10.2.0/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/bits/unique_ptr.h:85:2: runtime error: member call on address 0x60d000000380 which does not point to an object of type 'v8::Platform'
      0x60d000000380: note: object has invalid vptr
       03 00 80 47  98 fa 48 c0 99 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
                    ^~~~~~~~~~~~~~~~~~~~~~~
                    invalid vptr
          #0 0x4ebce8 in std::default_delete<v8::Platform>::operator()(v8::Platform*) const /opt/gcc-10.2.0/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/bits/unique_ptr.h:85:2
          #1 0x4eadcd in std::unique_ptr<v8::Platform, std::default_delete<v8::Platform> >::~unique_ptr() /opt/gcc-10.2.0/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/bits/unique_ptr.h:361:4
          #2 0x7f99bead4160 in __run_exit_handlers /build/glibc-S9d2JN/glibc-2.27/stdlib/exit.c:108
          #3 0x7f99bead4259 in exit /build/glibc-S9d2JN/glibc-2.27/stdlib/exit.c:139
          #4 0x7f99beab2bfd in __libc_start_main /build/glibc-S9d2JN/glibc-2.27/csu/../csu/libc-start.c:344
          #5 0x438779 in _start (/home/couchbase/jenkins/workspace/couchstore.ASan-UBSan_master/build/couchstore/couchstore_mapreduce-builtin-test+0x438779)
       
      SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /opt/gcc-10.2.0/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/bits/unique_ptr.h:85:2 in 
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          jwalker Jim Walker added a comment -

          Ankit Prabhu is there any update on this issue? It's still affecting couchstore commit validation

          jwalker Jim Walker added a comment - Ankit Prabhu is there any update on this issue? It's still affecting couchstore commit validation
          paolo.cocchi Paolo Cocchi added a comment - Observed on NOP change at https://review.couchbase.org/c/couchstore/+/173460 . http://cv.jenkins.couchbase.com/job/couchstore.ASan-UBSan/job/master/728/UndefinedBehaviourSanitizer/

          Build couchbase-server-7.2.0-1081 contains tlm commit 9f41327 with commit message:
          MB-49880: Add UBSan suppressions file

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.2.0-1081 contains tlm commit 9f41327 with commit message: MB-49880 : Add UBSan suppressions file

          Build couchbase-lite-core-3.1.0-205 contains tlm commit 9f41327 with commit message:
          MB-49880: Add UBSan suppressions file

          build-team Couchbase Build Team added a comment - Build couchbase-lite-core-3.1.0-205 contains tlm commit 9f41327 with commit message: MB-49880 : Add UBSan suppressions file
          drigby Dave Rigby added a comment -

          I've run into this again when updating V8 to v10.7.21. I believe the issue is that V8 is compiled without all symbols having default (external) visibility; hence UBSan fails to locate type info for the object being deleted above.

          This mean's it's probably a benign warning, but we can't really be sure without rebuilding V8 and making all symbols external, which given V8's complex build system is probably not worth it.

          drigby Dave Rigby added a comment - I've run into this again when updating V8 to v10.7.21. I believe the issue is that V8 is compiled without all symbols having default (external) visibility; hence UBSan fails to locate type info for the object being deleted above. This mean's it's probably a benign warning, but we can't really be sure without rebuilding V8 and making all symbols external, which given V8's complex build system is probably not worth it.

          People

            ankit.prabhu Ankit Prabhu
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty