JDK-8136570 : Stop changing user environment variables related to /usr/dt
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt:i18n
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • CPU: generic
  • Submitted: 2015-09-15
  • Updated: 2017-11-29
  • Resolved: 2015-09-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
8u152Fixed 9 b83Fixed
Related Reports
Relates :  
putenv is fundamentally thread-unsafe!  We have observed crashes in getenv probably caused by concurrent putenv, and the assignments to XFILESEARCHPATH and NLSPATH for /usr/dt (CDE?) are the most likely suspects.  They are the only environment variables modified running HelloWorld on Linux.

At the very least, we can avoid setting these environment variables when the relevant directory does not exist.

(But we should try to go further and try to figure out how to never write to environment variables outside of the launcher)
I'm not closing this as a dup, because it only partially addresses the problem


I see now that I complained about this 12 years ago, but it was closed Will Not Fix! Grrrrrr! JDK-4953367 MAWT: Java should be more careful manipulating NLSPATH, XFILESEARCHPATH env variables