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

panic in search handler #3051

Open
roman-khimov opened this issue Dec 13, 2024 · 0 comments
Open

panic in search handler #3051

roman-khimov opened this issue Dec 13, 2024 · 0 comments
Labels
bug Something isn't working I4 No visible changes neofs-storage Storage node application issues S4 Routine U2 Seriously planned
Milestone

Comments

@roman-khimov
Copy link
Member

Expected Behavior

No panics.

Current Behavior

Dec 11 18:11:39 metis1 neofs-node[1884065]: panic: runtime error: slice bounds out of range [:43690] with capacity 38261
Dec 11 18:11:39 metis1 neofs-node[1884065]: goroutine 75778976 [running]:
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object.(*searchStreamMsgSizeCtrl).Send(0xc0291c0990, 0xc00e9a8690)
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/transport_splitter.go:168 +0x1f0
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object/search/v2.(*streamWriter).WriteIDs(0xc027552da0, {0xc0c2d68000, 0x3401d, 0xc027c64eb8?})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/search/v2/streamer.go:28 +0x155
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object/search.(*uniqueIDWriter).WriteIDs(0xc0291bc360, {0xc0c2d68000?, 0xc0291c09c0?, 0x1?})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/search/util.go:58 +0x202
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object/search.(*execCtx).writeIDList(0xc0291a0c80, {0xc0c2d68000?, 0x0?, 0x0?})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/search/exec.go:62 +0x46
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object/search.(*execCtx).executeLocal(0xc0291a0c80)
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/search/local.go:21 +0x1a8
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object/search.(*execCtx).execute(0xc0291a0c80, {0x13dc250, 0xc028969980})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/search/search.go:44 +0x46
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object/search.(*Service).Search(0xc001cb2930, {0x13dc250, 0xc028969980}, {{0x13cdda0, 0xc027552da0}, 0xc0291b09c0, {0x4a, 0x3f, 0xa3, 0x3a, ...}, ...})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/search/search.go:35 +0x1ce
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object/search/v2.(*Service).Search(0xc0002a6198, 0x28?, {0x13d5500, 0xc0291c0990})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/search/v2/service.go:44 +0xf0
Dec 11 18:11:39 metis1 neofs-node[1884065]: main.(*objectSvc).Search(0x0?, 0x0?, {0x13d5500?, 0xc0291c0990?})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/cmd/neofs-node/object.go:81 +0x25
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object.TransportSplitter.Search(...)
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/transport_splitter.go:99
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object/acl/v2.Service.Search({0xc002bf91a0, {0xc000040280, {0x13c9020, 0xc001819bf0}, {0x7fa2eb44b580, 0xc001cb29f0}}}, 0xc060907158, {0x13d5730, 0xc060907230})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/acl/v2/service.go:287 +0x4ff
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object.(*Common).Search(0xc002b648a0, 0xc060907158, {0x13d5730, 0xc060907230})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/common.go:66 +0x7b
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object.(*ResponseService).Search(0xc001cb2a20, 0xc060907158, {0x13d5668, 0xc0291bc020})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/response.go:111 +0x15c
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object.(*SignService).Search.func3(0xc0609071e8)
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/sign.go:142 +0xe8
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/util.(*SignService).HandleServerStreamRequest(0xc0002a61e0, {0x10e91c0?, 0xc060907158?}, 0xc0609071d0, 0x1297528, 0xc027c65930)
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/util/sign.go:133 +0xdf
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object.(*SignService).Search(0xc002b648c0, 0xc060907158, {0x13d5460, 0xc027552c30})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/sign.go:129 +0xd2
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/services/object.MetricCollector.Search({{0x13e2820?, 0xc002b648c0?}, {0x13e9838?, 0xc000164008?}}, 0xc060907158, {0x13d5460, 0xc027552c30})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/services/object/metrics.go:102 +0x9c
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-node/pkg/network/transport/object/grpc.(*Server).Search(0xc00171cc80, 0xc028965600, {0x13e2fa0, 0xc027552c00})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-node/pkg/network/transport/object/grpc/search.go:26 +0xa6
Dec 11 18:11:39 metis1 neofs-node[1884065]: github.com/nspcc-dev/neofs-api-go/v2/object/grpc._ObjectService_Search_Handler({0x10d6bc0, 0xc00171cc80}, {0x13e0998, 0xc00179c5a0})
Dec 11 18:11:39 metis1 neofs-node[1884065]:         github.com/nspcc-dev/neofs-api-go/[email protected]/object/grpc/service_grpc.pb.go:780 +0x107
Dec 11 18:11:39 metis1 neofs-node[1884065]: google.golang.org/grpc.(*Server).processStreamingRPC(0xc00018e600, {0x13dc250, 0xc028969890}, {0x13e4bc0, 0xc012270000}, 0xc02892b0e0, 0xc001819da0, 0x1ddb9a0, 0x0)
Dec 11 18:11:39 metis1 neofs-node[1884065]:         google.golang.org/[email protected]/server.go:1673 +0x1208
Dec 11 18:11:39 metis1 neofs-node[1884065]: google.golang.org/grpc.(*Server).handleStream(0xc00018e600, {0x13e4bc0, 0xc012270000}, 0xc02892b0e0)
Dec 11 18:11:39 metis1 neofs-node[1884065]:         google.golang.org/[email protected]/server.go:1794 +0xe3a
Dec 11 18:11:39 metis1 neofs-node[1884065]: google.golang.org/grpc.(*Server).serveStreams.func2.1()
Dec 11 18:11:39 metis1 neofs-node[1884065]:         google.golang.org/[email protected]/server.go:1029 +0x8b
Dec 11 18:11:39 metis1 neofs-node[1884065]: created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 63621572
Dec 11 18:11:39 metis1 neofs-node[1884065]:         google.golang.org/[email protected]/server.go:1040 +0x125

Possible Solution

Fix it.

Steps to Reproduce (for bugs)

Unknown.

Context

mainnet, search.

Regression

Unknown

Your Environment

  • Version used: 0.44.0
  • Operating System and version (uname -a): Debian stable
@roman-khimov roman-khimov added bug Something isn't working neofs-storage Storage node application issues U2 Seriously planned S4 Routine I4 No visible changes labels Dec 13, 2024
@roman-khimov roman-khimov added this to the v0.45.0 milestone Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working I4 No visible changes neofs-storage Storage node application issues S4 Routine U2 Seriously planned
Projects
None yet
Development

No branches or pull requests

1 participant