[RTEMS Project] #2992: Long path crashes the RSB when listing a directory.

RTEMS trac trac at rtems.org
Tue Apr 18 00:34:38 UTC 2017

#2992: Long path crashes the RSB when listing a directory.
 Reporter:  Chris Johns  |       Owner:  Chris Johns
     Type:  defect       |      Status:  assigned
 Priority:  normal       |   Milestone:  4.11.2
Component:  RSB          |     Version:  4.11
 Severity:  major        |  Resolution:
 Keywords:  RSB          |

Comment (by Chris Johns):

 I have looked into this issue in detail and it is complicated. At the
 heart of the problem is the inherent path limit in the WIN32 API which is
 documented in [https://msdn.microsoft.com/en-
 us/library/windows/desktop/aa365247(v=vs.85).aspx Naming Files, Paths, and
 Namespaces]. There is also [https://bugs.python.org/issue27731 Python
 Issue 27731] which details how Python will respond.

 I see a couple of solution, one complicated and full of potential issues
 which others have solved, for example the MSYS2 shell, and the second is a
 simple hack. The complex solution is to step down to the Win32 API and
 selectively use Win32 API calls that support the Unicode extension to let
 the RSB work. I feel this is a lot of work and difficult to get to work.
 The second solution is to generate a script and to run it and let the
 shell on the host manage the issue. The RSB needs a shell to build most
 packages so it has to be present.

 We see the long file name issue when coping a tree and removing a tree.

Ticket URL: <http://devel.rtems.org/ticket/2992#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project

More information about the bugs mailing list