Giter VIP home page Giter VIP logo

Comments (4)

zenhack avatar zenhack commented on June 1, 2024

Looks like this is fixed as of 1.0.2, but the version of github.com/json-iterator/goyou're using has a lower version bound on this package; if you update the latter package to v1.1.12 I think that should fix it (worked for my own project locally).

from reflect2.

szelenka avatar szelenka commented on June 1, 2024

I'm seeing a similar crash from version v1.0.2 in the json-iterator package:

kubed-cint-59bbc96755-8x5m5 kubed I0627 17:07:53.274202       7 trace.go:205] Trace[1474941318]: "Reflector ListAndWatch" name:k8s.io/client-go/informers/factory.go:134 (27-Jun-2022 17:07:37.491) (total time: 15782ms):
kubed-cint-59bbc96755-8x5m5 kubed Trace[1474941318]: ---"Objects listed" 15777ms (17:07:00.269)
kubed-cint-59bbc96755-8x5m5 kubed Trace[1474941318]: [15.782796639s] [15.782796639s] END
kubed-cint-59bbc96755-8x5m5 kubed unexpected fault address 0x0
kubed-cint-59bbc96755-8x5m5 kubed fatal error: fault
kubed-cint-59bbc96755-8x5m5 kubed [signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x4662bf]
kubed-cint-59bbc96755-8x5m5 kubed
kubed-cint-59bbc96755-8x5m5 kubed goroutine 161 [running]:
kubed-cint-59bbc96755-8x5m5 kubed runtime.throw({0x1e19095?, 0x1?})
kubed-cint-59bbc96755-8x5m5 kubed       /usr/local/go/src/runtime/panic.go:992 +0x71 fp=0xc001ff4ee8 sp=0xc001ff4eb8 pc=0x4361d1
kubed-cint-59bbc96755-8x5m5 kubed runtime.sigpanic()
kubed-cint-59bbc96755-8x5m5 kubed       /usr/local/go/src/runtime/signal_unix.go:825 +0x305 fp=0xc001ff4f38 sp=0xc001ff4ee8 pc=0x44c465
kubed-cint-59bbc96755-8x5m5 kubed aeshashbody()
kubed-cint-59bbc96755-8x5m5 kubed       /usr/local/go/src/runtime/asm_amd64.s:1343 +0x39f fp=0xc001ff4f40 sp=0xc001ff4f38 pc=0x4662bf
kubed-cint-59bbc96755-8x5m5 kubed runtime.mapiternext(0xc0002a9c80)
kubed-cint-59bbc96755-8x5m5 kubed       /usr/local/go/src/runtime/map.go:934 +0x2cb fp=0xc001ff4fb0 sp=0xc001ff4f40 pc=0x40fd0b
kubed-cint-59bbc96755-8x5m5 kubed runtime.mapiterinit(0x8b2ac2?, 0xc000766420?, 0x7f57a86404d0?)
kubed-cint-59bbc96755-8x5m5 kubed       /usr/local/go/src/runtime/map.go:861 +0x228 fp=0xc001ff4fd0 sp=0xc001ff4fb0 pc=0x40f9e8
kubed-cint-59bbc96755-8x5m5 kubed reflect.mapiterinit(0x8c75f6?, 0x1b723c0?, 0xc0002a9c80?)
kubed-cint-59bbc96755-8x5m5 kubed       /usr/local/go/src/runtime/map.go:1373 +0x19 fp=0xc001ff4ff8 sp=0xc001ff4fd0 pc=0x462ab9
kubed-cint-59bbc96755-8x5m5 kubed github.com/modern-go/reflect2.(*UnsafeMapType).UnsafeIterate(...)
kubed-cint-59bbc96755-8x5m5 kubed       /go/src/github.com/kubeops/config-syncer/vendor/github.com/modern-go/reflect2/unsafe_map.go:112
kubed-cint-59bbc96755-8x5m5 kubed github.com/json-iterator/go.(*mapEncoder).IsEmpty(0x11?, 0x1951f4b?)
kubed-cint-59bbc96755-8x5m5 kubed       /go/src/github.com/kubeops/config-syncer/vendor/github.com/json-iterator/go/reflect_map.go:275 +0x28 fp=0xc001ff5038 sp=0xc001ff4ff8 pc=0x8b9bc8

from reflect2.

sylr avatar sylr commented on June 1, 2024

I am seeing the same problem when running the test on thanos-io/thanos#5258.

See: https://app.circleci.com/pipelines/github/thanos-io/thanos/9801/workflows/a326ed02-acea-4ba8-af5e-cd04e15f8b1c/jobs/19315?invite=true#step-107-1842

from reflect2.

szelenka avatar szelenka commented on June 1, 2024

I was able to mitigate the error by reverting back to 1.17 go compiler, seems something is not happy with 1.18+

from reflect2.

Related Issues (18)

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.