-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
::getenv is not guaranteed to be thread safe #28073
Comments
assign core, reconstruction, simulation, dam |
New categories assigned: core,reconstruction,simulation @Dr15Jones,@smuzaffar,@mdhildreth,@slava77,@perrotta,@civanch you have been requested to review this Pull request/Issue and eventually sign? Thanks |
A new Issue was created by @Dr15Jones Chris Jones. @davidlange6, @Dr15Jones, @smuzaffar, @fabiocos, @kpedro88 can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
@Dr15Jones , Geant4 has a lot of calls to environment in order to access data files. Should we inform Geant4 about this problem? |
That's probably a good idea. |
#28117 changes all code for core. |
@Dr15Jones @smuzaffar preparing a PR to change all the rest... |
#28124 does the rest |
@Dr15Jones , I can still find three
Were they just got forgotten, or maybe that code is not to be run multithread? |
@perrotta given both are stand alone programs, they were going to cause a problem for cmsRun :). |
The issue is fixed in Geant4 10.6 in all classes related to CMS productions. |
+1 |
The POSIX and C standard state that muliple calls to
::getenv
are not guaranteed to be thread safe. The C++ standardstd::getenv
is thread safe. We should change all uses of::getenv
in CMSSW to usestd::getenv
.The text was updated successfully, but these errors were encountered: