[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-06 Thread Charlie Clark
Charlie Clark added the comment: import time, locale locale.setlocale(locale.LC_ALL, 'de_DE') 'de_DE' time.strftime("%Z") aborted (disconnected) -- ___ Python tracker ___

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-06 Thread Jeremy Kloth
Jeremy Kloth added the comment: So does that mean that simply doing: import locale, time locale.setlocale(locale.LC_ALL, 'de_DE') time.localtime(time.time()) is enough to trigger the heap corruption? If yes, then what is the output of: import locale, time locale.setlocale(locale.LC_ALL, 'de

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-06 Thread Charlie Clark
Charlie Clark added the comment: I can confirm the error is caused by time.localtime(time.time()) as indicated by the related bug. I've also found the crash log. It's in C:\ProgramData\Microsoft\Windows\WER\ReportQueue on my machine. Well, at least that's all I can find. -- Added f

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Jeremy Kloth
Jeremy Kloth added the comment: Related to issue bpo-36319 -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Charlie Clark
Charlie Clark added the comment: winver tells me I have 1809. I'm only using Windows in a VM so I'm not that familiar with its innards. Also get the error with WinPython 3.6: Windows fatal exception: code 0xc374 Current thread 0x10c0 (most recent call first): File "C:\Users\charli

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Manjusaka
Manjusaka added the comment: copy that I will reset my locale setting to figure it out -- ___ Python tracker ___ ___ Python-bugs-l

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Dominik Geldmacher
Dominik Geldmacher added the comment: Enterprise 1809 and Professional 1803 (german localized) both reproduce the issue -- ___ Python tracker ___

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Manjusaka
Manjusaka added the comment: Hi Dominik Geldmacher May I get your system version? 1809 or 1903? I guess maybe it's microsoft error -- ___ Python tracker ___ ___

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Dominik Geldmacher
Dominik Geldmacher added the comment: I can reproduce it on Python 3.7.3 german Windows10 enterprise Windows fatal exception: code 0xc374 Current thread 0x3bc8 (most recent call first): File "C:\Python37\lib\zipfile.py", line 1757 in writestr -- nosy: +Dominik Geldmacher _

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Charlie Clark
Charlie Clark added the comment: That's what we thought when we looked at it, but as I said, I couldn't reproduce it with just the `time` call or the `ZInfo` instantiation, so something odd is happening. I do have a German version of Windows as I suspect the original reporter does. You'd thin

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Manjusaka
Manjusaka added the comment: Same environment. But I still can not reproduce this exception. I guess maybe it's about the local time or timezone problem. I will find a way to figure it out -- ___ Python tracker

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Charlie Clark
Charlie Clark added the comment: Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32 -- ___ Python tracker ___ __

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Manjusaka
Manjusaka added the comment: Or would you share the Exception with us ? I guess it's caused by system setting -- ___ Python tracker ___ __

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-05 Thread Manjusaka
Manjusaka added the comment: I can't reproduce this error on my system by using the same code. Could you share the system info with us? -- nosy: +Manjusaka ___ Python tracker ___

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue36792] zipfile.writestr causes a Python crash on Windows if the locale is set

2019-05-04 Thread Charlie Clark
New submission from Charlie Clark : Based on a bug report (https://bitbucket.org/openpyxl/openpyxl/issues/1266/locale) from a user of the openpyxl library I've identified a bug in the zipfile module that causes the Python process to crash on Windows. Currently tested with Python 3.7.3 (32-bit