[Libre-soc-bugs] [Bug 438] add caching/memoization to soc.simulator.program.Program

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Fri Jul 24 11:56:36 BST 2020


https://bugs.libre-soc.org/show_bug.cgi?id=438

--- Comment #2 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
commit 75858e9e95e25f882fa130f50778f18fe88aa742 (HEAD -> master)
Author: Luke Kenneth Casson Leighton <lkcl at lkcl.net>
Date:   Fri Jul 24 11:54:24 2020 +0100

    read into a BytesIO to avoid "too many open files"
     see https://bugs.libre-soc.org/show_bug.cgi?id=438

should do for now

arg nope, linking still leaves files open.  increasing the file limit
for now

/etc/security/limits.conf



  File "fu/div/test/test_pipe_caller.py", line 211, in test_all
    prog = Program(l, bigendian)
  File "/home/lkcl/src/libresoc/soc/src/soc/simulator/program.py", line 39, in
__init__
    self._assemble()
  File "/home/lkcl/src/libresoc/soc/src/soc/simulator/program.py", line 80, in
_assemble
    self._link(outfile)

    restore_signals, start_new_session)
  File "/usr/lib/python3.7/subprocess.py", line 1412, in _execute_child
    errpipe_read, errpipe_write = os.pipe()
OSError: [Errno 24] Too many open files

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list