Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4441

Closed
Open
Created Jun 26, 2013 by Administrator@rootOwner

Gitlab::ShellEnv is not thread-safe with GitLab 5.3

Created by: gussan

Gitlab::ShellEnv is using ENV['GL_ID'], but ENV is shared by all threads. ENV['GL_ID'] is possibilly accessed by many threads simultaneously on threadsafe! environment.

I experienced trouble related this issue:

  • When executing two or more Automerge request simultaneously, sometimes the push event's author are superseded by another user.

And I guess this thread-unsafeness also affects grack.

A possible fix will be changing Gitlab::ShellEnv not to use ENV and passing env variables to Grit::Git explicitly.

Thanks.

Assignee
Assign to
Time tracking