Code Monkey home page Code Monkey logo

Comments (4)

cristaloleg avatar cristaloleg commented on June 20, 2024 1

Looks like go-critic was built with go1.22-20230908-RC04 which is...not something stable. This even isn't an official RC from what I understand. Fixing for this specific version is whac-a-mole game.

from go-critic.

mr0re1 avatar mr0re1 commented on June 20, 2024

Minimal reproduction:

package main

import "os"

func main() {
        os.Exit(1)
}
$  gocritic check  pnc.go
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
        panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x60316a]

goroutine 44 [running]:
go/types.(*Checker).handleBailout(0xc0003d2000, 0xc00056dba0)
        /usr/lib/google-golang/src/go/types/check.go:339 +0x88
panic({0x7eb1c0?, 0xb53f60?})
...
package main

import "os"

func main() {
        // os.Exit(1)
}
$ gocritic check  pnc.go
$ # all good

from go-critic.

cristaloleg avatar cristaloleg commented on June 20, 2024

Reminds me #1355 & #1237

from go-critic.

cristaloleg avatar cristaloleg commented on June 20, 2024

Can you check that this works with Go 1.22 RC 2, please?

from go-critic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.