-
Notifications
You must be signed in to change notification settings - Fork 59
Closed
Description
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.
spedygiorgio, jolars and jwood000
Metadata
Metadata
Assignees
Labels
No labels