Panic on shutdown #477

Open
opened 2025-12-28 17:37:32 +00:00 by sami · 1 comment
Owner

Originally created by @roman-khimov on GitHub (Dec 17, 2024).

Current Behavior

neofs-s3-gw[2155532]: panic: can't shut down service
neofs-s3-gw[2155532]: goroutine 110 [running]:
neofs-s3-gw[2155532]: go.uber.org/zap/zapcore.CheckWriteAction.OnWrite(0x0?, 0x0?, {0x0?, 0x0?, 0xc0074de320?})
neofs-s3-gw[2155532]:         go.uber.org/zap@v1.27.0/zapcore/entry.go:196 +0x54
neofs-s3-gw[2155532]: go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0006af040, {0x0, 0x0, 0x0})
neofs-s3-gw[2155532]:         go.uber.org/zap@v1.27.0/zapcore/entry.go:262 +0x24e
neofs-s3-gw[2155532]: go.uber.org/zap.(*Logger).Panic(0xc0000152c0?, {0x122571e?, 0xc009a5af50?}, {0x0, 0x0, 0x0})
neofs-s3-gw[2155532]:         go.uber.org/zap@v1.27.0/logger.go:285 +0x51
neofs-s3-gw[2155532]: main.(*Service).ShutDown(0xc0005c9260, {0x1579688, 0xc009a5af50})
neofs-s3-gw[2155532]:         github.com/nspcc-dev/neofs-s3-gw/cmd/s3-gw/service.go:37 +0x13a
neofs-s3-gw[2155532]: main.(*App).stopServices(...)
neofs-s3-gw[2155532]:         github.com/nspcc-dev/neofs-s3-gw/cmd/s3-gw/app.go:643
neofs-s3-gw[2155532]: main.(*App).Serve(0xc00021a680, {0x1579810, 0xc000057440})
neofs-s3-gw[2155532]:         github.com/nspcc-dev/neofs-s3-gw/cmd/s3-gw/app.go:526 +0x6c5
neofs-s3-gw[2155532]: created by main.main in goroutine 1
neofs-s3-gw[2155532]:         github.com/nspcc-dev/neofs-s3-gw/cmd/s3-gw/main.go:17 +0xf1

Expected Behavior

No panic.

Possible Solution

Fix it.

Steps to Reproduce

Unknown, but it happends during shutdown.

Context

Production network.

Regression

Unknown

Your Environment

  • Version of the product used: 0.33.0
  • Operating System and version (uname -a): Debian stable
Originally created by @roman-khimov on GitHub (Dec 17, 2024). ## Current Behavior ``` neofs-s3-gw[2155532]: panic: can't shut down service neofs-s3-gw[2155532]: goroutine 110 [running]: neofs-s3-gw[2155532]: go.uber.org/zap/zapcore.CheckWriteAction.OnWrite(0x0?, 0x0?, {0x0?, 0x0?, 0xc0074de320?}) neofs-s3-gw[2155532]: go.uber.org/zap@v1.27.0/zapcore/entry.go:196 +0x54 neofs-s3-gw[2155532]: go.uber.org/zap/zapcore.(*CheckedEntry).Write(0xc0006af040, {0x0, 0x0, 0x0}) neofs-s3-gw[2155532]: go.uber.org/zap@v1.27.0/zapcore/entry.go:262 +0x24e neofs-s3-gw[2155532]: go.uber.org/zap.(*Logger).Panic(0xc0000152c0?, {0x122571e?, 0xc009a5af50?}, {0x0, 0x0, 0x0}) neofs-s3-gw[2155532]: go.uber.org/zap@v1.27.0/logger.go:285 +0x51 neofs-s3-gw[2155532]: main.(*Service).ShutDown(0xc0005c9260, {0x1579688, 0xc009a5af50}) neofs-s3-gw[2155532]: github.com/nspcc-dev/neofs-s3-gw/cmd/s3-gw/service.go:37 +0x13a neofs-s3-gw[2155532]: main.(*App).stopServices(...) neofs-s3-gw[2155532]: github.com/nspcc-dev/neofs-s3-gw/cmd/s3-gw/app.go:643 neofs-s3-gw[2155532]: main.(*App).Serve(0xc00021a680, {0x1579810, 0xc000057440}) neofs-s3-gw[2155532]: github.com/nspcc-dev/neofs-s3-gw/cmd/s3-gw/app.go:526 +0x6c5 neofs-s3-gw[2155532]: created by main.main in goroutine 1 neofs-s3-gw[2155532]: github.com/nspcc-dev/neofs-s3-gw/cmd/s3-gw/main.go:17 +0xf1 ``` ## Expected Behavior No panic. ## Possible Solution Fix it. ## Steps to Reproduce Unknown, but it happends during shutdown. ## Context Production network. ## Regression Unknown ## Your Environment * Version of the product used: 0.33.0 * Operating System and version (`uname -a`): Debian stable
Author
Owner

@roman-khimov commented on GitHub (Mar 21, 2025):

Needs to be reproduced again.

@roman-khimov commented on GitHub (Mar 21, 2025): Needs to be reproduced again.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-s3-gw#477
No description provided.