swiftlang / sourcekit-lsp

Language Server Protocol implementation for Swift and C-based languages
Apache License 2.0
3.2k stars 264 forks source link

llbuild/lib/llvm/Support/ManagedStatic.cpp:42:19: runtime error: call to function llvm::object_creator<llvm::cl::SubCommand>::call() through pointer to incorrect function type 'void *(*)()' #1463

Open ahoppen opened 4 weeks ago

ahoppen commented 4 weeks ago

UBSAN on macOS consistently fails with the following error. I have not been able to reproduce this issue locally.

/Users/ec2-user/jenkins/workspace/swift-sourcekit-lsp-PR-macOS/branch-main/llbuild/lib/llvm/Support/ManagedStatic.cpp:42:19: runtime error: call to function llvm::object_creator<llvm::cl::SubCommand>::call() through pointer to incorrect function type 'void *(*)()'
ManagedStatic.h:24: note: llvm::object_creator<llvm::cl::SubCommand>::call() defined here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Users/ec2-user/jenkins/workspace/swift-sourcekit-lsp-PR-macOS/branch-main/llbuild/lib/llvm/Support/ManagedStatic.cpp:42:19 in 
ahoppen commented 4 weeks ago

Synced to Apple’s issue tracker as rdar://129451478