fatal error: concurrent map writes introduced with https://github.com/netbirdio/netbird/commit/4a1aee1ae0188191fc97bb732727820260770d7c #746

Closed
opened 2025-11-20 05:16:48 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @hurricanehrndz on GitHub (Mar 27, 2024).

Describe the problem

fatal error: concurrent map writes introduced with 4a1aee1ae0

Specifically lines such as these, Routes is a map with no mutex locking, but adding a mutex to the struct directly will not work. At least that is my impression because the struct is copied and updated in several places

To Reproduce
Run any version of netbird with patch 4a1aee1ae0

Steps to reproduce the behavior:
Start netbird service on macos
Connect
Watch service restart

Expected behavior
No fatal crash

A clear and concise description of what you expected to happen.

Are you using NetBird Cloud?

Please specify whether you use NetBird Cloud or self-host NetBird's control plane.

NetBird version

netbird version
0.26.4
NetBird status -d output:
NA
If applicable, add the `netbird status -d' command output.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Originally created by @hurricanehrndz on GitHub (Mar 27, 2024). **Describe the problem** fatal error: concurrent map writes introduced with https://github.com/netbirdio/netbird/commit/4a1aee1ae0188191fc97bb732727820260770d7c Specifically lines such as [these](https://github.com/netbirdio/netbird/commit/4a1aee1ae0188191fc97bb732727820260770d7c#diff-67387c2b097eeb87387ab2575884677a2f9ee1c53b9e8674dcfa4936463c23f9R242), Routes is a map with no mutex locking, but adding a mutex to the struct directly will not work. At least that is my impression because the struct is copied and updated in several places **To Reproduce** Run any version of netbird with patch https://github.com/netbirdio/netbird/commit/4a1aee1ae0188191fc97bb732727820260770d7c Steps to reproduce the behavior: Start netbird service on macos Connect Watch service restart **Expected behavior** No fatal crash A clear and concise description of what you expected to happen. **Are you using NetBird Cloud?** Please specify whether you use NetBird Cloud or self-host NetBird's control plane. **NetBird version** `netbird version` 0.26.4 **NetBird status -d output:** NA If applicable, add the `netbird status -d' command output. **Screenshots** If applicable, add screenshots to help explain your problem. **Additional context** Add any other context about the problem here.
saavagebueno added the bugclienttriage-needed labels 2025-11-20 05:16:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#746