Comments (4)
Looks like this is fixed as of 1.0.2, but the version of github.com/json-iterator/go
you'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.
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.
I am seeing the same problem when running the test on thanos-io/thanos#5258.
from reflect2.
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)
- nil pointer panic in wrapType
- Runtime package is not imported HOT 6
- bugs with gollvm HOT 1
- Jobs failing on Travis-CI for Intel
- Can not find the Struct type HOT 1
- heads up: codecov.io security incident - https://about.codecov.io/security-update/
- codecov in .travis.yml - security issue
- undefined reference to `reflect.unsafe_New' HOT 2
- nil pointer panic in reflect2 Type2
- Update mapiterinit to reflect changes in go1.18 reflect HOT 1
- reflect2.TypeByName doesn't exists in go 1.18 HOT 2
- Question: relfect vs reflect?
- unsafe_map.UnsafeSetIndex cost much memory HOT 3
- NoEscape fails in go vet
- Can not use gccgo to compile .go file. HOT 2
- can't work with interface var HOT 2
- undefined reference to 'reflect.typelinks' for gccgo and gollvm HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reflect2.