Is Unity doing a setenv() anywhere? My best guess is that you're hitting a race between getenv() in a thread and setenv() in another thread.
Is Unity doing a setenv() anywhere? My best guess is that you're hitting a race between getenv() in a thread and setenv() in another thread.