Vikas89 commented on issue #13438: libc getenv is not threadsafe URL: https://github.com/apache/incubator-mxnet/issues/13438#issuecomment-446396227 @anirudh2290 good one! I think this is problem in general. For this particular case we can try to use fork handlers: pthread_at_fork(prepare, parent, child) in prepare method, we should try to set bogus env variable, which will unlock the lock and then child will get that lock in unlocked state. Something like dmlc::setEnv("Bogus", "Bogus") here: https://github.com/apache/incubator-mxnet/blob/master/src/initialize.cc#L54
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
