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

[BUG] invalid memory address or nil pointer dereference #3067

Open
cipchk opened this issue Jan 16, 2025 · 0 comments
Open

[BUG] invalid memory address or nil pointer dereference #3067

cipchk opened this issue Jan 16, 2025 · 0 comments
Labels
bug Categorizes issue or PR as related to a bug.

Comments

@cipchk
Copy link

cipchk commented Jan 16, 2025

OpenIM Server Version

3.8.2

Operating System and CPU Architecture

Linux (AMD)

Deployment Method

Docker Deployment

Bug Description and Steps to Reproduce

突然产生一个 invalid memory address or nil pointer dereference 异常,并且让 openim-server 直接宕机。

2025-01-16 12:59:37.336	ERROR	[PID:1837]     	openim-rpc-msg           	[3.8.2]                       	[mw/rpc_client_interceptor.go:58]                 	RPC Client Response Error - GetConversation       	{"platform": "Android", "connID": "a2081b9253d00a715fcf70a2f6e2ffc1", "operationID": "1737032373078", "opUserID": "14120", "funcName": "/openim.conversation.conversation/GetConversation", "error": "rpc error: code = Code(1004) desc = conversation not found: 1004 RecordNotFoundError"}

panic: runtime error: invalid memory address or nil pointer dereference

[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1211743]

goroutine 1393153 [running]:

github.com/openimsdk/open-im-server/v3/pkg/common/storage/cache/redis.(*msgCache).GetMessagesBySeq.func1({0x197b8c0?, 0xc0064495e0?}, 0xc000925340?, {0xc007158008, 0x32, 0xc0006c85a0?})

	/openim-server/pkg/common/storage/cache/redis/msg.go:153 +0x1c3

github.com/openimsdk/open-im-server/v3/pkg/common/storage/cache/redis.ProcessKeysBySlot.func1()

	/openim-server/pkg/common/storage/cache/redis/redis_shard_manager.go:182 +0x6d

golang.org/x/sync/errgroup.(*Group).Go.func1()

	/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:78 +0x56

created by golang.org/x/sync/errgroup.(*Group).Go in goroutine 1393146

	/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x96

2025-01-16 13:13:13.825	ERROR	[PID:1795]     	openim-msggateway        	[3.8.2]                       	[mw/rpc_client_interceptor.go:58]                 	RPC Client Response Error - PullMessageBySeqs     	{"platform": "Android", "connID": "35a03a089c3fa3a4a8a8c0e8a3a5711e", "operationID": "1737033191024", "opUserID": "11473", "funcName": "/openim.msg.msg/PullMessageBySeqs", "error": "rpc error: code = Unavailable desc = error reading from server: EOF"}

Screenshots Link

No response

@cipchk cipchk added the bug Categorizes issue or PR as related to a bug. label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

1 participant