My guess is that something called putenv() with a pointer to memory which has been unmapped at the time that this exit handler is running. I suspect this could happen even for a string constant (e.g. in a shared library). The solution would be to use setenv() instead, which makes a copy.
My guess is that something called putenv() with a pointer to memory which has been unmapped at the time that this exit handler is running. I suspect this could happen even for a string constant (e.g. in a shared library). The solution would be to use setenv() instead, which makes a copy.