Skip to content

Allocator.h:239:7: runtime error: null pointer returned from function declared to never return null #256

@ahoppen

Description

@ahoppen

To reproduce run

UBSAN_OPTIONS=halt_on_error=true ~/swift-latest/usr/bin/swift test --sanitize=undefined --filter testObjectiveCTestsAfterInMemoryEdit

Output

Test Case '-[SourceKitLSPTests.DocumentTestDiscoveryTests testObjectiveCTestsAfterInMemoryEdit]' started.
/Users/alex/src/sourcekit-lsp/.command-line-build/checkouts/indexstore-db/lib/LLVMSupport/include/llvm/Support/Allocator.h:239:7: runtime error: null pointer returned from function declared to never return null
/Users/alex/src/sourcekit-lsp/.command-line-build/checkouts/indexstore-db/lib/LLVMSupport/include/llvm/Support/Allocator.h:213:3: note: returns_nonnull attribute specified here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /Users/alex/src/sourcekit-lsp/.command-line-build/checkouts/indexstore-db/lib/LLVMSupport/include/llvm/Support/Allocator.h:239:7 in 
error: Exited with unexpected signal code 6

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