apple / foundationdb

FoundationDB - the open source, distributed, transactional key-value store
https://apple.github.io/foundationdb/
Apache License 2.0
14.51k stars 1.31k forks source link

Fix UB in ExternalWorkload.actor.cpp #2410

Open atn34 opened 4 years ago

atn34 commented 4 years ago
/home/anoyes/workspace/foundationdb/fdbserver/workloads/ExternalWorkload.actor.cpp:159:21: runtime error: member call on address 0x00001b87c7b0 which does not point to an object of type 'FDBWorkload'

To repro, build with cmake with -DUSE_UBSAN=1 and run ctest -V -R SimpleExternal

atn34 commented 4 years ago

FWIW removing -fvisibility=hidden from the compiler flags does not seem to fix this. I think this might have to do with the way we use dlopen?