[RTEMS Project] #2992: Long path crashes the RSB when listing a directory.
RTEMS trac
trac at rtems.org
Fri Apr 14 01:15:44 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 | Keywords: RSB
-------------------------+-------------------------
Building LM32 on Windows crashes the RSB with a long path. The
`os.listdir` call in Python on Windows is limited to 254 characters even
if the path is Uncode.
{{{
building:
lm32-rtems4.11-gcc-4.9.3-newlib-2.2.0.20150423-x86_64-w64-mingw32-1
Build Set: Time 0:29:19.809228
Build Set: Time 3:47:43.385503
Traceback (most recent call last):
File "../source-builder/sb-set-builder", line 29, in <module>
setbuilder.run()
File "../source-builder/sb/setbuilder.py", line 502, in run
b.build(deps)
File "../source-builder/sb/setbuilder.py", line 340, in build
bs.build(deps, nesting_count)
File "../source-builder/sb/setbuilder.py", line 354, in build
self.build_package(configs[s], b)
File "../source-builder/sb/setbuilder.py", line 194, in build_package
_build.config.expand('%{_tmproot}'))
File "../source-builder/sb/setbuilder.py", line 155, in root_copy
self.copy(src, dst)
File "../source-builder/sb/setbuilder.py", line 95, in copy
path.copy_tree(src, dst)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 232, in copy_tree
copy_tree(srcname, dstname)
File "../source-builder/sb/path.py", line 191, in copy_tree
names = os.listdir(hsrc)
TypeError: encoded string too long (269, maximum length 259)
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/2992>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list