Skip to content

Assertion failure: ./scip_indexer/SCIPSymbolRef.h:187 enforced condition this->kind() != Kind::Field has failed #180

Description

@varungandhi-src

Input

This was triggered on some company-internal code, which I don't have access to, but I'm going to try to reproduce it on some OSS codebases.

Sorbet type-checking output

n/a

scip-ruby indexing output

Segmentation fault (core dumped)

scip-ruby-debug indexing output

Exception::raise(): ./scip_indexer/SCIPSymbolRef.h:187 enforced condition this->kind() != Kind::Field has failed: (no message provided)

Backtrace:
  #3 0xc0b55f
  #4 0xd061f9 sorbet::scip_indexer::GenericSymbolRef::asSymbolRef()
  #5 0xcf58d5 sorbet::scip_indexer::CFGTraversal::traverse()::{lambda()#1}::operator()()
  #6 0xcec022 sorbet::scip_indexer::CFGTraversal::traverse()
  #7 0xcb93ba sorbet::pipeline::semantic_extension::SCIPSemanticExtension::typecheck()
  #8 0x109af42 sorbet::realmain::pipeline::CFGCollectorAndTyper::preTransformMethodDef()
  #9 0x109ab7a sorbet::ast::MapFunctions<>::CALL_MEMBER_impl_preTransformMethodDef<>::call<>()
  #10 0x1099e6f sorbet::ast::TreeMapper<>::mapMethodDef()
  #11 0x1098faf sorbet::ast::TreeMapper<>::mapIt()
  #12 0x1099e14 sorbet::ast::TreeMapper<>::mapClassDef()
  #13 0x1098f61 sorbet::ast::TreeMapper<>::mapIt()
  #14 0x109aac8 sorbet::ast::TreeMapper<>::mapInsSeq()
  #15 0x1099863 sorbet::ast::TreeMapper<>::mapIt()
  #16 0x1098bda sorbet::ast::ShallowWalk::apply<>()
  #17 0x106dce0 sorbet::realmain::pipeline::(anonymous namespace)::typecheckOne()
  #18 0x106cf6d sorbet::realmain::pipeline::typecheck()::$_4::operator()()
  #19 0x106cbfd std::__1::__invoke<>()

Configuration

scip-ruby v0.3.3

Additional info

n/a

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions