[issue30494] python.exe crashed when open long path in windows 7

2017-05-27 Thread Eryk Sun

Eryk Sun added the comment:

Your example works fine for me in Windows 10, and I see no reason why it would 
fail in Windows 7. The crash dialog in your screenshot shows that the problem 
occurred in a DLL named "winhadnt.dll". I suspect that this is malware injected 
into the python.exe process. Even if it's part of a legitimately installed 
program on your machine, this DLL has nothing to do with Python, so I'm closing 
this issue as 3rd party. 

By the way, Python 2 doesn't completely support raw unicode strings. '\u' and 
'\U' are still parsed as Unicode escape sequences. You can use forward slash 
for the path literal instead. Then normalize the path to use backslash at 
runtime.

--
nosy: +eryksun
resolution:  -> third party
stage:  -> resolved
status: open -> closed
type:  -> crash

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30494] python.exe crashed when open long path in windows 7

2017-05-27 Thread aokaywe

New submission from aokaywe:

1. 
os.makedirs(ur'\\?\c:\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹')
2. 
open(ur'\\?\c:\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\测试文件夹\t.txt','w')

you can see python was crashed.

--
components: Windows
files: python.png
messages: 294618
nosy: aokaywe, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: python.exe crashed when open long path in windows 7
versions: Python 2.7
Added file: http://bugs.python.org/file46907/python.png

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com