Skip to content

Data race on SetCurrentConfigFile call #1005

Open
@dido18

Description

@dido18
Contributor

Describe the problem

2025/01/10 14:35:07 stderr: WARNING: DATA RACE
2025/01/10 14:35:07 stderr: Write at 0x0000018b31e8 by goroutine 16:
2025/01/10 14:35:07 stderr: github.com/arduino/arduino-create-agent/systray.(*Systray).SetCurrentConfigFile()
2025/01/10 14:35:07 stderr: /home/dido/code/arduino/arduino-create-agent/systray/systray.go:102 +0x79d
2025/01/10 14:35:07 stderr: main.loop()
2025/01/10 14:35:07 stderr: /home/dido/code/arduino/arduino-create-agent/main.go:261 +0x791
2025/01/10 14:35:07 stderr:
2025/01/10 14:35:07 stderr: Previous write at 0x0000018b31e8 by main goroutine:
2025/01/10 14:35:07 stderr: main.main()
2025/01/10 14:35:07 stderr: /home/dido/code/arduino/arduino-create-agent/main.go:149 +0x239
2025/01/10 14:35:07 stderr:
2025/01/10 14:35:07 stderr: Goroutine 16 (running) created at:
2025/01/10 14:35:07 stderr: main.main()
2025/01/10 14:35:07 stderr: /home/dido/code/arduino/arduino-create-agent/main.go:145 +0xfa
2025/01/10 14:35:07 stderr: ==================

To reproduce

Launch the service locally with task run

Expected behavior

Do not have data race.

Arduino Create Agent version

1,6,1

Operating system

Linux

Operating system version

20.04

Browser

chroome

Browser version

chroome

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
    I verified the problem still occurs when using the latest version
    My report contains all necessary details

Activity

changed the title [-]Data races on SetCurrentConfigFile call[/-] [+]Data race on SetCurrentConfigFile call[/+] on Jan 14, 2025
modified the milestones: 1.7.0, next on Jan 20, 2025
self-assigned this
on Jan 29, 2025
dido18

dido18 commented on Feb 6, 2025

@dido18
ContributorAuthor

A possible fix here #1012

removed their assignment
on Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: codeRelated to content of the project itselftype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @per1234@dido18@Xayton

      Issue actions

        Data race on SetCurrentConfigFile call · Issue #1005 · arduino/arduino-create-agent