Menu

#3910 jEdit crashes to desktop on opening a file of exactly right (wrong) pathname length

normal bug
pending-works-for-me
nobody
None
5
2015-11-15
2015-03-03
Kasuha
No

jEdit Version: 5.2.0

JVM version: 1.8.0_31

Platform: Windows 7

Plugins:
- can be reproduced with all plugins disabled/unloaded
BufferList
BufferTabs
FTP
WhiteSpace
XML
... and all dependencies

Steps:
Create directory structure resulting in pathname approximately 115 characters long.
Create a set of files of names 1-20 characters long
Open files one after another.

Opening method is not relevant - crashes even if I drag/drop the file into jEdit.

Does NOT crash if I open a non-existent file of that exact pathname length or create a new file and save it under that exact pathname length. Such file then can be edited, saved, reloaded. But after closing it, crashes on attempt to open it again.

First noticed when trying to open file using sftp plugin. When the pathname "sftp://..../filename.ext" was exactly 121 characters long, jEdit crashed.
Reproduced on local drive but it changed to exactly 125 characters. Reproduced with and without plugins, critical length didn't change. Example pathname:
"C:\Users\xxxxxxxx\Documents\test\test2\test3\test4\test5\test6\aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\1234567890123456\abcdef.txt"
Files of any shorter or longer pathname open with no problems.
It does not depend on actual pathname or contents of the file: a file with the same contents opens if its pathname is just 1 character longer or shorter. A file with any contents and name crashes if the pathname length is right.
Windows restart did not change anything.
All I got about the error is the MS dialog containing the following data:

Problem signature:
Problem Event Name: BEX
Application Name: javaw.exe
Application Version: 8.0.31.13
Application Timestamp: 54925fd3
Fault Module Name: msvcr100.dll
Fault Module Version: 10.0.40219.1
Fault Module Timestamp: 4d5f0c22
Exception Offset: 0008af3e
Exception Code: c0000417
Exception Data: 00000000
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1029
Additional Information 1: 00ee
Additional Information 2: 00eed8172ea5ec7b9954c5cbb6d6853a
Additional Information 3: e7cd
Additional Information 4: e7cd1cd25db1cd29dd740dcd08a86007

Discussion

  • Eric Le Lay

    Eric Le Lay - 2015-11-15
    • status: open --> pending-works-for-me
     
  • Eric Le Lay

    Eric Le Lay - 2015-11-15

    Can't reproduce using a windows 7 VM from modern.ie with latest java 1.8 update 65 and jEdit 5.3.0.
    I've created a file with the exact example path and it opens without issue by drag and drop.

    With a path of 125 characters, you're close to half the MAXPATH in some windows API calls (250 vs 259), which may or may not be relevant to the problem.

     

Log in to post a comment.