Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid memory address or nil pointer dereference #188

Open
kdfight opened this issue Feb 8, 2023 · 0 comments
Open

invalid memory address or nil pointer dereference #188

kdfight opened this issue Feb 8, 2023 · 0 comments

Comments

@kdfight
Copy link

kdfight commented Feb 8, 2023

During the test of the api interface, there is an error:
the trace is :

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x5cc5b3]

goroutine 98467 [running]:
net.(*Resolver).lookupIPAddr(0x157c240, {0xfb13c0?, 0xc00146e660}, {0xe5e1e1, 0x3}, {0xc0003c0b00, 0x34})
/app/program/go1.18.2/src/net/lookup.go:344 +0x8b3
net.(*Resolver).internetAddrList(0xfb13c0?, {0xfb13c0?, 0xc00146e660?}, {0xe5e1e1, 0x3}, {0xc0003c0b00?, 0x39?})
/app/program/go1.18.2/src/net/ipsock.go:288 +0x67a
net.(*Resolver).resolveAddrList(0x15af0d8?, {0xfb13c0, 0xc00146e660}, {0xe5e821, 0x4}, {0xe5e1e1?, 0x203000?}, {0xc0003c0b00, 0x39}, {0x0, ...})
/app/program/go1.18.2/src/net/dial.go:221 +0x41b
net.(*Dialer).DialContext(0xc0008ade18, {0xfb13c0, 0xc00146e660}, {0xe5e1e1, 0x3}, {0xc0003c0b00, 0x39})
/app/program/go1.18.2/src/net/dial.go:406 +0x448
github.com/go-redis/redis/v8.(*Options).init.func1({0xfb13c0?, 0xc00146e660?}, {0xe5e1e1?, 0x0?}, {0xc0003c0b00?, 0x490f60?})
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/options.go:138 +0x107
github.com/go-redis/redis/v8.newConnPool.func1({0xfb13c0?, 0xc00146e660?})
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/options.go:419 +0x3b
github.com/go-redis/redis/v8/internal/pool.(*ConnPool).dialConn(0xc0001401e0, {0xfb13c0?, 0xc00146e660?}, 0x1)
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/internal/pool/pool.go:198 +0xcc
github.com/go-redis/redis/v8/internal/pool.(*ConnPool).newConn(0xc0001401e0, {0xfb13c0?, 0xc00146e660?}, 0x1)
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/internal/pool/pool.go:162 +0x6e
github.com/go-redis/redis/v8/internal/pool.(*ConnPool).Get(0xc0001401e0, {0xfb13c0, 0xc00146e660})
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/internal/pool/pool.go:277 +0x16b
github.com/go-redis/redis/v8.(*baseClient).getConn(0xc000118ca0, {0xfb13c0, 0xc00146e660})
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/redis.go:194 +0x38
github.com/go-redis/redis/v8.(*baseClient).getConn(0xc000118ca0, {0xfb13c0?, 0xc00146e660?})
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/redis.go:182 +0x69
github.com/go-redis/redis/v8.(*baseClient).withConn(0xc000118ca0, {0xfb13c0?, 0xc00146e660}, 0xc000c1eff0)
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/redis.go:274 +0x73
github.com/go-redis/redis/v8.(*baseClient).process(0xc000118ca0, {0xfb13c0, 0xc00146e660}, {0xfb7868?, 0xc000c3a2a0}, 0x0?)
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/redis.go:329 +0x114
github.com/go-redis/redis/v8.(*baseClient).process(0xc000118ca0, {0xfb13c0, 0xc00146e660}, {0xfb7868, 0xc000c3a2a0})
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/redis.go:311 +0x79
github.com/go-redis/redis/v8.hooks.process({{0x0?, 0x0?, 0x0?}}, {0xfb13c0?, 0xc00146e660?}, {0xfb7868, 0xc000c3a2a0}, 0x60?)
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/redis.go:54 +0x7a
github.com/go-redis/redis/v8.(*Client).Process(0xc0008ae360?, {0xfb13c0?, 0xc00146e660?}, {0xfb7868?, 0xc000c3a2a0?})
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/redis.go:596 +0x70
github.com/go-redis/redis/v8.cmdable.Get(0xc000116920, {0xfb13c0?, 0xc00146e660}, {0xc0012d17d0, 0xd})
/root/go/pkg/mod/github.com/go-redis/redis/[email protected]/commands.go:786 +0x122
admp-data/internal/data.(*mediaRepo).GetPromoteTabCache(0xc0008ae750, {0xfb13c0, 0xc00146e660}, 0x80?)
/data/jenkins/workspace/taqu---test5---mp---mp-admp-data/source_code/internal/data/media.go:68 +0x8d
admp-data/internal/biz.(*MediaCase).setMediaCache(
, {
, }, {, }, {{{0xe6247b, 0x7}, 0x1, 0x1, 0x80a, ...}, ...}, ...)
/data/jenkins/workspace/taqu---test5---mp---mp-admp-data/source_code/internal/biz/media.go:180 +0x8c
admp-data/internal/biz.(*MediaCase).HandleMediaData(
, {_, _}, {{0xe6247b, 0x7}, 0x80a, 0x2f13, 0x1, 0x1, {0xc000de4be0, ...}, ...})
/data/jenkins/workspace/taqu---test5---mp---mp-admp-data/source_code/internal/biz/media.go:100 +0x2a7
created by admp-data/internal/biz.(*MediaCase).MediaHandle
/data/jenkins/workspace/taqu---test5---mp---mp-admp-data/source_code/internal/biz/media.go:53 +0x485

so who can help me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant