[issue26624] Windows hangs in call to CRT setlocale()

2016-08-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I updated ucrtbased.dll and resolved the warning as described in #27705. -- ___ Python tracker ___

[issue26624] Windows hangs in call to CRT setlocale()

2016-07-18 Thread Steve Dower
Steve Dower added the comment: Lot of different people involved in those areas, so can't promise an answer, but I'll see. Also, unless you think a closed issue needs to be reopened, please avoid using them for chat. -- ___ Python tracker

[issue26624] Windows hangs in call to CRT setlocale()

2016-07-17 Thread Decorater
Decorater added the comment: not to mention build processes seems to be taking a lot of CPU recently but older C/C++ compilers do not EG the ones from like 2008 or so running faster than the same stuff being compiled againt 2010~2015 ones. -- ___

[issue26624] Windows hangs in call to CRT setlocale()

2016-07-17 Thread Decorater
Decorater added the comment: Also can you ask them why sometimes the IDE takes too long to respond AKA freezes / crashes randomly? -- ___ Python tracker

[issue26624] Windows hangs in call to CRT setlocale()

2016-07-17 Thread Steve Dower
Steve Dower added the comment: You should get these files by installing the latest Windows 10 SDK (regardless of your OS - the SDK version relates to the latest it can target, not the latest it can be used on). For some reason, they decided it shouldn't be "automatic" to update the SDK when

[issue26624] Windows hangs in call to CRT setlocale()

2016-07-17 Thread Decorater
Decorater added the comment: Cant someone just copy these dlls from Windows 10 itself if they have it installed? ucrtbase: 10.0.14295.1000 (03/19/2016) ucrtbased: 10.0.10586.15(11/20/2015) vcruntime140d: 14.0.23506.0 (11/05/2015) I have windows 10 on another partition btw so

[issue26624] Windows hangs in call to CRT setlocale()

2016-07-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: After the 'update', the compiler ran and re-linked all the targets. The warning about the old .dll remains. Perhaps I should remove and re-install? The crash also remain. I'll backdate the repository to mid-June when I successfully compiled and ran and see

[issue26624] Windows hangs in call to CRT setlocale()

2016-07-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have recent gotten WARN: ucrtbased contains known issues. Please update Visual Studio or the Windows SDK. See: http://bugs.python.org/issue26624 F:\Python\dev\36\PCbuild\python.vcxproj(91,5): warning MSB3073: The command

[issue26624] Windows hangs in call to CRT setlocale()

2016-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset a352f7e96f85 by Steve Dower in branch 'default': Issue #26624: Adds recommendation to install updates of VS 2015. https://hg.python.org/devguide/rev/a352f7e96f85 -- ___ Python tracker

[issue26624] Windows hangs in call to CRT setlocale()

2016-04-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 605fde022b15 by Steve Dower in branch '3.5': Closes #26624: Adds validation of ucrtbase[d].dll version with warning for old versions. https://hg.python.org/cpython/rev/605fde022b15 New changeset 6ff020df61b8 by Steve Dower in branch 'default':

[issue26624] Windows hangs in call to CRT setlocale()

2016-04-12 Thread Steve Dower
Steve Dower added the comment: That's a good idea. I don't know that it's trivial to do, but at build is going to be the easiest time. I'll take a look. -- ___ Python tracker

[issue26624] Windows hangs in call to CRT setlocale()

2016-04-12 Thread STINNER Victor
STINNER Victor added the comment: Is it possible to log a compilation warning in Python if VS version contains the bug? Or even make the compilation fails? -- ___ Python tracker

[issue26624] Windows hangs in call to CRT setlocale()

2016-04-12 Thread Jeremy Kloth
Jeremy Kloth added the comment: It seems that the updated UCRT debug runtime has indeed solved the issue. I suggest that this issue remains open pending an update to the devguide for required settings for installing VS2015 with the updated runtime (see msg262672). I have no idea if the VC

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Steve Dower
Steve Dower added the comment: Ergh... that's awkward (but it explains why some of my own machines are missing bits). Victor, I'll get back to you about the watchdog once I'm at an actual PC. This week I'm at a conference. -- ___ Python tracker

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: After attempting to find the installer for ucrtbased.dll on my dev machine and reading various blog posts on the Visual C++ Team Blog and hunting through several KB articles, I've come across what I think is needed for an up-to-date Universal CRT. When

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Steve Dower
Steve Dower added the comment: So you've still got the old ucrtbased.dll on the buildbot, which is why we're still seeing the issue. Because it's a different OS I'm not surprised to see a difference between ucrtbase.dll instances. There should be an installer for the debug runtime somewhere

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-30 Thread Jeremy Kloth
Jeremy Kloth added the comment: I would have responded sooner, but add me to the list of those not receiving tracker notifications... My buildbot is running Windows 7 with all updates (last checked 3/29) and VS2015 Update 1. ucrtbase: 10.0.10586.9 (11/19/2015) ucrtbased:

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-29 Thread STINNER Victor
STINNER Victor added the comment: > The deadlock is between a CRT thread initialization lock and Windows's > process-wide module initialization lock. So if anything is being loaded on > demand by the watchdog thread, it's probably locked too (and that could be > within the CRT or the OS, so

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-29 Thread Steve Dower
Steve Dower added the comment: The deadlock is between a CRT thread initialization lock and Windows's process-wide module initialization lock. So if anything is being loaded on demand by the watchdog thread, it's probably locked too (and that could be within the CRT or the OS, so not easy to

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-29 Thread STINNER Victor
STINNER Victor added the comment: Jeremy: Did you update your buildbot? It looks like the deadlock occurred again: - http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/7478/steps/test/logs/stdio (...) 0:14:50 [398/400] test_concurrent_futures (101 sec) --

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-25 Thread Steve Dower
Steve Dower added the comment: Locking inversion I think, I don't have the bug details handy. The fix went out over Windows Update recently, but that's only for the release version of the runtime. The fixed debug version should have been installed with VS 2015 Update 1. However, since it's

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-25 Thread STINNER Victor
STINNER Victor added the comment: > It's been fixed, just figuring out when the update will be available, or how > to get it if it already is. Can you elaborate? What was the bug? How was it fixed? Is it a bug in Windows, in Visual Studio or in the C library? --

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-25 Thread STINNER Victor
STINNER Victor added the comment: The issue #25289 has marked as a duplicate of this issue. -- ___ Python tracker ___

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-24 Thread Jeremy Kloth
Jeremy Kloth added the comment: The lastest set of updates were installed on 1/28. Visual Studio does have Update 1. I'm doing another round of updates now, although nothing related to VC 2015 or Visual Studio, however. -- ___ Python tracker

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-24 Thread Steve Dower
Steve Dower added the comment: It's been fixed, just figuring out when the update will be available, or how to get it if it already is. Jeremy - how up to date is your build machine? It's likely this fix will come through Windows Update for most users, but since you're running debug builds I

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-24 Thread Steve Dower
Steve Dower added the comment: If the comment is in the sources, presumably it's also handled correctly. But it does seem like there's potential here for simultaneous thread creation and first-time calls into OS locale functions to cause a deadlock. I'll email the CRT team and see what they

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-24 Thread STINNER Victor
STINNER Victor added the comment: > I'll email the CRT team and see what they know about this. Thanks. It helps to have a Microsoft employee working on CPython :-) -- ___ Python tracker

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread Jeremy Kloth
Jeremy Kloth added the comment: >From the UCRT sources: // Deadlock Avoidance: When a new thread is created in the process, we // create a new PTD for the thread. The PTD initialization function is // called under the loader lock. This initialization function will also //

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread STINNER Victor
STINNER Victor added the comment: Random links from Google: * http://stackoverflow.com/questions/35572792/setlocale-stuck-on-windows "Sometimes it works but sometimes it never returns from it. I can not identify the reason. I use Visual Studio 2015 and Windows 7." *

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread STINNER Victor
STINNER Victor added the comment: The bug occurs in test_strptime and test__locale according to Jeremy. > - Tests run using '-j4' With this option, each test file is run in a new fresh process, so it's more likely a race condition which depends on the system load (on exact timing) than the

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread Jeremy Kloth
Jeremy Kloth added the comment: Oh, yes. It even occasionally happens on 2.7. The oldest occurrence I can dig up is May/June of 2013 (for 2.7). -- ___ Python tracker

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread Steve Dower
Steve Dower added the comment: Have you actually seen this occurring back to 3.3? I'd expect something like this to either be pre-3.5 or post-3.5, but not both. -- ___ Python tracker

[issue26624] Windows hangs in call to CRT setlocale()

2016-03-23 Thread Jeremy Kloth
New submission from Jeremy Kloth: My Windows BuildBot (http://buildbot.python.org/all/buildslaves/kloth-win64) is hanging in calls to the CRT function setlocale() as determined by attaching to the hung test process in Visual Studio. This has been happening occasionally (every tenth+ build)