Macro Terra

Results issues of Macro Terra

**Test case** It occurs while playing a specific request sequence(gernerated by a fuzzer) to the language server, affliated in file. However, the actuall crash point is on formatter.cc:343. So I...

formatter

#### Input https://sorbet.run/?arg=&arg=#%23%20typed%3A%20true%0Amodule%20%0A%0ADATA%3A%3A%20ChildStandardSig%3A%3AWeakConstructor%0A%20%20def%20initialize%28instance%2C%20prop%2C%20val%2C%20rules%3Dprop_rules%28prop%29%29%0A https://sorbet.run/?arg=&arg=#%23%20typed%3A%20true%0Amodule%20Sorbet%3A%3APrivate%3A%3AStatic%3A%3AIOLike%3A%3A%0AAn%0A%20%20def%20initialize%28%29%0A%0A%0A #### Observed output ``` # typed: true module DATA:: ChildStandardSig::WeakConstructor def initialize(instance, prop, val, rules=prop_rules(prop)) Exception::raise() msg="method has no locs! ctx.file="-e" method=""" Exception typing file: -e...

bug
crash

#### Input [→ View on sorbet.run](https://sorbet.run/?arg=&arg=#a%5B%26%5D%20%7C%7C%3D%201%0A) ```ruby a[&] ||= 1 ``` Send a `didopen` request to sorbet #### Observed output ``` {"jsonrpc":"2.0","id":1,"requestMethod":"initialize","result":{"capabilities":{"textDocumentSync":1,"hoverProvider":true,"completionProvider":{"triggerCharacters": [".",":","@","#"]},"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":true,"referencesProvider":true,"documentHighlightProvider":false,"documentSy mbolProvider":true,"workspaceSymbolProvider":true,"codeActionProvider":{"codeActionKinds": ["quickfix","source.fixAll.sorbet","refactor.extract","refactor.rewrite"],"resolveProvider":true},"documentFormattingProvider":false,"renameProvider": {"prepareProvider":true},"sorbetShowSymbolProvider":true}}}Pausing Exception::raise() msg="ast/substitute/Substitute.cc:124 enforced condition...

bug
unconfirmed

#### Input [→ View on sorbet.run](https://sorbet.run/#%20def%20%28%29%28%29%20%7C%7C%20%3C%3C~HERE.%28...%29%7B%7D) ```ruby def ()() ||

bug
unconfirmed

#### Input [→ View on sorbet.run](https://sorbet.run/#%20%20def%20f%20%3Da%5B%26%3Ax%5D%7C%7C%3D1) requests: ``` initialize initialized textDocument/didOpen ``` source code: ```ruby def f =a[&:x]||=1 ``` #### Observed output ``` Exception::enforce_handler -> copyArgsForOpAsgn at Desugar.cc:656 -> OrAsgn...

bug
unconfirmed

#### Input [It seems stuck?](https://sorbet.run/#f%20%3D%20T.let%28%0D%0A%20%20proc%20%7B%7C...%2C%3B%20gemfile_dependencies%2C%20_1%7C%7D%2C%0D%0A) LSP requests to reproduce: ``` initialize initialized textDocument/didOpen ``` ```ruby f = T.let( proc {|...,; gemfile_dependencies, _1|}, ``` #### Observed output It behaves like: ```...

bug
unconfirmed

Sorbet LSP segfaults while analyzing an incomplete Ruby file. This reproduces with a minimal client that: 1. starts Sorbet in `--lsp` mode, 2. sends a normal `initialize` / `initialized` handshake,...

bug
crash

#### Environment Commit:1ccb02c2ccd55cc99ed1b5a5150f28075d07c554 #### Input The reproducer starts Sorbet in LSP mode and sends the following sequence: 1. initialize 2. initialized 3. textDocument/didOpen for main.rb 4. textDocument/typeDefinition at line 5,...

bug
unconfirmed

#### Input [→ View on sorbet.run](https://sorbet.run/?arg=&arg=#%23%20typed%3A%20true%0Asig%20%7B%20returns%28T.attached_class%29%20%7D%0Adef%20self.foo%3B%20end) #### Observed output ``` Backtrace: #3 0x60f53caeccf0 sorbet::typecaseHelper() #4 0x60f53cae559e sorbet::typecase() #5 0x60f53cae0dce sorbet::infer::Environment::processBinding() #6 0x60f53cad80a0 sorbet::infer::Inference::run() #7 0x60f53c98896c sorbet::ast::TreeMapper::mapIt() #8 0x60f53c98937b sorbet::ast::TreeMapper::mapIt() #9...

bug
unconfirmed

## Description Using fuzzing, I found 3 crashes in Solc LSP. They share different ASAN logs. ## Environment - Compiler version: 0.8.29 (ASAN build) and 0.8.34+commit.80d5c536.Linux.g++(Non ASAN built) - Compilation...

bug :bug:
language server