Closed GoogleCodeExporter closed 9 years ago
3. Below is a look at the call stack tcmalloc :: ThreadCache :: InitModule ()
is being called twice I do not know why.
When you run the Release to work properly.
Original comment by nerv8...@gmail.com
on 6 Mar 2014 at 10:53
Can you please try latest code from master ?
It's quite plausibly still fail but I'd like to know for certain.
Regarding reason, it does look like order of modules initialization causes
getenv to be called early or late enough. And getenv on some C runtime versions
appears to call malloc.
Notably on my msvc 2012 I am unable to hit this problem (probably because of
slightly different order of initialization).
Original comment by alkondratenko
on 6 Mar 2014 at 1:41
git receives the latest version of the code to be tested, but the same problem
occurs.
Vs2012 in Windows 7, no problems.
However, in Windows Server 2012 R2 build vs2012 debug only when the problem
occurs.
Did you ever check in Windows Server 2012 R2?
Original comment by nerv8...@gmail.com
on 6 Mar 2014 at 3:03
>> Did you ever check in Windows Server 2012 R2?
No I have not.
Thanks for information.
Original comment by alkondratenko
on 6 Mar 2014 at 3:04
Issue 542 has been merged into this issue.
Original comment by alkondratenko
on 6 Mar 2014 at 3:05
It looks like non-ascii locale is causing it. That's why I'm unable to
reproduce it locally.
And given that I'm don't have guts to try to set some multibyte encoding in
windows I cannot reproduce it at all.
Thankfully ms ships source code of their C runtime. Looking at source I now see
that in locales with multibyte encodings it will apparently call malloc from
inside getenv all the time when there's environment variable which name matches
length of what we're getenv-ing.
With that observation I think I'll just disable uses of getenv on windows to
keep us out of trouble.
Thanks for raising it.
Original comment by alkondratenko
on 12 Apr 2014 at 10:30
I've implemented what I think is a fix for this problem. Consider testing it
please (I cannot due to inability to have multibyte locale on windows).
The code is here: https://github.com/alk/gperftools/tree/wip-issue-610
Original comment by alkondratenko
on 13 Apr 2014 at 1:13
Testing was thinking this issue is resolved happened.
When will the full version of this version happens to apply?
Thank you resolve.
Original comment by nerv8...@gmail.com
on 14 Apr 2014 at 1:28
I've just released 2.1rc with the fix. Consider testing please.
Original comment by alkondratenko
on 19 Apr 2014 at 8:35
Original issue reported on code.google.com by
nerv8...@gmail.com
on 6 Mar 2014 at 10:48