Skip to content

Investigate possible concurrency issue in gRPC daemon during Init #1801

Closed
@cmaglie

Description

@cmaglie

Describe the problem

Following this report:

arduino/arduino-ide#681 (comment)

it seems possible to have concurrent reads and writes in the arduino-cli core instances, in particular when the Init call is ongoing and another concurrent call happens (in the example above a BoardSearch has been executed together with the Init).

To reproduce

I didn't try to reproduce it yet, but I think this is a signal of a potential problem that must be solved.

Expected behavior

The CLI must not crash

Arduino CLI version

nightly

Operating system

N/A

Operating system version

Additional context

No response

Issue checklist

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

Metadata

Metadata

Assignees

Labels

topic: codeRelated to content of the project itselftopic: gRPCRelated to the gRPC interfacetype: imperfectionPerceived defect in any part of project

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions