Project

General

Profile

バグ #1435

C++からサブプロセスとしてrtcd_pythonがコールされた場合の不具合

Added by kurihara almost 13 years ago. Updated almost 12 years ago.

Status:
終了
Priority:
通常
Assignee:
Target version:
-
Start date:
04/23/2010
Due date:
% Done:

100%

Estimated time:

Description

C++からサブプロセスとしてrtcd_pythonがコールされた場合、Pythonのplatformモジュールのuname()を使用している箇所でエラーが発生する。
(Ubuntu8.10, Ubuntu9.10)
WindowsXPのPython2.5ではエラーは発生しない。

      close failed: [Errno 10] No child processes
      close failed: [Errno 10] No child processes
      close failed: [Errno 10] No child processes
      close failed: [Errno 10] No child processes
      Traceback (most recent call last):
        File "/usr/bin/rtcd_python", line 25, in <module>
          main()
        File "/usr/bin/rtcd_python", line 21, in main
          rtcd.main()
        File
"/usr/lib/python2.5/site-packages/OpenRTM_aist/utils/rtcd/rtcd.py", line 28, in
main manager = OpenRTM_aist.Manager.init(sys.argv) File
"/usr/lib/python2.5/site-packages/OpenRTM_aist/Manager.py", line 177, in init
manager.initManager(argv) File
"/usr/lib/python2.5/site-packages/OpenRTM_aist/Manager.py", line 1123, in
initManager config.configure(self._config) File
"/usr/lib/python2.5/site-packages/OpenRTM_aist/ManagerConfig.py",
line 198, in configure self.setSystemInformation(prop) File
"/usr/lib/python2.5/site-packages/OpenRTM_aist/ManagerConfig.py",
line 377, in setSystemInformation sysinfo = platform.uname() File
"/usr/lib/python2.5/platform.py", line 1024, in uname processor = _syscmd_uname
('-p','') File "/usr/lib/python2.5/platform.py", line 811, in _syscmd_uname
          rc = f.close()
      IOError: [Errno 10] No child processes
      Exception exceptions.RuntimeError: RuntimeError('cannot release
un-aquired lock',) in <bound method ScopedLock.__del__ of
<OpenRTM_aist.Guard.ScopedLock instance at 0xb7cce22c>> ignored

History

#1 Updated by kurihara almost 13 years ago

  • % Done changed from 0 to 100

OSによって、platform.uname(),os.uname()を使い分けるように修正。 r322

参照
https://openrtp.jp/redmine/repositories/revision/openrtm-aist-python/322

#2 Updated by n-ando almost 12 years ago

  • Status changed from 新規 to 終了

Also available in: Atom PDF