Skip to content

Segfault inside reconnect_monitor #1607

Description

@igor725

Git commit reference
d4befa7c6205de3b1a393cb6f7c8101dde5b7860

Describe the bug
Something happened with my Internet connection during shard reconnection:

[2026-07-07 01:13:33] INFO: Reconnecting shard 0
[2026-07-07 04:16:58] INFO: Reconnecting shard 0
[2026-07-07 04:17:18] INFO: Exception when reconnecting shard 0: getaddrinfo error: Temporary failure in name resolution

Then I got the nullptr dereference segfault.

To Reproduce
Steps to reproduce the behavior:

  1. Break your DNS server connection?
  2. Get a segfault

Expected behavior
No segfault.

Screenshots

Image

System Details:

  • OS: Arch Linux

Additional context
I'm sticking to the last v10.1.5 release, but technically should be reproducible on master too since from what I've seen there was no changes in this part of src/cluster.cpp, the exception handler still sets shard to nullptr and the part above has no if(old == nullptr) check inside.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions