Skip to content

TBB UBSAN error reported in client package #36

@kevinushey

Description

@kevinushey

The gaston CRAN package, which uses RcppParallel, has a number of UBSAN check warnings that seem to be coming from TBB. Copied from https://www.stats.ox.ac.uk/pub/bdr/memtests/clang-UBSAN/gaston-Ex.Rout:

/data/gannet/ripley/R/test-clang/RcppParallel/include/tbb/task.h:721:30: runtime error: member call on address 0x7f4f2ee8bd00 which does not point to an object of type 'tbb::internal::scheduler'
0x7f4f2ee8bd00: note: object is of type 'tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>'
 00 00 00 00  c8 5b 50 2f 4f 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  80 6f c9 2e
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>'
SUMMARY: AddressSanitizer: undefined-behavior /data/gannet/ripley/R/test-clang/RcppParallel/include/tbb/task.h:721:30 in 
/data/gannet/ripley/R/test-clang/RcppParallel/include/tbb/parallel_reduce.h:177:19: runtime error: member call on address 0x7f4f2ee6bb40 which does not point to an object of type 'tbb::task'
0x7f4f2ee6bb40: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: AddressSanitizer: undefined-behavior /data/gannet/ripley/R/test-clang/RcppParallel/include/tbb/parallel_reduce.h:177:19 in 
/data/gannet/ripley/R/test-clang/RcppParallel/include/tbb/task.h:688:9: runtime error: member call on address 0x7f4f2ee6bb40 which does not point to an object of type 'tbb::task'
0x7f4f2ee6bb40: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: AddressSanitizer: undefined-behavior /data/gannet/ripley/R/test-clang/RcppParallel/include/tbb/task.h:688:9 in 
/data/gannet/ripley/R/test-clang/RcppParallel/include/tbb/parallel_reduce.h:178:31: runtime error: member call on address 0x7f4f2ee6bb40 which does not point to an object of type 'tbb::task'
0x7f4f2ee6bb40: note: object has invalid vptr
 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
              ^~~~~~~~~~~~~~~~~~~~~~~
              invalid vptr
SUMMARY: AddressSanitizer: undefined-behavior /data/gannet/ripley/R/test-clang/RcppParallel/include/tbb/parallel_reduce.h:178:31 in 
/data/gannet/ripley/R/test-clang/RcppParallel/include/tbb/task.h:946:23: runtime error: member call on address 0x7f4f2ee8bd00 which does not point to an object of type 'tbb::internal::scheduler'
0x7f4f2ee8bd00: note: object is of type 'tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>'
 00 00 00 00  c8 5b 50 2f 4f 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  80 6f c9 2e
              ^~~~~~~~~~~~~~~~~~~~~~~
              vptr for 'tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>'

I'm guessing these issues may be resolved when we update TBB sometime in the future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions