[GH-ISSUE #1741] potential data races #852

Closed
opened 2026-03-01 21:46:53 +03:00 by kerem · 0 comments
Owner

Originally created by @191830230 on GitHub (Apr 18, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1741

Bug report info

none

Command used with act

none

Describe issue

Hello developer, I used a static data race detector to check this project and found suspicious data race defects. I have done preliminary filtering and categorized the defects, choosing only one from each category. However, due to my unfamiliarity with the overall architecture of the project, there may still be false positives after filtering. Below are the potential data race issues I found(not all stack traces are listed):
Potential race condition:

 Access1:
        if err = fn(ctx); err != nil {
           ^
act/cmd/root.go:663:3 ->
act/cmd/root.go:651:7

 Access2:
        return err
               ^
act/cmd/root.go:666:9
===================================================
Potential race condition:
 Access1:
        if err = fn(ctx); err != nil {
           ^
act/cmd/root.go:663:3 ->
act/cmd/root.go:657:8

 Access2:
        return err
               ^
act/cmd/root.go:666:9

No response

Workflow content

none

Relevant log output

none

Additional information

No response

Originally created by @191830230 on GitHub (Apr 18, 2023). Original GitHub issue: https://github.com/nektos/act/issues/1741 ### Bug report info ```plain text none ``` ### Command used with act ```sh none ``` ### Describe issue Hello developer, I used a static data race detector to check this project and found suspicious data race defects. I have done preliminary filtering and categorized the defects, choosing only one from each category. However, due to my unfamiliarity with the overall architecture of the project, there may still be false positives after filtering. Below are the potential data race issues I found(not all stack traces are listed): Potential race condition: ``` Access1: if err = fn(ctx); err != nil { ^ act/cmd/root.go:663:3 -> act/cmd/root.go:651:7 Access2: return err ^ act/cmd/root.go:666:9 =================================================== Potential race condition: Access1: if err = fn(ctx); err != nil { ^ act/cmd/root.go:663:3 -> act/cmd/root.go:657:8 Access2: return err ^ act/cmd/root.go:666:9 ``` ### Link to GitHub repository _No response_ ### Workflow content ```yml none ``` ### Relevant log output ```sh none ``` ### Additional information _No response_
kerem 2026-03-01 21:46:53 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#852
No description provided.